com.endeca.portal.mdex
Class MDEXStateUtil
java.lang.Object
com.endeca.portal.mdex.MDEXStateUtil
public class MDEXStateUtil
- extends java.lang.Object
Method Summary |
static boolean |
checkAPICompatibility(MDEXState state)
|
static java.net.URLConnection |
checkWebService(java.lang.String url,
SSLConfig sslConfig)
|
static void |
configureSSL(java.net.HttpURLConnection connection,
SSLConfig sslConfig)
Configure the given HttpURLConnection with the provided SSL Config
Generally, portlet developers will not need to use this method. |
protected static java.security.KeyStore |
getKeyStore(SSLConfig sslConfig)
|
protected static java.security.KeyStore |
getTrustStore(SSLConfig sslConfig)
|
protected static void |
initSSL()
|
static java.net.URLConnection |
ping(java.lang.String server,
java.lang.String port,
SSLConfig sslConfig)
|
static java.net.URLConnection |
stats(java.lang.String server,
java.lang.String port,
SSLConfig sslConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MDEXStateUtil
public MDEXStateUtil()
ping
public static java.net.URLConnection ping(java.lang.String server,
java.lang.String port,
SSLConfig sslConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkWebService
public static java.net.URLConnection checkWebService(java.lang.String url,
SSLConfig sslConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
stats
public static java.net.URLConnection stats(java.lang.String server,
java.lang.String port,
SSLConfig sslConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkAPICompatibility
public static boolean checkAPICompatibility(MDEXState state)
configureSSL
public static void configureSSL(java.net.HttpURLConnection connection,
SSLConfig sslConfig)
throws java.lang.Exception
- Configure the given HttpURLConnection with the provided SSL Config
Generally, portlet developers will not need to use this method. Instead, use
DataSource.execute(Request)
, which will manage any SSL-related configuration
applicable to the datasource.
This method is useful when a portlet needs to manage query sending/response processing
directly, and needs to configure SSL on the HTTPURLConnection directly. This method will
configure SSL on the connection in the same way SSL is generally applied to connections
made to the MDEX.
If the SSLConfig is null, the connection will be unchanged.
- Parameters:
connection
- sslConfig
-
- Throws:
java.lang.Exception
getTrustStore
protected static java.security.KeyStore getTrustStore(SSLConfig sslConfig)
getKeyStore
protected static java.security.KeyStore getKeyStore(SSLConfig sslConfig)
initSSL
protected static void initSSL()