public abstract class AbstractHessianConnection extends java.lang.Object implements HessianConnection
Constructor and Description |
---|
AbstractHessianConnection() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String key,
java.lang.String value)
Adds HTTP headers.
|
void |
close()
Close/free the connection, using keepalive if appropriate.
|
abstract void |
destroy()
Destroy/disconnect the connection
|
java.lang.String |
getContentEncoding()
Returns the content encoding
|
abstract java.io.InputStream |
getInputStream()
Returns the InputStream to the result
|
abstract java.io.OutputStream |
getOutputStream()
Returns the output stream for the request.
|
abstract int |
getStatusCode()
Returns the status code.
|
abstract java.lang.String |
getStatusMessage()
Returns the status string.
|
abstract void |
sendRequest()
Sends the query
|
public void addHeader(java.lang.String key, java.lang.String value)
addHeader
in interface HessianConnection
public abstract java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface HessianConnection
java.io.IOException
public abstract void sendRequest() throws java.io.IOException
sendRequest
in interface HessianConnection
java.io.IOException
public abstract int getStatusCode()
getStatusCode
in interface HessianConnection
public abstract java.lang.String getStatusMessage()
getStatusMessage
in interface HessianConnection
public abstract java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface HessianConnection
java.io.IOException
public java.lang.String getContentEncoding()
HessianConnection
getContentEncoding
in interface HessianConnection
public void close() throws java.io.IOException
close
in interface HessianConnection
java.io.IOException
public abstract void destroy() throws java.io.IOException
destroy
in interface HessianConnection
java.io.IOException