public class HessianURLConnection extends AbstractHessianConnection
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String key,
String value)
Adds a HTTP header.
|
void |
close()
Close/free the connection
|
void |
destroy()
Disconnect the connection
|
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.
|
protected void |
parseResponseHeaders(HttpURLConnection conn) |
void |
sendRequest()
Sends the request
|
public void addHeader(String key, String value)
addHeader in interface HessianConnectionaddHeader in class AbstractHessianConnectionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface HessianConnectiongetOutputStream in class AbstractHessianConnectionIOExceptionpublic void sendRequest()
throws IOException
sendRequest in interface HessianConnectionsendRequest in class AbstractHessianConnectionIOExceptionprotected void parseResponseHeaders(HttpURLConnection conn) throws IOException
IOExceptionpublic int getStatusCode()
getStatusCode in interface HessianConnectiongetStatusCode in class AbstractHessianConnectionpublic String getStatusMessage()
getStatusMessage in interface HessianConnectiongetStatusMessage in class AbstractHessianConnectionpublic InputStream getInputStream() throws IOException
getInputStream in interface HessianConnectiongetInputStream in class AbstractHessianConnectionIOExceptionpublic String getContentEncoding()
HessianConnectiongetContentEncoding in interface HessianConnectiongetContentEncoding in class AbstractHessianConnectionpublic void close()
close in interface HessianConnectionclose in class AbstractHessianConnectionpublic void destroy()
destroy in interface HessianConnectiondestroy in class AbstractHessianConnectionCopyright © 2017 Caucho Technology, Inc. All rights reserved.