|
Generated by JDiff |
||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES | DETAIL: CONSTRUCTORS | METHODS | FIELDS |
Changed Constructors | ||
URL ) |
Documentation changed from old to new. |
Constructor for the URLStreamHandler. |
Added Methods | |
boolean getInstanceFollowRedirects() |
Returns the value of this HttpURLConnection 's instanceFollowRedirects field. |
void setInstanceFollowRedirects(boolean ) |
Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this HttpURLConnection instance. |
Changed Methods | ||
void disconnect() |
Documentation changed from old to new. |
Indicates that other requests to the server are unlikely in the near future. |
boolean getFollowRedirects() |
Documentation changed from old to new. |
Returns a boolean indicating whether or not HTTP redirects (3xx) should be automatically followed. |
long getHeaderFieldDate(String, |
Documentation changed from old to new. Method was inherited from URLConnection, but is now defined locally. |
|
String getRequestMethod() |
Documentation changed from old to new. |
Get the request method. |
int getResponseCode() |
Documentation changed from old to new. |
Gets HTTP response status from responses like: HTTP/1.0 200 OK HTTP/1.0 401 UnauthorizedExtracts the ints 200 and 401 respectively. |
String getResponseMessage() |
Documentation changed from old to new. |
Gets the HTTP response message if any returned along with the response code from a server. |
void setFollowRedirects(boolean ) |
Documentation changed from old to new. |
Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed by this class. |
void setRequestMethod(String ) |
Documentation changed from old to new. |
Set the method for the URL request one of:
|
boolean usingProxy() |
Documentation changed from old to new. |
Indicates if the connection is going through a proxy. |
Added Fields | |
int HTTP_NOT_IMPLEMENTED |
HTTP Status-Code 501: Not Implemented. |
boolean instanceFollowRedirects |
If true the protocol will automatically follow redirects. |
Changed Fields | ||
int HTTP_ACCEPTED |
Documentation changed from old to new. |
HTTP Status-Code 202: Accepted. |
int HTTP_BAD_GATEWAY |
Documentation changed from old to new. |
HTTP Status-Code 502: Bad Gateway. |
int HTTP_BAD_METHOD |
Documentation changed from old to new. |
HTTP Status-Code 405: Method Not Allowed. |
int HTTP_BAD_REQUEST |
Documentation changed from old to new. |
HTTP Status-Code 400: Bad Request. |
int HTTP_CLIENT_TIMEOUT |
Documentation changed from old to new. |
HTTP Status-Code 408: Request Time-Out. |
int HTTP_CONFLICT |
Documentation changed from old to new. |
HTTP Status-Code 409: Conflict. |
int HTTP_CREATED |
Documentation changed from old to new. |
HTTP Status-Code 201: Created. |
int HTTP_ENTITY_TOO_LARGE |
Documentation changed from old to new. |
HTTP Status-Code 413: Request Entity Too Large. |
int HTTP_FORBIDDEN |
Documentation changed from old to new. |
HTTP Status-Code 403: Forbidden. |
int HTTP_GATEWAY_TIMEOUT |
Documentation changed from old to new. |
HTTP Status-Code 504: Gateway Timeout. |
int HTTP_GONE |
Documentation changed from old to new. |
HTTP Status-Code 410: Gone. |
int HTTP_INTERNAL_ERROR |
Documentation changed from old to new. |
HTTP Status-Code 500: Internal Server Error. |
int HTTP_LENGTH_REQUIRED |
Documentation changed from old to new. |
HTTP Status-Code 411: Length Required. |
int HTTP_MOVED_PERM |
Documentation changed from old to new. |
HTTP Status-Code 301: Moved Permanently. |
int HTTP_MOVED_TEMP |
Documentation changed from old to new. |
HTTP Status-Code 302: Temporary Redirect. |
int HTTP_MULT_CHOICE |
Documentation changed from old to new. |
HTTP Status-Code 300: Multiple Choices. |
int HTTP_NOT_ACCEPTABLE |
Documentation changed from old to new. |
HTTP Status-Code 406: Not Acceptable. |
int HTTP_NOT_AUTHORITATIVE |
Documentation changed from old to new. |
HTTP Status-Code 203: Non-Authoritative Information. |
int HTTP_NOT_FOUND |
Documentation changed from old to new. |
HTTP Status-Code 404: Not Found. |
int HTTP_NOT_MODIFIED |
Documentation changed from old to new. |
HTTP Status-Code 304: Not Modified. |
int HTTP_NO_CONTENT |
Documentation changed from old to new. |
HTTP Status-Code 204: No Content. |
int HTTP_OK |
Documentation changed from old to new. |
HTTP Status-Code 200: OK. |
int HTTP_PARTIAL |
Documentation changed from old to new. |
HTTP Status-Code 206: Partial Content. |
int HTTP_PAYMENT_REQUIRED |
Documentation changed from old to new. |
HTTP Status-Code 402: Payment Required. |
int HTTP_PRECON_FAILED |
Documentation changed from old to new. |
HTTP Status-Code 412: Precondition Failed. |
int HTTP_PROXY_AUTH |
Documentation changed from old to new. |
HTTP Status-Code 407: Proxy Authentication Required. |
int HTTP_REQ_TOO_LONG |
Documentation changed from old to new. |
HTTP Status-Code 414: Request-URI Too Large. |
int HTTP_RESET |
Documentation changed from old to new. |
HTTP Status-Code 205: Reset Content. |
int HTTP_SEE_OTHER |
Documentation changed from old to new. |
HTTP Status-Code 303: See Other. |
int HTTP_SERVER_ERROR |
Documentation changed from old to new. Now deprecated. |
it is misplaced and shouldn't have existed. |
int HTTP_UNAUTHORIZED |
Documentation changed from old to new. |
HTTP Status-Code 401: Unauthorized. |
int HTTP_UNAVAILABLE |
Documentation changed from old to new. |
HTTP Status-Code 503: Service Unavailable. |
int HTTP_UNSUPPORTED_TYPE |
Documentation changed from old to new. |
HTTP Status-Code 415: Unsupported Media Type. |
int HTTP_USE_PROXY |
Documentation changed from old to new. |
HTTP Status-Code 305: Use Proxy. |
int HTTP_VERSION |
Documentation changed from old to new. |
HTTP Status-Code 505: HTTP Version Not Supported. |
String method |
Documentation changed from old to new. |
The HTTP method (GET POST PUT etc.). |
int responseCode |
Documentation changed from old to new. |
An int representing the three digit HTTP Status-Code. |
String responseMessage |
Documentation changed from old to new. |
The HTTP response message. |
|
|||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES |