public class HTTPResponseHeader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
dumpToStdout()
Dump the HTTP response header to stdout.
|
java.lang.String |
getAsString()
Get the full HTTP response header as a single string.
|
java.lang.String |
getContentMIMEType()
Get the received content type (MIME type) without any content type parameter extension.
|
java.lang.String |
getContentTypeCharset()
Get the charset of the received content type.
|
long |
getFirstReceivedByteTimeStamp()
Get the timestamp when first byte of the HTTP response header has received.
|
java.lang.String |
getFirstResponseLine()
Get the first line of the received response header.
|
java.lang.String |
getHeaderField(java.lang.String fieldName)
Get the value of a header field.
|
java.util.ArrayList<HTTPHeaderField> |
getHeaderFieldList()
Get a list of all received header fields.
|
java.util.ArrayList<java.lang.String> |
getHeaderFields()
Get all received header fields.
|
long |
getHeaderReceiveTimeMillis()
Get the elapsed time duration for receiving the HTTP response header.
|
int |
getHeaderSize()
Get the size of the HTTP response header.
|
int |
getHttpStatusCode()
Get the received HTTP status code.
|
java.lang.String |
getRawContentType()
Get the raw value of the content type, as received from the server.
|
java.lang.String |
getReceivedHttpStatusText()
Get the received HTTP status text.
|
java.lang.String |
getReceivedHttpVersion()
Get the received HTTP version.
|
java.lang.String |
getSyntheticHeaderFields()
Get all received header fields as a single string.
|
JsonObject |
toJsonObject()
Get a JSON object of this instance.
|
public java.lang.String getAsString()
public java.lang.String getFirstResponseLine()
public java.lang.String getReceivedHttpVersion()
public int getHttpStatusCode()
public java.lang.String getReceivedHttpStatusText()
public java.util.ArrayList<HTTPHeaderField> getHeaderFieldList()
public java.util.ArrayList<java.lang.String> getHeaderFields()
public java.lang.String getSyntheticHeaderFields()
public java.lang.String getHeaderField(java.lang.String fieldName)
fieldName
- the field namepublic java.lang.String getRawContentType()
public java.lang.String getContentMIMEType()
public java.lang.String getContentTypeCharset()
public long getFirstReceivedByteTimeStamp()
public long getHeaderReceiveTimeMillis()
public int getHeaderSize()
public void dumpToStdout()
public JsonObject toJsonObject()