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.AbstractAttachableHttp 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringawaitSessionId(boolean required, org.wildfly.security.auth.client.AuthenticationConfiguration authConfig)voidclearSessionId()HttpConnectionPoolgetConnectionPool()HttpMarshallerFactorygetHttpMarshallerFactory(io.undertow.client.ClientRequest clientRequest)intgetProtocolVersion()Returns the protocol version to be used by this target context.StringgetSessionId()URIgetUri()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)voidsendRequestInternal(HttpConnectionPool.ConnectionHandle connection, io.undertow.client.ClientRequest request, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, Runnable completedTask, boolean allowNoContent, boolean retry, SSLContext sslContext, ClassLoader classLoader)
-
-
-
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(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)
-
sendRequestInternal
public void sendRequestInternal(HttpConnectionPool.ConnectionHandle connection, io.undertow.client.ClientRequest request, org.wildfly.security.auth.client.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(io.undertow.client.ClientRequest clientRequest)
-
getConnectionPool
public HttpConnectionPool getConnectionPool()
-
getSessionId
public String getSessionId()
-
getUri
public URI getUri()
-
clearSessionId
public void clearSessionId()
-
awaitSessionId
public String awaitSessionId(boolean required, org.wildfly.security.auth.client.AuthenticationConfiguration authConfig)
-
-