All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.net.URLConnection
|
+----java.net.HttpURLConnection
protected String method
protected int responseCode
protected String responseMessage
public static final int HTTP_OK
public static final int HTTP_CREATED
HTTP_ACCEPTED
public static final int HTTP_ACCEPTED
HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NOT_AUTHORITATIVE
HTTP_NO_CONTENT
public static final int HTTP_NO_CONTENT
HTTP_RESET
public static final int HTTP_RESET
HTTP_PARTIAL
public static final int HTTP_PARTIAL
HTTP_MULT_CHOICE
public static final int HTTP_MULT_CHOICE
public static final int HTTP_MOVED_PERM
HTTP_MOVED_TEMP
public static final int HTTP_MOVED_TEMP
HTTP_SEE_OTHER
public static final int HTTP_SEE_OTHER
HTTP_NOT_MODIFIED
public static final int HTTP_NOT_MODIFIED
HTTP_USE_PROXY
public static final int HTTP_USE_PROXY
HTTP_BAD_REQUEST
public static final int HTTP_BAD_REQUEST
public static final int HTTP_UNAUTHORIZED
HTTP_PAYMENT_REQUIRED
public static final int HTTP_PAYMENT_REQUIRED
HTTP_FORBIDDEN
public static final int HTTP_FORBIDDEN
HTTP_NOT_FOUND
public static final int HTTP_NOT_FOUND
HTTP_BAD_METHOD
public static final int HTTP_BAD_METHOD
HTTP_NOT_ACCEPTABLE
public static final int HTTP_NOT_ACCEPTABLE
HTTP_PROXY_AUTH
public static final int HTTP_PROXY_AUTH
HTTP_CLIENT_TIMEOUT
public static final int HTTP_CLIENT_TIMEOUT
HTTP_CONFLICT
public static final int HTTP_CONFLICT
HTTP_GONE
public static final int HTTP_GONE
HTTP_LENGTH_REQUIRED
public static final int HTTP_LENGTH_REQUIRED
HTTP_PRECON_FAILED
public static final int HTTP_PRECON_FAILED
HTTP_ENTITY_TOO_LARGE
public static final int HTTP_ENTITY_TOO_LARGE
HTTP_REQ_TOO_LONG
public static final int HTTP_REQ_TOO_LONG
HTTP_UNSUPPORTED_TYPE
public static final int HTTP_UNSUPPORTED_TYPE
HTTP_SERVER_ERROR
public static final int HTTP_SERVER_ERROR
public static final int HTTP_INTERNAL_ERROR
HTTP_BAD_GATEWAY
public static final int HTTP_BAD_GATEWAY
HTTP_UNAVAILABLE
public static final int HTTP_UNAVAILABLE
HTTP_GATEWAY_TIMEOUT
public static final int HTTP_GATEWAY_TIMEOUT
HTTP_VERSION
public static final int HTTP_VERSION
protected HttpURLConnection(URL u)
public static void setFollowRedirects(boolean set)
public static boolean getFollowRedirects()
public void setRequestMethod(String method) throws ProtocolException
public String getRequestMethod()
public int getResponseCode() throws IOException
HTTP/1.0 200 OK
HTTP/1.0 401 Unauthorized
Extracts the ints 200 and 401 respectively.
Returns -1 if none can be discerned
from the response (i.e., the response is not valid HTTP).
public String getResponseMessage() throws IOException
HTTP/1.0 200 OK
HTTP/1.0 404 Not Found
Extracts the Strings "OK" and "Not Found" respectively.
Returns null if none could be discerned from the responses
(the result was not valid HTTP).
public abstract void disconnect()
public abstract boolean usingProxy()
All Packages Class Hierarchy This Package Previous Next Index