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 java.lang.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.java.lang.StringgetSessionId()java.net.URIgetUri()voidsendRequest(io.undertow.client.ClientRequest request, javax.net.ssl.SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, java.lang.Runnable completedTask)voidsendRequest(io.undertow.client.ClientRequest request, javax.net.ssl.SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, java.lang.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, java.lang.Runnable completedTask, boolean allowNoContent, boolean retry, javax.net.ssl.SSLContext sslContext, java.lang.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, javax.net.ssl.SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, java.lang.Runnable completedTask)
-
sendRequest
public void sendRequest(io.undertow.client.ClientRequest request, javax.net.ssl.SSLContext sslContext, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, HttpTargetContext.HttpMarshaller httpMarshaller, HttpTargetContext.HttpResultHandler httpResultHandler, HttpTargetContext.HttpFailureHandler failureHandler, ContentType expectedResponse, java.lang.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, java.lang.Runnable completedTask, boolean allowNoContent, boolean retry, javax.net.ssl.SSLContext sslContext, java.lang.ClassLoader classLoader)
-
getHttpMarshallerFactory
public HttpMarshallerFactory getHttpMarshallerFactory(io.undertow.client.ClientRequest clientRequest)
-
getConnectionPool
public HttpConnectionPool getConnectionPool()
-
getSessionId
public java.lang.String getSessionId()
-
getUri
public java.net.URI getUri()
-
clearSessionId
public void clearSessionId()
-
awaitSessionId
public java.lang.String awaitSessionId(boolean required, org.wildfly.security.auth.client.AuthenticationConfiguration authConfig)
-
-