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 TypeMethodDescriptionvoidAdds HTTP headers.voidclose()Close/free the connection, using keepalive if appropriate.abstract voiddestroy()Destroy/disconnect the connectionReturns the content encodingabstract InputStreamReturns the InputStream to the resultabstract OutputStreamReturns the output stream for the request.abstract intReturns the status code.abstract StringReturns the status string.abstract voidSends the query
-
Constructor Details
-
AbstractHessianConnection
public AbstractHessianConnection()
-
-
Method Details
-
addHeader
Adds HTTP headers.- Specified by:
addHeaderin interfaceHessianConnection
-
getOutputStream
Returns the output stream for the request.- Specified by:
getOutputStreamin interfaceHessianConnection- Throws:
IOException
-
sendRequest
Sends the query- Specified by:
sendRequestin interfaceHessianConnection- Throws:
IOException
-
getStatusCode
public abstract int getStatusCode()Returns the status code.- Specified by:
getStatusCodein interfaceHessianConnection
-
getStatusMessage
Returns the status string.- Specified by:
getStatusMessagein interfaceHessianConnection
-
getInputStream
Returns the InputStream to the result- Specified by:
getInputStreamin interfaceHessianConnection- Throws:
IOException
-
getContentEncoding
Description copied from interface:HessianConnectionReturns the content encoding- Specified by:
getContentEncodingin interfaceHessianConnection
-
close
Close/free the connection, using keepalive if appropriate.- Specified by:
closein interfaceHessianConnection- Throws:
IOException
-
destroy
Destroy/disconnect the connection- Specified by:
destroyin interfaceHessianConnection- Throws:
IOException
-