Save This Page
Home » openjdk-7 » sun.net.www.protocol » https » [javadoc | source]
sun.net.www.protocol.https
abstract public class: AbstractDelegateHttpsURLConnection [javadoc | source]
java.lang.Object
   java.net.URLConnection
      java.net.HttpURLConnection
         sun.net.www.protocol.http.HttpURLConnection
            sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection

Direct Known Subclasses:
    DelegateHttpsURLConnection, DelegateHttpsURLConnection

HTTPS URL connection support. We need this delegate because HttpsURLConnection is a subclass of java.net.HttpURLConnection. We will avoid copying over the code from sun.net.www.protocol.http.HttpURLConnection by having this class
Fields inherited from sun.net.www.protocol.http.HttpURLConnection:
userAgent
Fields inherited from java.net.HttpURLConnection:
HTTP_OK,  HTTP_CREATED,  HTTP_ACCEPTED,  HTTP_NOT_AUTHORITATIVE,  HTTP_NO_CONTENT,  HTTP_RESET,  HTTP_PARTIAL,  HTTP_MULT_CHOICE,  HTTP_MOVED_PERM,  HTTP_MOVED_TEMP,  HTTP_SEE_OTHER,  HTTP_NOT_MODIFIED,  HTTP_USE_PROXY,  HTTP_BAD_REQUEST,  HTTP_UNAUTHORIZED,  HTTP_PAYMENT_REQUIRED,  HTTP_FORBIDDEN,  HTTP_NOT_FOUND,  HTTP_BAD_METHOD,  HTTP_NOT_ACCEPTABLE,  HTTP_PROXY_AUTH,  HTTP_CLIENT_TIMEOUT,  HTTP_CONFLICT,  HTTP_GONE,  HTTP_LENGTH_REQUIRED,  HTTP_PRECON_FAILED,  HTTP_ENTITY_TOO_LARGE,  HTTP_REQ_TOO_LONG,  HTTP_UNSUPPORTED_TYPE,  HTTP_SERVER_ERROR,  HTTP_INTERNAL_ERROR,  HTTP_NOT_IMPLEMENTED,  HTTP_BAD_GATEWAY,  HTTP_UNAVAILABLE,  HTTP_GATEWAY_TIMEOUT,  HTTP_VERSION
Constructor:
 protected AbstractDelegateHttpsURLConnection(URL url,
    Handler handler) throws IOException 
 protected AbstractDelegateHttpsURLConnection(URL url,
    Proxy p,
    Handler handler) throws IOException 
Method from sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection Summary:
connect,   getCipherSuite,   getHostnameVerifier,   getLocalCertificates,   getLocalPrincipal,   getNewHttpClient,   getNewHttpClient,   getPeerPrincipal,   getSSLSocketFactory,   getServerCertificateChain,   getServerCertificates,   isConnected,   proxiedConnect,   setConnected,   setNewClient,   setNewClient,   setProxiedClient,   setProxiedClient
Methods from sun.net.www.protocol.http.HttpURLConnection:
addRequestProperty,   connect,   disconnect,   doTunneling,   getConnectTimeout,   getErrorStream,   getHeaderField,   getHeaderField,   getHeaderFieldKey,   getHeaderFields,   getInputStream,   getOutputStream,   getReadTimeout,   getRequestProperties,   getRequestProperty,   openConnectionCheckRedirects,   setConnectTimeout,   setDefaultAuthenticator,   setReadTimeout,   setRequestProperty,   usingProxy
Methods from java.net.HttpURLConnection:
disconnect,   getErrorStream,   getFollowRedirects,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldKey,   getInstanceFollowRedirects,   getPermission,   getRequestMethod,   getResponseCode,   getResponseMessage,   setChunkedStreamingMode,   setFixedLengthStreamingMode,   setFollowRedirects,   setInstanceFollowRedirects,   setRequestMethod,   usingProxy
Methods from java.net.URLConnection:
addRequestProperty,   connect,   getAllowUserInteraction,   getConnectTimeout,   getContent,   getContent,   getContentEncoding,   getContentLength,   getContentType,   getDate,   getDefaultAllowUserInteraction,   getDefaultRequestProperty,   getDefaultUseCaches,   getDoInput,   getDoOutput,   getExpiration,   getFileNameMap,   getHeaderField,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldInt,   getHeaderFieldKey,   getHeaderFields,   getIfModifiedSince,   getInputStream,   getLastModified,   getOutputStream,   getPermission,   getReadTimeout,   getRequestProperties,   getRequestProperty,   getURL,   getUseCaches,   guessContentTypeFromName,   guessContentTypeFromStream,   setAllowUserInteraction,   setConnectTimeout,   setContentHandlerFactory,   setDefaultAllowUserInteraction,   setDefaultRequestProperty,   setDefaultUseCaches,   setDoInput,   setDoOutput,   setFileNameMap,   setIfModifiedSince,   setReadTimeout,   setRequestProperty,   setUseCaches,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection Detail:
 public  void connect() throws IOException 
    Implements the HTTP protocol handler's "connect" method, establishing an SSL connection to the server as necessary.
 public String getCipherSuite() 
    Returns the cipher suite in use on this connection.
 abstract protected HostnameVerifier getHostnameVerifier()
 public Certificate[] getLocalCertificates() 
    Returns the certificate chain the client sent to the server, or null if the client did not authenticate.
 Principal getLocalPrincipal() 
    Returns the principal the client sent to the server, or null if the client did not authenticate.
 protected HttpClient getNewHttpClient(URL url,
    Proxy p,
    int connectTimeout) throws IOException 
 protected HttpClient getNewHttpClient(URL url,
    Proxy p,
    int connectTimeout,
    boolean useCache) throws IOException 
 Principal getPeerPrincipal() throws SSLPeerUnverifiedException 
    Returns the server's principal, or throws SSLPeerUnverifiedException if the server did not authenticate.
 abstract protected SSLSocketFactory getSSLSocketFactory()
 public X509Certificate[] getServerCertificateChain() throws SSLPeerUnverifiedException 
    Returns the server's X.509 certificate chain, or null if the server did not authenticate.
 public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException 
    Returns the server's certificate chain, or throws SSLPeerUnverified Exception if the server did not authenticate.
 public boolean isConnected() 
    Used by subclass to access "connected" variable.
 protected  void proxiedConnect(URL url,
    String proxyHost,
    int proxyPort,
    boolean useCache) throws IOException 
 public  void setConnected(boolean conn) 
    Used by subclass to access "connected" variable.
 public  void setNewClient(URL url) throws IOException 
    Create a new HttpClient object, bypassing the cache of HTTP client objects/connections. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
 public  void setNewClient(URL url,
    boolean useCache) throws IOException 
    Obtain a HttpClient object. Use the cached copy if specified. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
 public  void setProxiedClient(URL url,
    String proxyHost,
    int proxyPort) throws IOException 
    Create a new HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. This bypasses the cache of HTTP client objects/connections. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
 public  void setProxiedClient(URL url,
    String proxyHost,
    int proxyPort,
    boolean useCache) throws IOException 
    Obtain a HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. Use the cached copy of HTTP client objects/connections if specified. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation