|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.DefaultHttpResponseFactoryHC4
@Immutable public class DefaultHttpResponseFactoryHC4
Default factory for creating HttpResponse objects.
| Field Summary | |
|---|---|
static DefaultHttpResponseFactoryHC4 |
INSTANCE
|
protected org.apache.http.ReasonPhraseCatalog |
reasonCatalog
The catalog for looking up reason phrases. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultHttpResponseFactoryHC4 INSTANCE
protected final org.apache.http.ReasonPhraseCatalog reasonCatalog
| Constructor Detail |
|---|
public DefaultHttpResponseFactoryHC4(org.apache.http.ReasonPhraseCatalog catalog)
catalog - the catalog of reason phrasespublic DefaultHttpResponseFactoryHC4()
EnglishReasonPhraseCatalog.
| Method Detail |
|---|
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.HttpResponseFactory
public 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 locale
null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||