Package com.caucho.hessian.client
Class AbstractHessianConnection
java.lang.Object
com.caucho.hessian.client.AbstractHessianConnection
- All Implemented Interfaces:
HessianConnection
- Direct Known Subclasses:
HessianURLConnection
Internal connection to a server. The default connection is based on
java.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds HTTP headers.void
close()
Close/free the connection, using keepalive if appropriate.abstract void
destroy()
Destroy/disconnect the connectionReturns the content encodingabstract InputStream
Returns the InputStream to the resultabstract OutputStream
Returns the output stream for the request.abstract int
Returns the status code.abstract String
Returns the status string.abstract void
Sends the query
-
Constructor Details
-
AbstractHessianConnection
public AbstractHessianConnection()
-
-
Method Details
-
addHeader
Adds HTTP headers.- Specified by:
addHeader
in interfaceHessianConnection
-
getOutputStream
Returns the output stream for the request.- Specified by:
getOutputStream
in interfaceHessianConnection
- Throws:
IOException
-
sendRequest
Sends the query- Specified by:
sendRequest
in interfaceHessianConnection
- Throws:
IOException
-
getStatusCode
public abstract int getStatusCode()Returns the status code.- Specified by:
getStatusCode
in interfaceHessianConnection
-
getStatusMessage
Returns the status string.- Specified by:
getStatusMessage
in interfaceHessianConnection
-
getInputStream
Returns the InputStream to the result- Specified by:
getInputStream
in interfaceHessianConnection
- Throws:
IOException
-
getContentEncoding
Description copied from interface:HessianConnection
Returns the content encoding- Specified by:
getContentEncoding
in interfaceHessianConnection
-
close
Close/free the connection, using keepalive if appropriate.- Specified by:
close
in interfaceHessianConnection
- Throws:
IOException
-
destroy
Destroy/disconnect the connection- Specified by:
destroy
in interfaceHessianConnection
- Throws:
IOException
-