|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.invocation.http.interfaces.Util
Common client utility methods
| Field Summary | |
static java.lang.String |
IGNORE_HTTPS_HOST
A property to override the default https url host verification |
static java.lang.String |
SSL_FACTORY_BUILDER
A property to install the https connection ssl socket factory |
| Constructor Summary | |
Util()
|
|
| Method Summary | |
static void |
configureHttpsHostVerifier(java.net.HttpURLConnection conn)
Given an Https URL connection check the org.jboss.security.ignoreHttpsHost system property and if true, install the AnyhostVerifier as the com.sun.net.ssl.HostnameVerifier or javax.net.ssl.HostnameVerifier depending on the version of JSSE seen. |
static void |
configureSSLSocketFactory(java.net.HttpURLConnection conn)
Override the SSLSocketFactory used by the HttpsURLConnection. |
static void |
init()
Install the SecurityAssociationAuthenticator as the default java.net.Authenticator |
static java.lang.Object |
invoke(java.net.URL externalURL,
Invocation (src) mi)
Post the Invocation as a serialized MarshalledInvocation object. |
static java.net.URL |
resolveURL(java.lang.String urlValue)
First try to use the externalURLValue as a URL string and if this fails to produce a valid URL treat the externalURLValue as a system property name from which to obtain the URL string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String IGNORE_HTTPS_HOST
public static final java.lang.String SSL_FACTORY_BUILDER
| Constructor Detail |
public Util()
| Method Detail |
public static void init()
public static java.lang.Object invoke(java.net.URL externalURL,
Invocation (src) mi)
throws java.lang.Exception
java.lang.Exceptionpublic static void configureHttpsHostVerifier(java.net.HttpURLConnection conn)
conn - a HttpsURLConnection
public static void configureSSLSocketFactory(java.net.HttpURLConnection conn)
throws java.lang.reflect.InvocationTargetException
conn - possibly a HttpsURLConnection
java.lang.reflect.InvocationTargetException - thrown on failure to invoke setSSLSocketFactory
public static java.net.URL resolveURL(java.lang.String urlValue)
throws java.net.MalformedURLException
java.net.MalformedURLException
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||