public class NtlmCloseableHttpComponentsMessageSender extends CloseableHttpComponentsMessageSender
WebServiceMessageSender
implementation that uses Apache
HttpClient (CloseableHttpClient
) to execute POST requests.
Allows to use a pre-configured HttpClient instance, potentially with authentication, HTTP connection pooling, etc. with NTLM authentication support.
CloseableHttpComponentsMessageSender.PreemptiveAuthInterceptor, CloseableHttpComponentsMessageSender.RemoveSoapHeadersInterceptor
MACHINE_NAME
Constructor and Description |
---|
NtlmCloseableHttpComponentsMessageSender(String ntlmUsername,
String ntlmPassword,
String ntlmDomain)
Create a new instance of the
HttpClientMessageSender with a default HttpClient
with added support for NTLM. |
Modifier and Type | Method and Description |
---|---|
String |
getNtlmDomain()
Gets the NTLM domain.
|
String |
getNtlmPassword()
Gets the NTLM password.
|
String |
getNtlmUsername()
Gets the NTLM username.
|
afterPropertiesSet, closeIdleConnections, createContext, destroy, getClientBuilder, getConnPoolControl, getHttpClient, setAuthScope, setConnectionTimeout, setCredentials, setCredentialsProvider, setDefaultMaxPerHost, setMaxConnectionsPerHost, setMaxTotalConnections, setReadTimeout
createConnection, setHttpClient
public NtlmCloseableHttpComponentsMessageSender(String ntlmUsername, String ntlmPassword, String ntlmDomain)
HttpClientMessageSender
with a default HttpClient
with added support for NTLM.ntlmUsername
- the NTLM username (without domain name)ntlmPassword
- the NTLM passwordntlmDomain
- the NTLM domainCopyright © 2018 Pivotal Software, Inc.. All rights reserved.