public abstract class AbstractHttpSenderModule extends AbstractSenderModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_CONNECT_TIMEOUT
Attribute name for connection timeout in milliseconds
|
static String |
ATTR_READ_TIMEOUT
Attribute name for read timeout in milliseconds
|
static int |
DEFAULT_CONNECT_TIMEOUT_MS
Default connection timeout: 60 seconds
|
static int |
DEFAULT_READ_TIMEOUT_MS
Default read timeout: 60 seconds
|
m_aRWLockDO_SEND, DO_SEND_ASYNC_MDN| Constructor and Description |
|---|
AbstractHttpSenderModule() |
| Modifier and Type | Method and Description |
|---|---|
HostnameVerifier |
createHostnameVerifier()
Get the hostname verifier to be used.
|
SSLContext |
createSSLContext()
Create the
SSLContext to be used for https connections. |
AS2HttpClient |
getHttpClient(String sUrl,
com.helger.commons.http.EHttpMethod eRequestMethod,
Proxy aProxy)
Generate a HttpClient connection.
|
AS2HttpURLConnection |
getHttpURLConnection(String sUrl,
boolean bOutput,
boolean bInput,
boolean bUseCaches,
com.helger.commons.http.EHttpMethod eRequestMethod,
Proxy aProxy) |
doResend, getRetryCountattrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCode, initDynamicComponent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanHandle, handleattrs, getName, getSession, initDynamicComponentpublic static final String ATTR_CONNECT_TIMEOUT
public static final String ATTR_READ_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT_MS
public static final int DEFAULT_READ_TIMEOUT_MS
@Nonnull @OverrideOnDemand public SSLContext createSSLContext() throws GeneralSecurityException
SSLContext to be used for https connections. By default
the SSL context will trust all hosts and present no keys. Override this
method in a subclass to customize this handling.SSLContext. May not be null.GeneralSecurityException - If something internally goes wrong.@Nullable @OverrideOnDemand public HostnameVerifier createHostnameVerifier()
HostnameVerifierVerifyAll is returned. Override this method to
change this default behavior.null it will not be applied to the https connection.@Nonnull public AS2HttpURLConnection getHttpURLConnection(@Nonnull @Nonempty String sUrl, boolean bOutput, boolean bInput, boolean bUseCaches, @Nonnull com.helger.commons.http.EHttpMethod eRequestMethod, @Nullable Proxy aProxy) throws OpenAS2Exception
OpenAS2Exception@Nonnull public AS2HttpClient getHttpClient(@Nonnull @Nonempty String sUrl, @Nonnull com.helger.commons.http.EHttpMethod eRequestMethod, @Nullable Proxy aProxy) throws OpenAS2Exception
sUrl - URL to connect toeRequestMethod - HTTP Request method to use. May not be null.aProxy - Optional proxy to use. May be null.AS2HttpClient object to work withOpenAS2Exception - If something goes wrongCopyright © 2013–2019 Philip Helger. All rights reserved.