.
Note: It is a best try effort as different version of the JDK have different
behaviours for HttpURLConnection
(And I'm not even including
the numerous HttpURLConnection
bugs!).
- Version:
- $Id: HttpURLConnection.html,v 1.1 2003/04/14 12:27:28 sinisa Exp $
- Author:
- Vincent Massol
Fields inherited from class java.net.HttpURLConnection |
HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_NO_CONTENT, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION |
Methods inherited from class java.net.HttpURLConnection |
getFollowRedirects, getHeaderFieldDate, setFollowRedirects |
Methods inherited from class java.net.URLConnection |
getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getExpiration, getFileNameMap, getHeaderFieldInt, getLastModified, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HttpURLConnection
public HttpURLConnection(HttpMethod theMethod,
URL theURL)
HttpURLConnection
protected HttpURLConnection(URL theURL)
connect
public void connect()
throws java.io.IOException
disconnect
public void disconnect()
getAllowUserInteraction
public boolean getAllowUserInteraction()
getContent
public Object getContent()
throws java.io.IOException
getContent
public Object getContent(Class[] theClasses)
throws java.io.IOException
Affected by: around() in LogAspect
.
getDefaultUseCaches
public boolean getDefaultUseCaches()
getDoInput
public boolean getDoInput()
getDoOutput
public boolean getDoOutput()
getErrorStream
public InputStream getErrorStream()
getHeaderField
public String getHeaderField(String theName)
Affected by: around() in LogAspect
.
getHeaderField
public String getHeaderField(int thePosition)
Affected by: around() in LogAspect
.
getHeaderFieldKey
public String getHeaderFieldKey(int theKeyPosition)
Affected by: around() in LogAspect
.
getIfModifiedSince
public long getIfModifiedSince()
getInputStream
public InputStream getInputStream()
throws java.io.IOException
getInstanceFollowRedirects
public boolean getInstanceFollowRedirects()
getOutputStream
public OutputStream getOutputStream()
throws java.io.IOException
getPermission
public Permission getPermission()
throws java.io.IOException
getRequestMethod
public String getRequestMethod()
getRequestProperty
public String getRequestProperty(String theKey)
Affected by: around() in LogAspect
.
getResponseCode
public int getResponseCode()
throws java.io.IOException
getResponseMessage
public String getResponseMessage()
throws java.io.IOException
getURL
public URL getURL()
getUseCaches
public boolean getUseCaches()
setAllowUserInteraction
public void setAllowUserInteraction(boolean isAllowInteraction)
Affected by: around() in LogAspect
.
setDefaultUseCaches
public void setDefaultUseCaches(boolean isUsingCaches)
Affected by: around() in LogAspect
.
setDoInput
public void setDoInput(boolean isInput)
Affected by: around() in LogAspect
.
setDoOutput
public void setDoOutput(boolean isOutput)
Affected by: around() in LogAspect
.
setIfModifiedSince
public void setIfModifiedSince(long theModificationDate)
Affected by: around() in LogAspect
.
setInstanceFollowRedirects
public void setInstanceFollowRedirects(boolean isFollowingRedirects)
Affected by: around() in LogAspect
.
setRequestMethod
public void setRequestMethod(String theMethod)
throws java.net.ProtocolException
Affected by: around() in LogAspect
.
setRequestProperty
public void setRequestProperty(String theKey,
String theValue)
Affected by: around() in LogAspect
.
setUseCaches
public void setUseCaches(boolean isUsingCaches)
Affected by: around() in LogAspect
.
usingProxy
public boolean usingProxy()
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.