Package com.caucho.hessian.client
Class HessianURLConnection
java.lang.Object
com.caucho.hessian.client.AbstractHessianConnection
com.caucho.hessian.client.HessianURLConnection
- All Implemented Interfaces:
HessianConnection
Internal connection to a server. The default connection is based on
java.net
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a HTTP header.void
close()
Close/free the connectionvoid
destroy()
Disconnect the connectionReturns the content encodingReturns the InputStream to the resultReturns the output stream for the request.int
Returns the status code.Returns the status string.protected void
void
Sends the request
-
Method Details
-
addHeader
Adds a HTTP header.- Specified by:
addHeader
in interfaceHessianConnection
- Overrides:
addHeader
in classAbstractHessianConnection
-
getOutputStream
Returns the output stream for the request.- Specified by:
getOutputStream
in interfaceHessianConnection
- Specified by:
getOutputStream
in classAbstractHessianConnection
- Throws:
IOException
-
sendRequest
Sends the request- Specified by:
sendRequest
in interfaceHessianConnection
- Specified by:
sendRequest
in classAbstractHessianConnection
- Throws:
IOException
-
parseResponseHeaders
- Throws:
IOException
-
getStatusCode
public int getStatusCode()Returns the status code.- Specified by:
getStatusCode
in interfaceHessianConnection
- Specified by:
getStatusCode
in classAbstractHessianConnection
-
getStatusMessage
Returns the status string.- Specified by:
getStatusMessage
in interfaceHessianConnection
- Specified by:
getStatusMessage
in classAbstractHessianConnection
-
getInputStream
Returns the InputStream to the result- Specified by:
getInputStream
in interfaceHessianConnection
- Specified by:
getInputStream
in classAbstractHessianConnection
- Throws:
IOException
-
getContentEncoding
Description copied from interface:HessianConnection
Returns the content encoding- Specified by:
getContentEncoding
in interfaceHessianConnection
- Overrides:
getContentEncoding
in classAbstractHessianConnection
-
close
public void close()Close/free the connection- Specified by:
close
in interfaceHessianConnection
- Overrides:
close
in classAbstractHessianConnection
-
destroy
public void destroy()Disconnect the connection- Specified by:
destroy
in interfaceHessianConnection
- Specified by:
destroy
in classAbstractHessianConnection
-