| |
|
| java.lang.Object org.jboss.invocation.http.interfaces.Util
Util | public class Util (Code) | | Common client utility methods
author: Scott.Stark@jboss.org version: $Revision: 57209 $ |
Method Summary | |
public static void | configureHttpsHostVerifier(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. | public static void | configureSSLSocketFactory(HttpURLConnection conn) Override the SSLSocketFactory used by the HttpsURLConnection. | public static void | init() | public static Object | invoke(URL externalURL, Invocation mi) Post the Invocation as a serialized MarshalledInvocation object. | public static URL | resolveURL(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. |
IGNORE_HTTPS_HOST | final public static String IGNORE_HTTPS_HOST(Code) | | A property to override the default https url host verification
|
SSL_FACTORY_BUILDER | final public static String SSL_FACTORY_BUILDER(Code) | | A property to install the https connection ssl socket factory
|
configureHttpsHostVerifier | public static void configureHttpsHostVerifier(HttpURLConnection conn)(Code) | | 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. If HttpURLConnection is not a
HttpsURLConnection then nothing is done.
Parameters: conn - a HttpsURLConnection |
configureSSLSocketFactory | public static void configureSSLSocketFactory(HttpURLConnection conn) throws InvocationTargetException(Code) | | Override the SSLSocketFactory used by the HttpsURLConnection. This method
will invoke setSSLSocketFactory on any HttpsURLConnection if there was
a SSLSocketFactoryBuilder implementation specified via the
org.jboss.security.httpInvoker.sslSocketFactoryBuilder system property.
Parameters: conn - possibly a HttpsURLConnection throws: InvocationTargetException - thrown on failure to invoke setSSLSocketFactory |
init | public static void init()(Code) | | Install the SecurityAssociationAuthenticator as the default
java.net.Authenticator
|
invoke | public static Object invoke(URL externalURL, Invocation mi) throws Exception(Code) | | Post the Invocation as a serialized MarshalledInvocation object. This is
using the URL class for now but this should be improved to a cluster aware
layer with full usage of HTTP 1.1 features, pooling, etc.
|
resolveURL | public static URL resolveURL(String urlValue) throws MalformedURLException(Code) | | 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. This allows the
proxy url to not be set until the proxy is unmarshalled in the client
vm, and is necessary when the server is sitting behind a firewall or
proxy and does not know what its public http interface is named.
|
|
|
|