Class HttpsUrlConnectionMessageSender
java.lang.Object
org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
org.springframework.ws.transport.http.HttpUrlConnectionMessageSender
org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,WebServiceMessageSender
public class HttpsUrlConnectionMessageSender
extends HttpUrlConnectionMessageSender
implements org.springframework.beans.factory.InitializingBean
Extension of
HttpUrlConnectionMessageSender
that adds support for (self-signed) HTTPS certificates.- Since:
- 1.5.8
- Author:
- Alex Marshall, Arjen Poutsma
-
Field Summary
Fields inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
prepareConnection
(HttpURLConnection connection) Template method for preparing the givenHttpURLConnection
.void
setHostnameVerifier
(HostnameVerifier hostnameVerifier) Specifies the host name verifier to use for this message sender.void
setKeyManagers
(KeyManager[] keyManagers) Specifies the key managers to use for this message sender.void
Specifies the secure random to use for this message sender.void
setSslProtocol
(String sslProtocol) Sets the SSL protocol to use.void
setSslProvider
(String sslProvider) Sets the SSL provider to use.void
setSslSocketFactory
(SSLSocketFactory sslSocketFactory) Specifies the SSLSocketFactory to use for this message sender.void
setTrustManagers
(TrustManager[] trustManagers) Specifies the trust managers to use for this message sender.Methods inherited from class org.springframework.ws.transport.http.HttpUrlConnectionMessageSender
createConnection, setConnectionTimeout, setReadTimeout
Methods inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
isAcceptGzipEncoding, setAcceptGzipEncoding, supports
-
Field Details
-
DEFAULT_SSL_PROTOCOL
The default SSL protocol.- See Also:
-
-
Constructor Details
-
HttpsUrlConnectionMessageSender
public HttpsUrlConnectionMessageSender()
-
-
Method Details
-
setSslProtocol
Sets the SSL protocol to use. Default isssl
.- See Also:
-
setSslProvider
Sets the SSL provider to use. Default is empty, to use the default provider.- See Also:
-
setKeyManagers
Specifies the key managers to use for this message sender.Setting either this property or
trustManagers
is required. -
setTrustManagers
Specifies the trust managers to use for this message sender.Setting either this property or
keyManagers
is required. -
setHostnameVerifier
Specifies the host name verifier to use for this message sender. -
setSecureRandom
Specifies the secure random to use for this message sender. -
setSslSocketFactory
Specifies the SSLSocketFactory to use for this message sender. -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
prepareConnection
Description copied from class:HttpUrlConnectionMessageSender
Template method for preparing the givenHttpURLConnection
.The default implementation prepares the connection for input and output, sets the HTTP method to POST, disables caching, and sets the
Accept-Encoding
header to gzip, if applicable.- Overrides:
prepareConnection
in classHttpUrlConnectionMessageSender
- Parameters:
connection
- the connection to prepare- Throws:
IOException
- in case of I/O errors
-