| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.DefaultHttpResponseFactory
@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpResponseFactory
Default factory for creating HttpResponse objects.
| Field Summary | |
|---|---|
| static DefaultHttpResponseFactory | INSTANCE | 
| protected  ReasonPhraseCatalog | reasonCatalogThe catalog for looking up reason phrases. | 
| Constructor Summary | |
|---|---|
| DefaultHttpResponseFactory()Creates a new response factory with the default catalog. | |
| DefaultHttpResponseFactory(ReasonPhraseCatalog catalog)Creates a new response factory with the given catalog. | |
| Method Summary | |
|---|---|
| protected  Locale | determineLocale(HttpContext context)Determines the locale of the response. | 
|  HttpResponse | newHttpResponse(ProtocolVersion ver,
                int status,
                HttpContext context)Creates a new response from status line elements. | 
|  HttpResponse | newHttpResponse(StatusLine statusline,
                HttpContext context)Creates a new response from a status line. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final DefaultHttpResponseFactory INSTANCE
protected final ReasonPhraseCatalog reasonCatalog
| Constructor Detail | 
|---|
public DefaultHttpResponseFactory(ReasonPhraseCatalog catalog)
catalog - the catalog of reason phrasespublic DefaultHttpResponseFactory()
EnglishReasonPhraseCatalog.
| Method Detail | 
|---|
public HttpResponse newHttpResponse(ProtocolVersion ver,
                                    int status,
                                    HttpContext context)
HttpResponseFactory
newHttpResponse in interface HttpResponseFactoryver - the protocol versionstatus - the status codecontext - 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
public HttpResponse newHttpResponse(StatusLine statusline,
                                    HttpContext context)
HttpResponseFactory
newHttpResponse in interface HttpResponseFactorystatusline - the status linecontext - 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
protected Locale determineLocale(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 | |||||||||