HttpResponse objects.
| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultHttpResponseFactory | |
| private final ReasonPhraseCatalog |
| 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 |
|---|---|
| public HttpResponse | newHttpResponse(final int
the status code status, final String the reason phrase reasonPhrase)Implements org. |
| public HttpResponse | newHttpResponse(final int
the status code status)Implements org. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultHttpResponseFactory INSTANCE | |
| reasonCatalog | back to summary |
|---|---|
| private final ReasonPhraseCatalog reasonCatalog | |
| 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 | |
| newHttpResponse | back to summary |
|---|---|
| public HttpResponse newHttpResponse(final int status, final String reasonPhrase) Implements org. Doc from org. Creates response message with the given code and reason phrase.
| |
| newHttpResponse | back to summary |
|---|---|
| public HttpResponse newHttpResponse(final int status) Implements org. Doc from org. Creates a new response with the given code.
| |