|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender org.springframework.ws.transport.http.HttpUrlConnectionMessageSender org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender
public class HttpsUrlConnectionMessageSender
Extension of HttpUrlConnectionMessageSender
that adds support for (self-signed) HTTPS certificates.
Field Summary | |
---|---|
static String |
DEFAULT_SSL_PROTOCOL
The default SSL protocol. |
Fields inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender |
---|
logger |
Constructor Summary | |
---|---|
HttpsUrlConnectionMessageSender()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected void |
prepareConnection(HttpURLConnection connection)
Template method for preparing the given HttpURLConnection . |
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 |
setSecureRandom(SecureRandom rnd)
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 |
Methods inherited from class org.springframework.ws.transport.http.AbstractHttpWebServiceMessageSender |
---|
isAcceptGzipEncoding, setAcceptGzipEncoding, supports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SSL_PROTOCOL
Constructor Detail |
---|
public HttpsUrlConnectionMessageSender()
Method Detail |
---|
public void setSslProtocol(String sslProtocol)
ssl
.
SSLContext.getInstance(String, String)
public void setSslProvider(String sslProvider)
SSLContext.getInstance(String, String)
public void setKeyManagers(KeyManager[] keyManagers)
trustManagers
is required.
SSLContext.init(KeyManager[], TrustManager[], SecureRandom)
public void setTrustManagers(TrustManager[] trustManagers)
keyManagers
is required.
SSLContext.init(KeyManager[], TrustManager[], SecureRandom)
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
HttpsURLConnection.setHostnameVerifier(HostnameVerifier)
public void setSecureRandom(SecureRandom rnd)
SSLContext.init(KeyManager[], TrustManager[], SecureRandom)
public void setSslSocketFactory(SSLSocketFactory sslSocketFactory)
HttpsURLConnection.setSSLSocketFactory(SSLSocketFactory sf)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected void prepareConnection(HttpURLConnection connection) throws IOException
HttpUrlConnectionMessageSender
HttpURLConnection
.
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.
prepareConnection
in class HttpUrlConnectionMessageSender
connection
- the connection to prepare
IOException
- in case of I/O errors
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |