gnu.inet.http
Class HTTPURLConnection
java.lang.Object
java.net.URLConnection
java.net.HttpURLConnection
gnu.inet.http.HTTPURLConnection
public class HTTPURLConnection
extends java.net.HttpURLConnection
A URLConnection that uses the HTTPConnection class.
- Chris Burdess
HTTPURLConnection
public HTTPURLConnection(java.net.URL url)
Constructor.
url
- the URL
addRequestProperty
public void addRequestProperty(java.lang.String key,
java.lang.String value)
connect
public void connect()
throws java.io.IOException
disconnect
public void disconnect()
getHeaderField
public java.lang.String getHeaderField(int index)
getHeaderFieldKey
public java.lang.String getHeaderFieldKey(int index)
getHeaderFields
public java.util.Map getHeaderFields()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getRequestProperties
public java.util.Map getRequestProperties()
getRequestProperty
public java.lang.String getRequestProperty(java.lang.String key)
setRequestMethod
public void setRequestMethod(java.lang.String method)
throws java.net.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.
method
- the method
setRequestProperty
public void setRequestProperty(java.lang.String key,
java.lang.String value)
usingProxy
public boolean usingProxy()
© Copyright 2003 The Free Software Foundation,
all rights reserved