ClassicHttpResponse.
| Modifier and Type | Field and Description |
|---|---|
| private HttpEntity | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BasicClassicHttpResponse(final int
the status code code, final ReasonPhraseCatalog the reason phrase catalog, or
catalog, final Locale null to disable automatic
reason phrase lookupthe locale for looking up reason phrases, or
locale)null for the system localeCreates a new response. |
| public | BasicClassicHttpResponse(final int
the status code of the response code, final String the reason phrase to the status code, or reasonPhrase)nullCreates a new response. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public HttpEntity | getEntity()
Implements org. |
| public void | setEntity(final HttpEntity
the entity to set of this message, or entity)null to unsetImplements org. |
| entity | back to summary |
|---|---|
| private HttpEntity entity | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| BasicClassicHttpResponse | back to summary |
|---|---|
| public BasicClassicHttpResponse(final int code, final ReasonPhraseCatalog catalog, final Locale locale) Creates a new response.
| |
| BasicClassicHttpResponse | back to summary |
|---|---|
| public BasicClassicHttpResponse(final int code, final String reasonPhrase) Creates a new response.
| |
| BasicClassicHttpResponse | back to summary |
|---|---|
| public BasicClassicHttpResponse(final int code) Creates a new response.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getEntity | back to summary |
|---|---|
| public HttpEntity getEntity() Implements org. Doc from org. Obtains the message entity, if available.
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final HttpEntity entity) Implements org. Doc from org. Sets an entity for this message. Please note that if an entity has already been set it is responsibility of the caller to ensure release of the resources that may be associated with that entity.
| |