Package org.wildfly.httpclient.common
Class HttpTargetContext
- java.lang.Object
-
- io.undertow.util.AbstractAttachable
-
- org.wildfly.httpclient.common.HttpTargetContext
-
- All Implemented Interfaces:
Attachable
public class HttpTargetContext extends AbstractAttachable
Http target context used by client side.- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttpTargetContext.HttpFailureHandlerstatic interfaceHttpTargetContext.HttpMarshallerstatic interfaceHttpTargetContext.HttpResultHandler
-
Method Summary
-
Methods inherited from class io.undertow.util.AbstractAttachable
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
-
-
-
Method Detail
-
getProtocolVersion
public int getProtocolVersion()
Returns the protocol version to be used by this target context.- Returns:
- the protocol version
-
sendRequest
public void sendRequest(ClientRequest request, SSLContext sslContext, AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask)
-
sendRequest
public void sendRequest(ClientRequest request, SSLContext sslContext, AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask, boolean allowNoContent)
-
sendRequestInternal
public void sendRequestInternal(HttpConnectionPool.ConnectionHandle connection, ClientRequest request, AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask, boolean allowNoContent, boolean retry, SSLContext sslContext, ClassLoader classLoader)
-
getHttpMarshallerFactory
public HttpMarshallerFactory getHttpMarshallerFactory(ClientRequest clientRequest)
-
getConnectionPool
public HttpConnectionPool getConnectionPool()
-
getSessionId
public String getSessionId()
-
getUri
public URI getUri()
-
clearSessionId
public void clearSessionId()
-
awaitSessionId
public String awaitSessionId(boolean required, AuthenticationConfiguration authConfig)
-
-