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 TypeMethodDescriptionvoidAdds a HTTP header.voidclose()Close/free the connectionvoiddestroy()Disconnect the connectionReturns the content encodingReturns the InputStream to the resultReturns the output stream for the request.intReturns the status code.Returns the status string.protected voidvoidSends the request
-
Method Details
-
addHeader
Adds a HTTP header.- Specified by:
addHeaderin interfaceHessianConnection- Overrides:
addHeaderin classAbstractHessianConnection
-
getOutputStream
Returns the output stream for the request.- Specified by:
getOutputStreamin interfaceHessianConnection- Specified by:
getOutputStreamin classAbstractHessianConnection- Throws:
IOException
-
sendRequest
Sends the request- Specified by:
sendRequestin interfaceHessianConnection- Specified by:
sendRequestin classAbstractHessianConnection- Throws:
IOException
-
parseResponseHeaders
- Throws:
IOException
-
getStatusCode
public int getStatusCode()Returns the status code.- Specified by:
getStatusCodein interfaceHessianConnection- Specified by:
getStatusCodein classAbstractHessianConnection
-
getStatusMessage
Returns the status string.- Specified by:
getStatusMessagein interfaceHessianConnection- Specified by:
getStatusMessagein classAbstractHessianConnection
-
getInputStream
Returns the InputStream to the result- Specified by:
getInputStreamin interfaceHessianConnection- Specified by:
getInputStreamin classAbstractHessianConnection- Throws:
IOException
-
getContentEncoding
Description copied from interface:HessianConnectionReturns the content encoding- Specified by:
getContentEncodingin interfaceHessianConnection- Overrides:
getContentEncodingin classAbstractHessianConnection
-
close
public void close()Close/free the connection- Specified by:
closein interfaceHessianConnection- Overrides:
closein classAbstractHessianConnection
-
destroy
public void destroy()Disconnect the connection- Specified by:
destroyin interfaceHessianConnection- Specified by:
destroyin classAbstractHessianConnection
-