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
 void addHeader(String key, String value)
          Adds HTTP headers.
 void close()
          Close/free the connection.
 void destroy()
          Shut the connection down.
 String getContentEncoding()
          Returns the content encoding
 InputStream getInputStream()
          Returns the InputStream to the result
 OutputStream getOutputStream()
          Returns the output stream for the request.
 int getStatusCode()
          Returns the status code.
 String getStatusMessage()
          Returns the status string.
 void sendRequest()
          Sends the query
 

Method Detail

addHeader

void addHeader(String key,
               String value)
Adds HTTP headers.


getOutputStream

OutputStream getOutputStream()
                             throws IOException
Returns the output stream for the request.

Throws:
IOException

sendRequest

void sendRequest()
                 throws IOException
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

InputStream getInputStream()
                           throws IOException
Returns the InputStream to the result

Throws:
IOException

close

void close()
           throws IOException
Close/free the connection. If keepalive is allowed, it may be used.

Throws:
IOException

destroy

void destroy()
             throws IOException
Shut the connection down.

Throws:
IOException


Copyright © 2013. All Rights Reserved.