Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.net.URLConnection
java.net.HttpURLConnection
javax.net.ssl.HttpsURLConnection
gnu.java.net.protocol.http.HTTPURLConnection
Field Summary |
Fields inherited from class javax.net.ssl.HttpsURLConnection | |
hostnameVerifier |
Fields inherited from class java.net.URLConnection | |
allowUserInteraction , connected , doInput , doOutput , ifModifiedSince , url , useCaches |
Constructor Summary | |
|
Method Summary | |
Map | |
void |
|
void |
|
void | |
String | |
String | |
InputStream | |
String |
|
String |
|
long |
|
String |
|
Map | |
InputStream | |
Certificate[] | |
OutputStream | |
String |
|
int | |
String | |
Certificate[] | |
void | |
void |
|
void |
|
void |
|
boolean |
Methods inherited from class java.net.HttpURLConnection | |
disconnect , getErrorStream , getFollowRedirects , getHeaderFieldDate , getInstanceFollowRedirects , getPermission , getRequestMethod , getResponseCode , getResponseMessage , setFollowRedirects , setInstanceFollowRedirects , setRequestMethod , usingProxy |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public HTTPURLConnection(URL url) throws IOException
Constructor.
- Parameters:
url
- the URL
public void addRequestProperty(String key, String value)
- Overrides:
- addRequestProperty in interface URLConnection
public String getCipherSuite()
- Overrides:
- getCipherSuite in interface HttpsURLConnection
public InputStream getErrorStream()
- Overrides:
- getErrorStream in interface HttpURLConnection
public String getHeaderField(int index)
- Overrides:
- getHeaderField in interface URLConnection
public String getHeaderField(String name)
- Overrides:
- getHeaderField in interface URLConnection
public long getHeaderFieldDate(String name, long def)
- Overrides:
- getHeaderFieldDate in interface HttpURLConnection
public String getHeaderFieldKey(int index)
- Overrides:
- getHeaderFieldKey in interface URLConnection
public InputStream getInputStream() throws IOException
- Overrides:
- getInputStream in interface URLConnection
public Certificate[] getLocalCertificates()
- Overrides:
- getLocalCertificates in interface HttpsURLConnection
public OutputStream getOutputStream() throws IOException
- Overrides:
- getOutputStream in interface URLConnection
public String getRequestProperty(String key)
- Overrides:
- getRequestProperty in interface URLConnection
public int getResponseCode() throws IOException
- Overrides:
- getResponseCode in interface HttpURLConnection
public String getResponseMessage() throws IOException
- Overrides:
- getResponseMessage in interface HttpURLConnection
public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException
- Overrides:
- getServerCertificates in interface HttpsURLConnection
public void handshakeCompleted(HandshakeCompletedEvent event)
- Specified by:
- handshakeCompleted in interface HandshakeCompletedListener
public void setReadTimeout(int timeout) throws IllegalArgumentException
Set the read timeout, in milliseconds, or zero if the timeout is to be considered infinite. Overloaded.
- Overrides:
- setReadTimeout in interface URLConnection
public void setRequestMethod(String method) throws ProtocolException
Overrides the corresponding method in HttpURLConnection to permit arbitrary methods, as long as they're valid ASCII alphabetic characters. This is to permit WebDAV and other HTTP extensions to function.
- Overrides:
- setRequestMethod in interface HttpURLConnection
- Parameters:
method
- the method
public void setRequestProperty(String key, String value)
- Overrides:
- setRequestProperty in interface URLConnection