@Immutable public class DefaultHttpResponseFactoryHC4 extends java.lang.Object implements org.apache.http.HttpResponseFactory
HttpResponse objects.| Modifier and Type | Field and Description |
|---|---|
static DefaultHttpResponseFactoryHC4 |
INSTANCE |
protected org.apache.http.ReasonPhraseCatalog |
reasonCatalog
The catalog for looking up reason phrases.
|
| Constructor and Description |
|---|
DefaultHttpResponseFactoryHC4()
Creates a new response factory with the default catalog.
|
DefaultHttpResponseFactoryHC4(org.apache.http.ReasonPhraseCatalog catalog)
Creates a new response factory with the given catalog.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Locale |
determineLocale(org.apache.http.protocol.HttpContext context)
Determines the locale of the response.
|
org.apache.http.HttpResponse |
newHttpResponse(org.apache.http.ProtocolVersion ver,
int status,
org.apache.http.protocol.HttpContext context) |
org.apache.http.HttpResponse |
newHttpResponse(org.apache.http.StatusLine statusline,
org.apache.http.protocol.HttpContext context) |
public static final DefaultHttpResponseFactoryHC4 INSTANCE
protected final org.apache.http.ReasonPhraseCatalog reasonCatalog
public DefaultHttpResponseFactoryHC4(org.apache.http.ReasonPhraseCatalog catalog)
catalog - the catalog of reason phrasespublic DefaultHttpResponseFactoryHC4()
EnglishReasonPhraseCatalog.public org.apache.http.HttpResponse newHttpResponse(org.apache.http.ProtocolVersion ver,
int status,
org.apache.http.protocol.HttpContext context)
newHttpResponse in interface org.apache.http.HttpResponseFactorypublic org.apache.http.HttpResponse newHttpResponse(org.apache.http.StatusLine statusline,
org.apache.http.protocol.HttpContext context)
newHttpResponse in interface org.apache.http.HttpResponseFactoryprotected java.util.Locale determineLocale(org.apache.http.protocol.HttpContext context)
context - the context from which to determine the locale, or
null to use the default localenullCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.