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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addHeader(java.lang.String key, java.lang.String value)
Adds HTTP headers.void
close()
Close/free the connection.void
destroy()
Shut the connection down.java.lang.String
getContentEncoding()
Returns the content encodingjava.io.InputStream
getInputStream()
Returns the InputStream to the resultjava.io.OutputStream
getOutputStream()
Returns the output stream for the request.int
getStatusCode()
Returns the status code.java.lang.String
getStatusMessage()
Returns the status string.void
sendRequest()
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.IOException
Returns the output stream for the request.- Throws:
java.io.IOException
-
sendRequest
void sendRequest() throws java.io.IOException
Sends 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.IOException
Returns the InputStream to the result- Throws:
java.io.IOException
-
close
void close() throws java.io.IOException
Close/free the connection. If keepalive is allowed, it may be used.- Throws:
java.io.IOException
-
destroy
void destroy() throws java.io.IOException
Shut the connection down.- Throws:
java.io.IOException
-
-