public class HttpsURLConnection
extends org.w3c.www.protocol.http.HttpURLConnection
w3c_http.jar.
This class provides all the standard features of
java.net.HttpURLConnection plus the SSL specific methods
defined below.
Note that there is a separate document describing the use of HTTPS
with iSaSiLk in more detail, it is called https.html and
provided in your iSaSiLk installation directory.
HttpsURLStreamHandlerFactory,
Handleroutput, reply, request, sslContext, streamingSrvchunkLength, fixedContentLength, fixedContentLengthLong, 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| Constructor and Description |
|---|
HttpsURLConnection(java.net.URL u)
Constructor for a HttpsURLConnection.
|
HttpsURLConnection(java.net.URL u,
java.net.Proxy p)
Constructor for a HttpsURLConnection.
|
| Modifier and Type | Method and Description |
|---|---|
static SSLContext |
getDefaultSSLContext()
Get the current default SSLContext.
|
SSLContext |
getSSLContext()
Get the current SSLContext for this HTTPS URLConnection.
|
SSLSocket |
getSSLSocket()
Get the SSLSocket this URLConnection is communicating over.
|
static void |
setDefaultSSLContext(SSLContext context)
Set the default SSLContext for all HTTPS URLConnections.
|
void |
setSSLContext(SSLContext context)
Set the SSLContext to be used for this HTTPS URLConnection.
|
addRequestProperty, checkReply, checkRequest, connect, connect0, debug, disconnect, error, getConnectTimeout, getContentLength, getContentType, getDate, getDefaultRequestProperty, getErrorStream, getExpiration, getHeaderField, getHeaderField, getHeaderFieldKey, getHeaderFields, getInputStream, getInstanceFollowRedirects, getLastModified, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getResponseCode, getResponseMessage, setChunkedStreamingMode, setConnectTimeout, setDoOutput, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setGlobalRequestProperty, setInputStream, setInstanceFollowRedirects, setReadTimeout, setRequestMethod, setRequestProperty, usingProxygetFollowRedirects, getHeaderFieldDate, getPermission, getRequestMethod, setFollowRedirectsgetAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLengthLong, getDefaultAllowUserInteraction, getDefaultUseCaches, getDoInput, getDoOutput, getFileNameMap, getHeaderFieldInt, getHeaderFieldLong, getIfModifiedSince, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setFileNameMap, setIfModifiedSince, setUseCaches, toStringpublic HttpsURLConnection(java.net.URL u)
throws java.io.IOException
openConnection(URL) on a
HTTPS URL with the protocol handler installed.
In case you are unable to properly register the HTTPS handler you can use this constructor directly, but first see https.html for details.
u - the URL to connect tojava.io.IOExceptionpublic HttpsURLConnection(java.net.URL u,
java.net.Proxy p)
throws java.io.IOException
openConnection(URL, Proxy) on a
HTTPS URL with the protocol handler installed.u - the URL to connect top - the Proxy through which to connectjava.io.IOExceptionpublic static void setDefaultSSLContext(SSLContext context)
public static SSLContext getDefaultSSLContext()
public void setSSLContext(SSLContext context)
setSSLContext in class org.w3c.www.protocol.http.HttpURLConnectionpublic SSLContext getSSLContext()
getSSLContext in class org.w3c.www.protocol.http.HttpURLConnectionpublic SSLSocket getSSLSocket() throws java.io.IOException
getSSLSocket in class org.w3c.www.protocol.http.HttpURLConnectionjava.io.IOException