Package org.globus.axis.transport
Class HTTPUtils
- java.lang.Object
-
- org.globus.axis.transport.HTTPUtils
-
public class HTTPUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLE_CHUNKING
-
Constructor Summary
Constructors Constructor Description HTTPUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
DISABLE_CHUNKING
public static final String DISABLE_CHUNKING
- See Also:
- Constant Field Values
-
-
Method Detail
-
setTimeout
public static void setTimeout(javax.xml.rpc.Stub stub, int timeout)
Sets connection timeout.- Parameters:
stub
- The stub to set the property ontimeout
- the new timeout value in milliseconds
-
setCloseConnection
public 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).- Parameters:
stub
- The stub to set the property onclose
- If true, connection close will be requested. Otherwise connection close will not be requested.
-
setHTTP10Version
public 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.- Parameters:
stub
- The stub to set the property onenable
- If true, HTTP 1.0 will be used. If false, HTTP 1.1 will be used.
-
setHTTPVersion
public 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.- Parameters:
stub
- The stub to set the property onhttp10
- If true, HTTP 1.0 will be used. Otherwise HTTP 1.1 will be used.
-
setChunkedEncoding
public 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).- Parameters:
stub
- The stub to set the property onenable
- If true, chunked encoding will be enabled. If false, chunked encoding will be disabled.
-
setDisableChunking
public 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).- Parameters:
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).
-
-