|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.URLConnection | +--java.net.HttpURLConnection | +--weblogic.net.http.HttpURLConnection | +--weblogic.net.http.HttpsURLConnection
A class to represent an HTTPS connection to a remote object.
Fields inherited from class weblogic.net.http.HttpURLConnection |
clenOS,
debug,
defaultConnectTimeout,
defaultReadTimeout,
http,
inputStream,
instanceConnectTimeout,
instanceReadTimeout,
poster,
ps,
requests,
responses,
setRequests,
userAgent |
Fields inherited from class java.net.HttpURLConnection |
HTTP_ACCEPTED,
HTTP_BAD_GATEWAY,
HTTP_BAD_METHOD,
HTTP_BAD_REQUEST,
HTTP_CLIENT_TIMEOUT,
HTTP_CONFLICT,
HTTP_CREATED,
HTTP_ENTITY_TOO_LARGE,
HTTP_FORBIDDEN,
HTTP_GATEWAY_TIMEOUT,
HTTP_GONE,
HTTP_INTERNAL_ERROR,
HTTP_LENGTH_REQUIRED,
HTTP_MOVED_PERM,
HTTP_MOVED_TEMP,
HTTP_MULT_CHOICE,
HTTP_NO_CONTENT,
HTTP_NOT_ACCEPTABLE,
HTTP_NOT_AUTHORITATIVE,
HTTP_NOT_FOUND,
HTTP_NOT_IMPLEMENTED,
HTTP_NOT_MODIFIED,
HTTP_OK,
HTTP_PARTIAL,
HTTP_PAYMENT_REQUIRED,
HTTP_PRECON_FAILED,
HTTP_PROXY_AUTH,
HTTP_REQ_TOO_LONG,
HTTP_RESET,
HTTP_SEE_OTHER,
HTTP_SERVER_ERROR,
HTTP_UNAUTHORIZED,
HTTP_UNAVAILABLE,
HTTP_UNSUPPORTED_TYPE,
HTTP_USE_PROXY,
HTTP_VERSION,
instanceFollowRedirects,
method,
responseCode,
responseMessage |
Fields inherited from class java.net.URLConnection |
allowUserInteraction,
connected,
doInput,
doOutput,
ifModifiedSince,
url,
useCaches |
Constructor Summary | |
HttpsURLConnection(java.net.URL u)
|
Method Summary | |
void |
connect()
Make SSL connetion to URL which received in constructor. |
void |
disconnect()
|
java.lang.String |
getCipherSuite()
Returns the cipher suite that was negotiatd for the SSL connection. |
static HostnameVerifier |
getDefaultHostnameVerifier()
Deprecated. Deprecated in WebLogic Server 7.0. Replaced by the getDefaultHostnameVerifierJSSE() method. |
static HostnameVerifierJSSE |
getDefaultHostnameVerifierJSSE()
Gets the default HostnameVerifierJSSE inherited when an instance of this class is created. |
static SSLSocketFactory |
getDefaultSSLSocketFactory()
Gets the default static SSL socket factory to be used when creating sockets for secure https URL connections. |
HostnameVerifier |
getHostnameVerifier()
Deprecated. Deprecated in WebLogic Server 7.0. Replaced by the getHostnameVerifierJSSE() method. |
HostnameVerifierJSSE |
getHostnameVerifierJSSE()
Gets the HostnameVerifierJSSE. |
protected weblogic.net.http.HttpClient |
getHttpClient()
|
protected java.lang.String |
getProtocol()
|
javax.security.cert.X509Certificate[] |
getServerCertificateChain()
Returns the certificate chain that was received from the server during the SSL handshake. |
javax.net.ssl.SSLSession |
getSSLSession()
Returns the SSL session for the connection. |
SSLSocketFactory |
getSSLSocketFactory()
Gets the SSL socket factory to be used when creating sockets for secure https URL connections. |
void |
loadLocalIdentity(java.security.cert.Certificate[] certs,
java.security.PrivateKey privateKey)
Load local identity cert chain and private key for client |
void |
loadLocalIdentity(java.io.InputStream[] stream)
Load local identity key and certs for client. |
void |
loadLocalIdentity(java.io.InputStream certStream,
java.io.InputStream keyStream,
char[] password)
Load local identity cert chain and private key for client |
void |
setConnectTimeout(int timeout)
Sets the Connection timeout in milliseconds. |
void |
setHostnameVerifier(HostnameVerifier hv)
Deprecated. Deprecated in WebLogic Server 7.0. Replaced by the setHostnameVerifierJSSE() method. |
void |
setHostnameVerifierJSSE(HostnameVerifierJSSE hv)
Sets the HostnameVerifierJSSE for this instance of this class. |
void |
setSSLClientCertificate(java.io.InputStream[] certs)
Load local identity key and certs for client. |
void |
setSSLSocketFactory(SSLSocketFactory sslSF)
Sets the SSL socket factory to be used when creating sockets for secure https URL connections. |
Methods inherited from class weblogic.net.http.HttpURLConnection |
doSetRequests,
followRedirect,
getAuthInfo,
getConnectTimeout,
getErrorStream,
getHeaderField,
getHeaderField,
getHeaderFieldKey,
getHeaderFields,
getInputStream,
getOutputStream,
getProxyAuthString,
getReadTimeout,
getRequestProperty,
getResponseCode,
getTimeout,
setEmptyRequestProperty,
setReadTimeout,
setRequestProperty,
setTimeout,
usingProxy,
writeRequests |
Methods inherited from class java.net.HttpURLConnection |
getFollowRedirects,
getHeaderFieldDate,
getInstanceFollowRedirects,
getPermission,
getRequestMethod,
getResponseMessage,
setFollowRedirects,
setInstanceFollowRedirects,
setRequestMethod |
Methods inherited from class java.net.URLConnection |
addRequestProperty,
getAllowUserInteraction,
getContent,
getContent,
getContentEncoding,
getContentLength,
getContentType,
getDate,
getDefaultAllowUserInteraction,
getDefaultRequestProperty,
getDefaultUseCaches,
getDoInput,
getDoOutput,
getExpiration,
getFileNameMap,
getHeaderFieldInt,
getIfModifiedSince,
getLastModified,
getRequestProperties,
getURL,
getUseCaches,
guessContentTypeFromName,
guessContentTypeFromStream,
setAllowUserInteraction,
setContentHandlerFactory,
setDefaultAllowUserInteraction,
setDefaultRequestProperty,
setDefaultUseCaches,
setDoInput,
setDoOutput,
setFileNameMap,
setIfModifiedSince,
setUseCaches,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HttpsURLConnection(java.net.URL u)
Method Detail |
public void loadLocalIdentity(java.io.InputStream[] stream)
public void loadLocalIdentity(java.io.InputStream certStream, java.io.InputStream keyStream, char[] password)
public void loadLocalIdentity(java.security.cert.Certificate[] certs, java.security.PrivateKey privateKey)
public void setSSLClientCertificate(java.io.InputStream[] certs)
public void setHostnameVerifier(HostnameVerifier hv)
public HostnameVerifier getHostnameVerifier()
public static HostnameVerifier getDefaultHostnameVerifier()
public void setHostnameVerifierJSSE(HostnameVerifierJSSE hv)
public HostnameVerifierJSSE getHostnameVerifierJSSE()
public static HostnameVerifierJSSE getDefaultHostnameVerifierJSSE()
public void setSSLSocketFactory(SSLSocketFactory sslSF)
public SSLSocketFactory getSSLSocketFactory()
public static SSLSocketFactory getDefaultSSLSocketFactory()
public java.lang.String getCipherSuite()
public javax.security.cert.X509Certificate[] getServerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException
public javax.net.ssl.SSLSession getSSLSession()
public void connect() throws java.io.IOException
public void disconnect()
protected java.lang.String getProtocol()
protected weblogic.net.http.HttpClient getHttpClient() throws java.io.IOException
public void setConnectTimeout(int timeout)
timeout
- an int that define the connection timeout in milliseconds, -1 means infinity.HttpURLConnection.getConnectTimeout()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |