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 final static int HTTP_OK
public final static int HTTP_CREATEDHTTP_ACCEPTED
public final static int HTTP_ACCEPTEDHTTP_NOT_AUTHORITATIVE
public final static int HTTP_NOT_AUTHORITATIVEHTTP_NO_CONTENT
public final static int HTTP_NO_CONTENTHTTP_RESET
public final static int HTTP_RESETHTTP_PARTIAL
public final static int HTTP_PARTIALHTTP_MULT_CHOICE
public final static int HTTP_MULT_CHOICE
public final static int HTTP_MOVED_PERMHTTP_MOVED_TEMP
public final static int HTTP_MOVED_TEMPHTTP_SEE_OTHER
public final static int HTTP_SEE_OTHERHTTP_NOT_MODIFIED
public final static int HTTP_NOT_MODIFIEDHTTP_USE_PROXY
public final static int HTTP_USE_PROXYHTTP_BAD_REQUEST
public final static int HTTP_BAD_REQUEST
public final static int HTTP_UNAUTHORIZEDHTTP_PAYMENT_REQUIRED
public final static int HTTP_PAYMENT_REQUIREDHTTP_FORBIDDEN
public final static int HTTP_FORBIDDENHTTP_NOT_FOUND
public final static int HTTP_NOT_FOUNDHTTP_BAD_METHOD
public final static int HTTP_BAD_METHODHTTP_NOT_ACCEPTABLE
public final static int HTTP_NOT_ACCEPTABLEHTTP_PROXY_AUTH
public final static int HTTP_PROXY_AUTHHTTP_CLIENT_TIMEOUT
public final static int HTTP_CLIENT_TIMEOUTHTTP_CONFLICT
public final static int HTTP_CONFLICTHTTP_GONE
public final static int HTTP_GONEHTTP_LENGTH_REQUIRED
public final static int HTTP_LENGTH_REQUIREDHTTP_PRECON_FAILED
public final static int HTTP_PRECON_FAILEDHTTP_ENTITY_TOO_LARGE
public final static int HTTP_ENTITY_TOO_LARGEHTTP_REQ_TOO_LONG
public final static int HTTP_REQ_TOO_LONGHTTP_UNSUPPORTED_TYPE
public final static int HTTP_UNSUPPORTED_TYPEHTTP_SERVER_ERROR
public final static int HTTP_SERVER_ERROR
public final static int HTTP_INTERNAL_ERRORHTTP_BAD_GATEWAY
public final static int HTTP_BAD_GATEWAYHTTP_UNAVAILABLE
public final static int HTTP_UNAVAILABLEHTTP_GATEWAY_TIMEOUT
public final static int HTTP_GATEWAY_TIMEOUTHTTP_VERSION
public final static 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 UnauthorizedExtracts 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 FoundExtracts 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