HttpContext that provides convenience
setters for user assignable attributes and getter for readable attributes.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpContext | |
| public static final String | HTTP_CONNECTION
Attribute name of a |
| public static final String | HTTP_REQ_SENT
Attribute name of a |
| public static final String | HTTP_REQUEST
Attribute name of a |
| public static final String | HTTP_RESPONSE
Attribute name of a |
| public static final String | HTTP_TARGET_HOST
Attribute name of a |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpCoreContext | |
| public static HttpCoreContext | |
| public Object | getAttribute(final String
the attribute name. id)Implements org. |
| public <T> T | |
| public <T extends HttpConnection> T | |
| public HttpConnection | |
| public HttpRequest | |
| public HttpResponse | |
| public HttpHost | |
| public boolean | |
| public Object | removeAttribute(final String
the attribute name. id)Implements org. |
| public void | setAttribute(final String
the attribute name. id, final Object the attribute value. obj)Implements org. |
| public void |
| context | back to summary |
|---|---|
| private final HttpContext context | |
| HTTP_CONNECTION | back to summary |
|---|---|
| public static final String HTTP_CONNECTION Attribute name of a | |
| HTTP_REQ_SENT | back to summary |
|---|---|
| public static final String HTTP_REQ_SENT Attribute name of a | |
| HTTP_REQUEST | back to summary |
|---|---|
| public static final String HTTP_REQUEST Attribute name of a | |
| HTTP_RESPONSE | back to summary |
|---|---|
| public static final String HTTP_RESPONSE Attribute name of a | |
| HTTP_TARGET_HOST | back to summary |
|---|---|
| public static final String HTTP_TARGET_HOST Attribute name of a | |
| HttpCoreContext | back to summary |
|---|---|
| public HttpCoreContext(final HttpContext context) | |
| HttpCoreContext | back to summary |
|---|---|
| public HttpCoreContext() | |
| adapt | back to summary |
|---|---|
| public static HttpCoreContext adapt(final HttpContext context) | |
| create | back to summary |
|---|---|
| public static HttpCoreContext create() | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String id) Implements org. Doc from org. Obtains attribute with the given name. | |
| getAttribute | back to summary |
|---|---|
| public <T> T getAttribute(final String attribname, final Class<T> clazz) | |
| getConnection | back to summary |
|---|---|
| public <T extends HttpConnection> T getConnection(final Class<T> clazz) | |
| getConnection | back to summary |
|---|---|
| public HttpConnection getConnection() | |
| getRequest | back to summary |
|---|---|
| public HttpRequest getRequest() | |
| getResponse | back to summary |
|---|---|
| public HttpResponse getResponse() | |
| getTargetHost | back to summary |
|---|---|
| public HttpHost getTargetHost() | |
| isRequestSent | back to summary |
|---|---|
| public boolean isRequestSent() | |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String id) Implements org. Doc from org. Removes attribute with the given name from the context. | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final String id, final Object obj) Implements org. Doc from org. Sets value of the attribute with the given name. | |
| setTargetHost | back to summary |
|---|---|
| public void setTargetHost(final HttpHost host) | |