Package com.caucho.hessian.client
Interface HessianConnection
-
- All Known Implementing Classes:
AbstractHessianConnection,HessianURLConnection
public interface HessianConnectionInternal connection to a server. The default connection is based on java.net
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHeader(java.lang.String key, java.lang.String value)Adds HTTP headers.voidclose()Close/free the connection.voiddestroy()Shut the connection down.java.lang.StringgetContentEncoding()Returns the content encodingjava.io.InputStreamgetInputStream()Returns the InputStream to the resultjava.io.OutputStreamgetOutputStream()Returns the output stream for the request.intgetStatusCode()Returns the status code.java.lang.StringgetStatusMessage()Returns the status string.voidsendRequest()Sends the query
-
-
-
Method Detail
-
addHeader
void addHeader(java.lang.String key, java.lang.String value)Adds HTTP headers.
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.IOExceptionReturns the output stream for the request.- Throws:
java.io.IOException
-
sendRequest
void sendRequest() throws java.io.IOExceptionSends the query- Throws:
java.io.IOException
-
getStatusCode
int getStatusCode()
Returns the status code.
-
getStatusMessage
java.lang.String getStatusMessage()
Returns the status string.
-
getContentEncoding
java.lang.String getContentEncoding()
Returns the content encoding
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOExceptionReturns the InputStream to the result- Throws:
java.io.IOException
-
close
void close() throws java.io.IOExceptionClose/free the connection. If keepalive is allowed, it may be used.- Throws:
java.io.IOException
-
destroy
void destroy() throws java.io.IOExceptionShut the connection down.- Throws:
java.io.IOException
-
-