Package com.caucho.hessian.client
Interface HessianConnection
- All Known Implementing Classes:
AbstractHessianConnection,HessianURLConnection
public interface HessianConnection
Internal connection to a server. The default connection is based on
java.net
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds HTTP headers.voidclose()Close/free the connection.voiddestroy()Shut the connection down.Returns the content encodingReturns the InputStream to the resultReturns the output stream for the request.intReturns the status code.Returns the status string.voidSends the query
-
Method Details
-
addHeader
Adds HTTP headers. -
getOutputStream
Returns the output stream for the request.- Throws:
IOException
-
sendRequest
Sends the query- Throws:
IOException
-
getStatusCode
int getStatusCode()Returns the status code. -
getStatusMessage
String getStatusMessage()Returns the status string. -
getContentEncoding
String getContentEncoding()Returns the content encoding -
getInputStream
Returns the InputStream to the result- Throws:
IOException
-
close
Close/free the connection. If keepalive is allowed, it may be used.- Throws:
IOException
-
destroy
Shut the connection down.- Throws:
IOException
-