gnu.inet.http
Class HTTPURLConnection
HttpURLConnection
gnu.inet.http.HTTPURLConnection
public class HTTPURLConnection
extends HttpURLConnection
A URLConnection that uses the HTTPConnection class.
- Chris Burdess
HTTPURLConnection
public HTTPURLConnection(URL url)
Constructor.
url
- the URL
addRequestProperty
public void addRequestProperty(String key,
String value)
connect
public void connect()
throws IOException
disconnect
public void disconnect()
getHeaderField
public String getHeaderField(int index)
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)
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.
method
- the method
setRequestProperty
public void setRequestProperty(String key,
String value)
usingProxy
public boolean usingProxy()
© Copyright 2003 The Free Software Foundation,
all rights reserved