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