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 Details

    • 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