HttpHeader object, which represents HTTP response message.
HttpHeader, HttpRequestPacket
| Modifier and Type | Class and Description |
|---|---|
| public static class | HttpResponsePacket.
|
| Modifier and Type | Field and Description |
|---|---|
| private boolean | allowCustomReasonPhrase
Do we allow custom reason phrase. |
| private String | contentLanguage
The value of the |
| protected HttpStatus | httpStatus
Status code. |
| private HttpStatus | interimStatus
Status of the informational (1xx) interim response (e.g. |
| private boolean | isHtmlEncodingCustomReasonPhrase
Do we need to encode HTML sensitive characters in custom reason phrase. |
| private Locale | |
| private final DataChunk | reasonPhraseC
Status message. |
| private HttpRequestPacket | request
The request that triggered this response. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpResponsePacket. | |
| public String | |
| public HttpStatus | |
| public HttpStatus | getInterimStatus()
Returns: the status of the interim response pending serialization, or |
| public Locale | |
| public final String | Returns: the status reason phrase for this response.Gets the status reason phrase for this response. |
| public final DataChunk | Returns: the status reason phrase for this response asDataChunk (avoid creation of a String object}.Gets the status reason phrase for this response as |
| public final DataChunk | Returns: the status reason phrase for this response asDataChunk (avoid creation of a String object}.Gets the custom status reason phrase for this response as |
| public HttpRequestPacket | |
| public int | |
| public void | |
| public final boolean | Returns: true if custom status reason phrases are allowed for this response, or false
otherwise.Returns |
| public final boolean | |
| public boolean | isHtmlEncodingCustomReasonPhrase()
Returns if we need to encode HTML sensitive characters in custom reason phrase. |
| public boolean | isInterimResponse()
Returns: |
| public final boolean | isRequest()
Implements abstract org. Returns true, if the current HttpHeader represent HTTP request message, or false otherwise. |
| protected void | |
| public final void | setAllowCustomReasonPhrase(final boolean
true if custom status reason phrases are allowed for this response, or
false otherwise.Sets if the custom status reason phrases are allowed for this response. |
| public void | setContentLanguage(final String contentLanguage)
Set the value that will be used by the |
| public void | setContentLengthLong(long contentLength)
Overrides org. Set the content-length of this |
| public void | setHtmlEncodingCustomReasonPhrase(boolean isHtmlEncodingCustomReasonPhrase)
Sets if we need to encode HTML sensitive characters in custom reason phrase. |
| public void | setInterimStatus(final HttpStatus
the 1xx status of the interim response to serialize. interimStatus)Request the serialization of an informational (1xx) interim response, such as
|
| public void | |
| public void | setReasonPhrase(final String
the status reason phrase for this response. message)Sets the status reason phrase for this response. |
| public void | |
| public void | setRequest(final HttpRequestPacket
the request that triggered this response request)Associates the request that triggered this response. |
| public void | setStatus(final int
the status code for this response. status)Sets the status code for this response. |
| public void | setStatus(final HttpStatus
the status for this response. status)Sets the status code for this response. |
| public String |
| allowCustomReasonPhrase | back to summary |
|---|---|
| private boolean allowCustomReasonPhrase Do we allow custom reason phrase. | |
| contentLanguage | back to summary |
|---|---|
| private String contentLanguage The value of the | |
| httpStatus | back to summary |
|---|---|
| protected HttpStatus httpStatus Status code. | |
| interimStatus | back to summary |
|---|---|
| private HttpStatus interimStatus Status of the informational (1xx) interim response (e.g. | |
| isHtmlEncodingCustomReasonPhrase | back to summary |
|---|---|
| private boolean isHtmlEncodingCustomReasonPhrase Do we need to encode HTML sensitive characters in custom reason phrase. | |
| locale | back to summary |
|---|---|
| private Locale locale The | |
| reasonPhraseC | back to summary |
|---|---|
| private final DataChunk reasonPhraseC Status message. | |
| request | back to summary |
|---|---|
| private HttpRequestPacket request The request that triggered this response. | |
| HttpResponsePacket | back to summary |
|---|---|
| protected HttpResponsePacket() | |
| builder | back to summary |
|---|---|
| public static HttpResponsePacket. Returns
| |
| getContentLanguage | back to summary |
|---|---|
public String getContentLanguage()
| |
| getHttpStatus | back to summary |
|---|---|
| public HttpStatus getHttpStatus() Gets the HTTP status for this response.
| |
| getInterimStatus | back to summary |
|---|---|
public HttpStatus getInterimStatus()
| |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() | |
| getReasonPhrase | back to summary |
|---|---|
| public final String getReasonPhrase() Gets the status reason phrase for this response.
| |
| getReasonPhraseDC | back to summary |
|---|---|
| public final DataChunk getReasonPhraseDC() Gets the status reason phrase for this response as | |
| getReasonPhraseRawDC | back to summary |
|---|---|
| public final DataChunk getReasonPhraseRawDC() Gets the custom status reason phrase for this response as | |
| getRequest | back to summary |
|---|---|
public HttpRequestPacket getRequest()
| |
| getStatus | back to summary |
|---|---|
| public int getStatus() Gets the status code for this response.
| |
| interimResponseSent | back to summary |
|---|---|
| public void interimResponseSent() Mark the pending interim response as having been serialized. If the interim status was | |
| isAllowCustomReasonPhrase | back to summary |
|---|---|
| public final boolean isAllowCustomReasonPhrase() Returns
| |
| isCustomReasonPhraseSet | back to summary |
|---|---|
| public final boolean isCustomReasonPhraseSet() | |
| isHtmlEncodingCustomReasonPhrase | back to summary |
|---|---|
| public boolean isHtmlEncodingCustomReasonPhrase() Returns if we need to encode HTML sensitive characters in custom reason phrase. | |
| isInterimResponse | back to summary |
|---|---|
public boolean isInterimResponse()
| |
| isRequest | back to summary |
|---|---|
| public final boolean isRequest() Implements abstract org. Doc from org. Returns true, if the current HttpHeader represent HTTP request message, or false otherwise.
| |
| reset | back to summary |
|---|---|
| protected void reset() Overrides org. Doc from org. Reset the internal state.
| |
| setAllowCustomReasonPhrase | back to summary |
|---|---|
| public final void setAllowCustomReasonPhrase(final boolean allowCustomReasonPhrase) Sets if the custom status reason phrases are allowed for this response.
| |
| setContentLanguage | back to summary |
|---|---|
| public void setContentLanguage(final String contentLanguage) Set the value that will be used by the | |
| setContentLengthLong | back to summary |
|---|---|
| public void setContentLengthLong(long contentLength) Overrides org. Doc from org. Set the content-length of this
| |
| setHtmlEncodingCustomReasonPhrase | back to summary |
|---|---|
| public void setHtmlEncodingCustomReasonPhrase(boolean isHtmlEncodingCustomReasonPhrase) Sets if we need to encode HTML sensitive characters in custom reason phrase. | |
| setInterimStatus | back to summary |
|---|---|
| public void setInterimStatus(final HttpStatus interimStatus) Request the serialization of an informational (1xx) interim response, such as
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(final Locale locale) Called explicitly by user to set the Content-Language and the default encoding | |
| setReasonPhrase | back to summary |
|---|---|
| public void setReasonPhrase(final String message) Sets the status reason phrase for this response.
| |
| setReasonPhrase | back to summary |
|---|---|
| public void setReasonPhrase(final Buffer reason) | |
| setRequest | back to summary |
|---|---|
| public void setRequest(final HttpRequestPacket request) Associates the request that triggered this response.
| |
| setStatus | back to summary |
|---|---|
| public void setStatus(final int status) Sets the status code for this response.
| |
| setStatus | back to summary |
|---|---|
| public void setStatus(final HttpStatus status) Sets the status code for this response.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
HttpResponsePacket message builder.
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected HttpRequestPacket | |
| protected Integer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final HttpResponsePacket | Returns: HttpResponsePacketOverrides org. Build the |
| protected HttpHeader | |
| public HttpResponsePacket. | reasonPhrase(final String
the status reason phrase for this response. reasonPhrase)Sets the status reason phrase for this response. |
| public HttpResponsePacket. | |
| public void | |
| public HttpResponsePacket. |
| reasonPhrase | back to summary |
|---|---|
| protected String reasonPhrase | |
| requestPacket | back to summary |
|---|---|
| protected HttpRequestPacket requestPacket | |
| status | back to summary |
|---|---|
| protected Integer status | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public final HttpResponsePacket build() Overrides org. Build the
| |
| create | back to summary |
|---|---|
| protected HttpHeader create() Implements abstract org.
| |
| reasonPhrase | back to summary |
|---|---|
| public HttpResponsePacket. Sets the status reason phrase for this response.
| |
| requestPacket | back to summary |
|---|---|
| public HttpResponsePacket. | |
| reset | back to summary |
|---|---|
| public void reset() Overrides org.
| |
| status | back to summary |
|---|---|
| public HttpResponsePacket. Sets the status code for this response.
| |