protected class JavaHttpBuilder.Action.JavaFromServer extends java.lang.Object implements FromServer
FromServer.Header<T>
DEFAULT_CONTENT_TYPE
Constructor and Description |
---|
JavaFromServer(java.net.URI originalUri) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Performs any client-specific response finishing operations.
|
boolean |
getHasBody()
Determines whether or not there is body content in the response.
|
java.util.List<FromServer.Header<?>> |
getHeaders()
Retrieves a
List of the response headers as (FromServer.Header objects). |
java.io.InputStream |
getInputStream()
Retrieves the
InputStream containing the response content (may have already been processed). |
java.lang.String |
getMessage()
Retrieves the response status message.
|
int |
getStatusCode()
Retrieves the response status code (List of HTTP status code).
|
java.net.URI |
getUri()
Retrieves the
URI of the original request. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCharset, getContentType, getCookies, getReader
public JavaFromServer(java.net.URI originalUri) throws java.io.IOException
java.io.IOException
public java.io.InputStream getInputStream()
FromServer
Retrieves the InputStream
containing the response content (may have already been processed).
getInputStream
in interface FromServer
public final int getStatusCode()
FromServer
Retrieves the response status code (List of HTTP status code).
getStatusCode
in interface FromServer
public java.lang.String getMessage()
FromServer
Retrieves the response status message.
getMessage
in interface FromServer
public java.util.List<FromServer.Header<?>> getHeaders()
FromServer
Retrieves a List
of the response headers as (FromServer.Header
objects).
getHeaders
in interface FromServer
List
of response headerspublic boolean getHasBody()
FromServer
Determines whether or not there is body content in the response.
getHasBody
in interface FromServer
public java.net.URI getUri()
FromServer
Retrieves the URI
of the original request.
getUri
in interface FromServer
URI
of the original requestpublic void finish()
FromServer
Performs any client-specific response finishing operations.
finish
in interface FromServer