A URLConnection that uses the HTTPConnection class.
addRequestProperty
public void addRequestProperty(String key,
String value)
connect
public void connect()
throws IOException
disconnect
public void disconnect()
getContentType
public String getContentType()
getErrorStream
public InputStream getErrorStream()
getHeaderField
public String getHeaderField(String name)
getHeaderField
public String getHeaderField(int index)
getHeaderFieldDate
public long getHeaderFieldDate(String name,
long def)
getHeaderFieldKey
public String getHeaderFieldKey(int index)
getHeaderFields
public Map getHeaderFields()
getInputStream
public InputStream getInputStream()
throws IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
getRequestProperties
public Map getRequestProperties()
getRequestProperty
public String getRequestProperty(String key)
getResponseCode
public int getResponseCode()
throws IOException
getResponseMessage
public String getResponseMessage()
throws IOException
setRequestMethod
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.
setRequestProperty
public void setRequestProperty(String key,
String value)
usingProxy
public boolean usingProxy()