public class HessianURLConnection extends AbstractHessianConnection
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String key,
java.lang.String value)
Adds a HTTP header.
|
void |
close()
Close/free the connection
|
void |
destroy()
Disconnect the connection
|
java.lang.String |
getContentEncoding()
Returns the content encoding
|
java.io.InputStream |
getInputStream()
Returns the InputStream to the result
|
java.io.OutputStream |
getOutputStream()
Returns the output stream for the request.
|
int |
getStatusCode()
Returns the status code.
|
java.lang.String |
getStatusMessage()
Returns the status string.
|
protected void |
parseResponseHeaders(java.net.HttpURLConnection conn) |
void |
sendRequest()
Sends the request
|
public void addHeader(java.lang.String key, java.lang.String value)
addHeader
in interface HessianConnection
addHeader
in class AbstractHessianConnection
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface HessianConnection
getOutputStream
in class AbstractHessianConnection
java.io.IOException
public void sendRequest() throws java.io.IOException
sendRequest
in interface HessianConnection
sendRequest
in class AbstractHessianConnection
java.io.IOException
protected void parseResponseHeaders(java.net.HttpURLConnection conn) throws java.io.IOException
java.io.IOException
public int getStatusCode()
getStatusCode
in interface HessianConnection
getStatusCode
in class AbstractHessianConnection
public java.lang.String getStatusMessage()
getStatusMessage
in interface HessianConnection
getStatusMessage
in class AbstractHessianConnection
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface HessianConnection
getInputStream
in class AbstractHessianConnection
java.io.IOException
public java.lang.String getContentEncoding()
HessianConnection
getContentEncoding
in interface HessianConnection
getContentEncoding
in class AbstractHessianConnection
public void close()
close
in interface HessianConnection
close
in class AbstractHessianConnection
public void destroy()
destroy
in interface HessianConnection
destroy
in class AbstractHessianConnection