Package org.wildfly.httpclient.common
Class HttpTargetContext
java.lang.Object
io.undertow.util.AbstractAttachable
org.wildfly.httpclient.common.HttpTargetContext
- All Implemented Interfaces:
io.undertow.util.Attachable
public class HttpTargetContext
extends io.undertow.util.AbstractAttachable
Http target context used by client side.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionawaitSessionId(boolean required, org.wildfly.security.auth.client.AuthenticationConfiguration authConfig) voidgetHttpMarshallerFactory(io.undertow.client.ClientRequest request) intReturns the protocol version to be used by this target context.getUri()voidsendRequest(io.undertow.client.ClientRequest request, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask) voidsendRequest(io.undertow.client.ClientRequest request, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask, boolean allowNoContent) Methods inherited from class io.undertow.util.AbstractAttachable
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
Method Details
-
getProtocolVersion
public int getProtocolVersion()Returns the protocol version to be used by this target context.- Returns:
- the protocol version
-
sendRequest
public void sendRequest(io.undertow.client.ClientRequest request, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask) -
sendRequest
public void sendRequest(io.undertow.client.ClientRequest request, SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask, boolean allowNoContent) -
getHttpMarshallerFactory
-
getConnectionPool
-
getSessionId
-
getUri
-
clearSessionId
public void clearSessionId() -
awaitSessionId
public String awaitSessionId(boolean required, org.wildfly.security.auth.client.AuthenticationConfiguration authConfig)
-