public class HTTPUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DISABLE_CHUNKING |
Constructor and Description |
---|
HTTPUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
setChunkedEncoding(javax.xml.rpc.Stub stub,
boolean enable)
Sets on option on the stub to use to enable or disable chunked encoding
(only if used with HTTP 1.1).
|
static void |
setCloseConnection(javax.xml.rpc.Stub stub,
boolean close)
Sets on option on the stub to close the connection
after receiving the reply (connection will not
be reused).
|
static void |
setDisableChunking(javax.xml.rpc.Stub stub,
boolean disable)
Sets on option on the stub to use to disable chunking
(only if used with HTTP 1.1).
|
static void |
setHTTP10Version(javax.xml.rpc.Stub stub,
boolean enable)
Sets on option on the stub to control what HTTP protocol
version should be used.
|
static void |
setHTTPVersion(javax.xml.rpc.Stub stub,
boolean http10)
Sets on option on the stub to control what HTTP protocol
version should be used.
|
static void |
setTimeout(javax.xml.rpc.Stub stub,
int timeout)
Sets connection timeout.
|
public static final String DISABLE_CHUNKING
public static void setTimeout(javax.xml.rpc.Stub stub, int timeout)
stub
- The stub to set the property ontimeout
- the new timeout value in millisecondspublic static void setCloseConnection(javax.xml.rpc.Stub stub, boolean close)
stub
- The stub to set the property onclose
- If true, connection close will be requested. Otherwise
connection close will not be requested.public static void setHTTP10Version(javax.xml.rpc.Stub stub, boolean enable)
stub
- The stub to set the property onenable
- If true, HTTP 1.0 will be used. If false, HTTP 1.1
will be used.public static void setHTTPVersion(javax.xml.rpc.Stub stub, boolean http10)
stub
- The stub to set the property onhttp10
- If true, HTTP 1.0 will be used. Otherwise HTTP 1.1
will be used.public static void setChunkedEncoding(javax.xml.rpc.Stub stub, boolean enable)
stub
- The stub to set the property onenable
- If true, chunked encoding will be enabled. If false,
chunked encoding will be disabled.public static void setDisableChunking(javax.xml.rpc.Stub stub, boolean disable)
stub
- The stub to set the property ondisable
- If true, chunking will be disabled. Otherwise chunking
will be performed (if HTTP 1.1 will be used).Copyright © 2016. All rights reserved.