|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLConnection java.net.HttpURLConnection org.w3c.www.protocol.http.HttpURLConnection iaik.protocol.https.HttpsURLConnection
public class HttpsURLConnection
The class HttpsURLConnection provides support for HTTPS URLs. HTTPS is
simply HTTP over SSL/TLS instead of over plain TCP. This code makes
use of a IAIK customized version of the W3C HTTP implementation provided
as the JAR file 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
,
Handler
Field Summary |
---|
Fields inherited from class org.w3c.www.protocol.http.HttpURLConnection |
---|
output, reply, request, sslContext, streamingSrv |
Fields inherited from class java.net.HttpURLConnection |
---|
chunkLength, fixedContentLength, 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)
Constructor for a HttpsURLConnection. |
|
HttpsURLConnection(java.net.URL u,
java.net.Proxy p)
Constructor for a HttpsURLConnection. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.w3c.www.protocol.http.HttpURLConnection |
---|
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, usingProxy |
Methods inherited from class java.net.HttpURLConnection |
---|
getFollowRedirects, getHeaderFieldDate, getPermission, getRequestMethod, setFollowRedirects |
Methods inherited from class java.net.URLConnection |
---|
getAllowUserInteraction, getContent, getContent, getContentEncoding, getDefaultAllowUserInteraction, getDefaultUseCaches, getDoInput, getDoOutput, getFileNameMap, getHeaderFieldInt, getIfModifiedSince, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, 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) 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 to
java.io.IOException
public 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 connect
java.io.IOException
Method Detail |
---|
public static void setDefaultSSLContext(SSLContext context)
public static SSLContext getDefaultSSLContext()
public void setSSLContext(SSLContext context)
setSSLContext
in class org.w3c.www.protocol.http.HttpURLConnection
public SSLContext getSSLContext()
getSSLContext
in class org.w3c.www.protocol.http.HttpURLConnection
public SSLSocket getSSLSocket() throws java.io.IOException
getSSLSocket
in class org.w3c.www.protocol.http.HttpURLConnection
java.io.IOException
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |