HttpResponse objects.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultHttpResponseFactory | |
| protected final ReasonPhraseCatalog | reasonCatalog
The catalog for looking up reason phrases. |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpResponseFactory(final ReasonPhraseCatalog
the catalog of reason phrases catalog)Creates a new response factory with the given catalog. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Locale | Returns: the locale for the response, nevernullthe context from which to determine the locale, or
context)null to use the default localeDetermines the locale of the response. |
| public HttpResponse | newHttpResponse(final ProtocolVersion
the protocol version ver, final int the status code status, final HttpContext the context from which to determine the locale
for looking up a reason phrase to the status code, or
context)null to use the default localeImplements org. |
| public HttpResponse | newHttpResponse(final StatusLine
the status line statusline, final HttpContext the context from which to determine the locale
for looking up a reason phrase if the status code
is updated, or
context)null to use the default localeImplements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultHttpResponseFactory INSTANCE | |
| reasonCatalog | back to summary |
|---|---|
| protected final ReasonPhraseCatalog reasonCatalog The catalog for looking up reason phrases. | |
| DefaultHttpResponseFactory | back to summary |
|---|---|
| public DefaultHttpResponseFactory(final ReasonPhraseCatalog catalog) Creates a new response factory with the given catalog.
| |
| DefaultHttpResponseFactory | back to summary |
|---|---|
| public DefaultHttpResponseFactory() Creates a new response factory with the default catalog.
The default catalog is | |
| determineLocale | back to summary |
|---|---|
| protected Locale determineLocale(final HttpContext context) Determines the locale of the response. The implementation in this class always returns the default locale.
| |
| newHttpResponse | back to summary |
|---|---|
| public HttpResponse newHttpResponse(final ProtocolVersion ver, final int status, final HttpContext context) Implements org. Doc from org. Creates a new response from status line elements.
| |
| newHttpResponse | back to summary |
|---|---|
| public HttpResponse newHttpResponse(final StatusLine statusline, final HttpContext context) Implements org. Doc from org. Creates a new response from a status line.
| |