FileDocCategorySizeDatePackage
HttpsURLConnection.javaAPI DocAndroid 1.5 API13128Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.internal.net.www.protocol.https

HttpsURLConnection

public class HttpsURLConnection extends HttpsURLConnection
HttpsURLConnection implementation.

Fields Summary
private final HttpsEngine
httpsEngine
private SSLSocket
sslSocket
Constructors Summary
protected HttpsURLConnection(URL url, int port)

        super(url);
        httpsEngine = new HttpsEngine(url, port);
    
protected HttpsURLConnection(URL url, int port, Proxy proxy)

        super(url);
        httpsEngine = new HttpsEngine(url, port, proxy);
    
Methods Summary
public voidaddRequestProperty(java.lang.String field, java.lang.String newValue)

        httpsEngine.addRequestProperty(field, newValue);
    
public voidconnect()

        httpsEngine.connect();
    
public voiddisconnect()

        httpsEngine.disconnect();
    
public booleangetAllowUserInteraction()

        return httpsEngine.getAllowUserInteraction();
    
public java.lang.StringgetCipherSuite()

        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        }
        return sslSocket.getSession().getCipherSuite();
    
public intgetConnectTimeout()

        return httpsEngine.getConnectTimeout();
    
public java.lang.ObjectgetContent()

        return httpsEngine.getContent();
    
public java.lang.ObjectgetContent(java.lang.Class[] types)

        return httpsEngine.getContent(types);
    
public java.lang.StringgetContentEncoding()

        return httpsEngine.getContentEncoding();
    
public intgetContentLength()

        return httpsEngine.getContentLength();
    
public java.lang.StringgetContentType()

        return httpsEngine.getContentType();
    
public longgetDate()

        return httpsEngine.getDate();
    
public booleangetDefaultUseCaches()

        return httpsEngine.getDefaultUseCaches();
    
public booleangetDoInput()

        return httpsEngine.getDoInput();
    
public booleangetDoOutput()

        return httpsEngine.getDoOutput();
    
public java.io.InputStreamgetErrorStream()

        return httpsEngine.getErrorStream();
    
public longgetExpiration()

        return httpsEngine.getExpiration();
    
public java.lang.StringgetHeaderField(int pos)

        return httpsEngine.getHeaderField(pos);
    
public java.lang.StringgetHeaderField(java.lang.String key)

        return httpsEngine.getHeaderField(key);
    
public longgetHeaderFieldDate(java.lang.String field, long defaultValue)

        return httpsEngine.getHeaderFieldDate(field, defaultValue);
    
public intgetHeaderFieldInt(java.lang.String field, int defaultValue)

        return httpsEngine.getHeaderFieldInt(field, defaultValue);
    
public java.lang.StringgetHeaderFieldKey(int posn)

        return httpsEngine.getHeaderFieldKey(posn);
    
public java.util.MapgetHeaderFields()

        return httpsEngine.getHeaderFields();
    
public longgetIfModifiedSince()

        return httpsEngine.getIfModifiedSince();
    
public java.io.InputStreamgetInputStream()

        return httpsEngine.getInputStream();
    
public booleangetInstanceFollowRedirects()

        return httpsEngine.getInstanceFollowRedirects();
    
public longgetLastModified()

        return httpsEngine.getLastModified();
    
public java.security.cert.Certificate[]getLocalCertificates()

        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        }
        return sslSocket.getSession().getLocalCertificates();
    
public java.security.PrincipalgetLocalPrincipal()

        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        }
        return sslSocket.getSession().getLocalPrincipal();
    
public java.io.OutputStreamgetOutputStream()

        return httpsEngine.getOutputStream();
    
public java.security.PrincipalgetPeerPrincipal()

        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        }
        return sslSocket.getSession().getPeerPrincipal();
    
public java.security.PermissiongetPermission()

        return httpsEngine.getPermission();
    
public intgetReadTimeout()

        return httpsEngine.getReadTimeout();
    
public java.lang.StringgetRequestMethod()

        return httpsEngine.getRequestMethod();
    
public java.util.MapgetRequestProperties()

        return httpsEngine.getRequestProperties();
    
public java.lang.StringgetRequestProperty(java.lang.String field)

        return httpsEngine.getRequestProperty(field);
    
public intgetResponseCode()

        return httpsEngine.getResponseCode();
    
public java.lang.StringgetResponseMessage()

        return httpsEngine.getResponseMessage();
    
public java.security.cert.Certificate[]getServerCertificates()

        if (sslSocket == null) {
            throw new IllegalStateException(Messages.getString("luni.00")); //$NON-NLS-1$
        }
        return sslSocket.getSession().getPeerCertificates();
    
public java.net.URLgetURL()

        return httpsEngine.getURL();
    
public booleangetUseCaches()

        return httpsEngine.getUseCaches();
    
public voidsetAllowUserInteraction(boolean newValue)

        httpsEngine.setAllowUserInteraction(newValue);
    
public voidsetConnectTimeout(int timeout)

        httpsEngine.setConnectTimeout(timeout);
    
public voidsetDefaultUseCaches(boolean newValue)

        httpsEngine.setDefaultUseCaches(newValue);
    
public voidsetDoInput(boolean newValue)

        httpsEngine.setDoInput(newValue);
    
public voidsetDoOutput(boolean newValue)

        httpsEngine.setDoOutput(newValue);
    
public voidsetIfModifiedSince(long newValue)

        httpsEngine.setIfModifiedSince(newValue);
    
public voidsetInstanceFollowRedirects(boolean followRedirects)

        httpsEngine.setInstanceFollowRedirects(followRedirects);
    
public voidsetReadTimeout(int timeout)

        httpsEngine.setReadTimeout(timeout);
    
public voidsetRequestMethod(java.lang.String method)

        httpsEngine.setRequestMethod(method);
    
public voidsetRequestProperty(java.lang.String field, java.lang.String newValue)

        httpsEngine.setRequestProperty(field, newValue);
    
public voidsetUseCaches(boolean newValue)

        httpsEngine.setUseCaches(newValue);
    
public java.lang.StringtoString()

        return httpsEngine.toString();
    
public booleanusingProxy()

        return httpsEngine.usingProxy();