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(String key, String value)Adds HTTP headers.voidclose()Close/free the connection.voiddestroy()Shut the connection down.StringgetContentEncoding()Returns the content encodingInputStreamgetInputStream()Returns the InputStream to the resultOutputStreamgetOutputStream()Returns the output stream for the request.intgetStatusCode()Returns the status code.StringgetStatusMessage()Returns the status string.voidsendRequest()Sends the query
-
-
-
Method Detail
-
getOutputStream
OutputStream getOutputStream() throws IOException
Returns the output stream for the request.- Throws:
IOException
-
sendRequest
void sendRequest() throws IOExceptionSends 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
InputStream getInputStream() throws IOException
Returns the InputStream to the result- Throws:
IOException
-
close
void close() throws IOExceptionClose/free the connection. If keepalive is allowed, it may be used.- Throws:
IOException
-
destroy
void destroy() throws IOExceptionShut the connection down.- Throws:
IOException
-
-