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
-
Field Summary
FieldsFields inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprepareConnection(HttpURLConnection connection) Template method for preparing the givenHttpURLConnection.voidsetHostnameVerifier(HostnameVerifier hostnameVerifier) Specifies the host name verifier to use for this message sender.voidsetKeyManagers(KeyManager[] keyManagers) Specifies the key managers to use for this message sender.voidSpecifies the secure random to use for this message sender.voidsetSslProtocol(String sslProtocol) Sets the SSL protocol to use.voidsetSslProvider(String sslProvider) Sets the SSL provider to use.voidsetSslSocketFactory(SSLSocketFactory sslSocketFactory) Specifies the SSLSocketFactory to use for this message sender.voidsetTrustManagers(TrustManager[] trustManagers) Specifies the trust managers to use for this message sender.Methods inherited from class org.springframework.ws.transport.http.HttpUrlConnectionMessageSender
createConnection, setConnectionTimeout, setReadTimeoutMethods 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
trustManagersis required. -
setTrustManagers
Specifies the trust managers to use for this message sender.Setting either this property or
keyManagersis 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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
prepareConnection
Description copied from class:HttpUrlConnectionMessageSenderTemplate 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-Encodingheader to gzip, if applicable.- Overrides:
prepareConnectionin classHttpUrlConnectionMessageSender- Parameters:
connection- the connection to prepare- Throws:
IOException- in case of I/O errors
-