java.lang.Object | |
↳ | org.apache.http.impl.DefaultHttpResponseFactory |
Default implementation of a factory for creating response objects.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
reasonCatalog | The catalog for looking up reason phrases. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new response factory with the given catalog.
| |||||||||||
Creates a new response factory with the default catalog.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new response from status line elements.
| |||||||||||
Creates a new response from a status line.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines the locale of the response.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpResponseFactory
|
The catalog for looking up reason phrases.
Creates a new response factory with the given catalog.
catalog | the catalog of reason phrases |
---|
Creates a new response factory with the default catalog.
The default catalog is
EnglishReasonPhraseCatalog
.
Creates a new response from status line elements.
ver | the protocol version |
---|---|
status | the status code |
context | the context from which to determine the locale
for looking up a reason phrase to the status code, or
null to use the default locale |
Creates a new response from a status line.
statusline | the status line |
---|---|
context | the context from which to determine the locale
for looking up a reason phrase if the status code
is updated, or
null to use the default locale |
Determines the locale of the response. The implementation in this class always returns the default locale.
context | the context from which to determine the locale, or
null to use the default locale |
---|
null