com.teamdev.jxbrowser.events
Class NavigationStatusCode

java.lang.Object
  extended by com.teamdev.jxbrowser.events.NavigationStatusCode

public class NavigationStatusCode
extends java.lang.Object

Represents a result HTTP navigation status code.


Field Summary
static NavigationStatusCode ACCEPTED
          The request has been accepted for processing, but the processing has not been completed.
static NavigationStatusCode BAD_GATEWAY
           
static NavigationStatusCode BAD_REQUEST
          The request contains bad syntax or cannot be fulfilled.
static NavigationStatusCode CONFLICT
           
static NavigationStatusCode CONTINUE
          This means that the server has received the request headers, and that the client should proceed to send the request body (in the case of a request for which a body needs to be sent; for example, a POST request).
static NavigationStatusCode CREATED
          The request has been fulfilled and resulted in a new resource being created
static NavigationStatusCode EXPECTATION_FAILED
           
static NavigationStatusCode FAILED_DEPENDENCY
           
static NavigationStatusCode FORBIDDEN
          The request was a legal request, but the server is refusing to respond to it.
static NavigationStatusCode FOUND
          This is the most popular redirect code, but also an example of industrial practice contradicting the standard.
static NavigationStatusCode GATEWAY_TIMEOUT
           
static NavigationStatusCode GONE
          Indicates that the resource requested is no longer available and will not be available again.
static NavigationStatusCode HTTP_VERSION_NOT_SUPPORTED
           
static NavigationStatusCode IM_USED
           
static NavigationStatusCode INSUFFICIENT_STORAGE
           
static NavigationStatusCode INTERNAL_SERVER_ERROR
           
static NavigationStatusCode LENGTH_REQUIRED
           
static NavigationStatusCode LOCKED
           
static NavigationStatusCode METHOD_NOT_ALLOWED
          A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource.
static NavigationStatusCode MOVED_PERMANENTLY
          This and all future requests should be directed to the given URI
static NavigationStatusCode MULTI_STATUS
          The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.
static NavigationStatusCode MULTIPLE_CHOICES
          Indicates multiple options for the resource that the client may follow.
static NavigationStatusCode NO_CONTENT
          The server has fulfilled the request but does not need to return an entity-body, and might want to return updated meta information.
static NavigationStatusCode NON_AUTHORITATIVE_INFORMATION
          The returned meta information in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy.
static NavigationStatusCode NOT_ACCEPTABLE
           
static NavigationStatusCode NOT_EXTENDED
           
static NavigationStatusCode NOT_FOUND
          The requested resource could not be found but may be available again in the future.
static NavigationStatusCode NOT_IMPLEMENTED
           
static NavigationStatusCode NOT_MODIFIED
          Indicates the resource has not been modified since last requested.
static NavigationStatusCode OK
          Standard response for successful HTTP requests.
static NavigationStatusCode PARTIAL_CONTENT
          The server has fulfilled the partial GET request for the resource.
static NavigationStatusCode PAYMENT_REQUIRED
          Deprecated. 
static NavigationStatusCode PRECONDITION_FAILED
           
static NavigationStatusCode PROCESSING
          Processing current request
static NavigationStatusCode PROXY_AUTHENTICATION_REQUIRED
           
static NavigationStatusCode REQUEST_ENTITY_TOO_LARGE
           
static NavigationStatusCode REQUEST_TIMEOUT
          Client failed to continue the request
static NavigationStatusCode REQUEST_URI_TOO_LONG
           
static NavigationStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
          The client has asked for a portion of the file, but the server cannot supply that portion (for example, if the client asked for a part of the file that lies beyond the end of the file)
static NavigationStatusCode RESET_CONTENT
          The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.
static NavigationStatusCode SEE_OTHER
          The response to the request can be found under another URI using a GET method.
static NavigationStatusCode SERVICE_UNAVAILABLE
           
static NavigationStatusCode SWITCHING_PROTOCOLS
          Need to change the protocol
static NavigationStatusCode TEMPORARY_REDIRECT
          In this occasion, the request should be repeated with another URI, but future requests can still use the original URI.
static NavigationStatusCode UNAUTHORIZED
          Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided.
static NavigationStatusCode UNKNOWN
          Unknown navigation status code.
static NavigationStatusCode UNPROCESSABLE_ENTITY
           
static NavigationStatusCode UNSUPPORTED_MEDIA_TYPE
           
static NavigationStatusCode UPGRADE_REQUIRED
           
static NavigationStatusCode USE_PROXY
          Many HTTP clients (such as Mozilla and Internet Explorer) don't correctly handle responses with this status code, primarily for security reasons.
static NavigationStatusCode VARIANT_ALSO_NEGOTIATES
           
 
Constructor Summary
NavigationStatusCode(long value, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
          Returns the description of navigation status code.
 long getValue()
          Returns the status code value associated with the navigation status code.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final NavigationStatusCode UNKNOWN
Unknown navigation status code. This means that JxBrowser can not verify navigation status code.


CONTINUE

public static final NavigationStatusCode CONTINUE
This means that the server has received the request headers, and that the client should proceed to send the request body (in the case of a request for which a body needs to be sent; for example, a POST request). If the request body is large, sending it to a server when a request has already been rejected based upon inappropriate headers is inefficient. To have a server check if the request could be accepted based on the request's headers alone, a client must send Expect: 100-continue as a header in its initial request (see RFC 2616 �14.20: Expect header) and check if a 100 Continue status code is received in response before continuing (or receive 417 Expectation Failed and not continue)


SWITCHING_PROTOCOLS

public static final NavigationStatusCode SWITCHING_PROTOCOLS
Need to change the protocol


PROCESSING

public static final NavigationStatusCode PROCESSING
Processing current request


OK

public static final NavigationStatusCode OK
Standard response for successful HTTP requests.


CREATED

public static final NavigationStatusCode CREATED
The request has been fulfilled and resulted in a new resource being created


ACCEPTED

public static final NavigationStatusCode ACCEPTED
The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place


NON_AUTHORITATIVE_INFORMATION

public static final NavigationStatusCode NON_AUTHORITATIVE_INFORMATION
The returned meta information in the entity-header is not the definitive set as available from the origin server, but is gathered from a local or a third-party copy. The set presented MAY be a subset or superset of the original version. For example, including local annotation information about the resource might result in a superset of the meta information known by the origin server. Use of this response code is not required and is only appropriate when the response would otherwise be 200 (OK)


NO_CONTENT

public static final NavigationStatusCode NO_CONTENT
The server has fulfilled the request but does not need to return an entity-body, and might want to return updated meta information. The response MAY include new or updated meta information in the form of entity-headers, which if present SHOULD be associated with the requested variant.


RESET_CONTENT

public static final NavigationStatusCode RESET_CONTENT
The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent. This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response MUST NOT include an entity.


PARTIAL_CONTENT

public static final NavigationStatusCode PARTIAL_CONTENT
The server has fulfilled the partial GET request for the resource. The request MUST have included a Range header field indicating the desired range, and MAY have included an If-Range header field to make the request conditional.


MULTI_STATUS

public static final NavigationStatusCode MULTI_STATUS
The message body that follows is an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.


IM_USED

public static final NavigationStatusCode IM_USED

MULTIPLE_CHOICES

public static final NavigationStatusCode MULTIPLE_CHOICES
Indicates multiple options for the resource that the client may follow. It, for instance, could be used to present different format options for video, list files with different extensions, or word sense disambiguation.


MOVED_PERMANENTLY

public static final NavigationStatusCode MOVED_PERMANENTLY
This and all future requests should be directed to the given URI


FOUND

public static final NavigationStatusCode FOUND
This is the most popular redirect code, but also an example of industrial practice contradicting the standard. HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented it as a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307 to disambiguate between the two behaviours. However, the majority of Web applications and frameworks still use the 302 status code as if it were the 303.


SEE_OTHER

public static final NavigationStatusCode SEE_OTHER
The response to the request can be found under another URI using a GET method.


NOT_MODIFIED

public static final NavigationStatusCode NOT_MODIFIED
Indicates the resource has not been modified since last requested. Typically, the HTTP client provides a header like the If-Modified-Since header to provide a time against which to compare. Utilizing this saves bandwidth and reprocessing on both the server and client.


USE_PROXY

public static final NavigationStatusCode USE_PROXY
Many HTTP clients (such as Mozilla and Internet Explorer) don't correctly handle responses with this status code, primarily for security reasons.


TEMPORARY_REDIRECT

public static final NavigationStatusCode TEMPORARY_REDIRECT
In this occasion, the request should be repeated with another URI, but future requests can still use the original URI. In contrast to 303, the request method should not be changed when reissuing the original request. For instance, a POST request must be repeated using another POST request.


BAD_REQUEST

public static final NavigationStatusCode BAD_REQUEST
The request contains bad syntax or cannot be fulfilled.


UNAUTHORIZED

public static final NavigationStatusCode UNAUTHORIZED
Similar to 403 Forbidden, but specifically for use when authentication is possible but has failed or not yet been provided. See Basic access authentication and Digest access authentication.


PAYMENT_REQUIRED

@Deprecated
public static final NavigationStatusCode PAYMENT_REQUIRED
Deprecated. 
The original intention was that this code might be used as part of some form of digital cash or micropayment scheme, but that has not happened, and this code has never been used.


FORBIDDEN

public static final NavigationStatusCode FORBIDDEN
The request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference.


NOT_FOUND

public static final NavigationStatusCode NOT_FOUND
The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.


METHOD_NOT_ALLOWED

public static final NavigationStatusCode METHOD_NOT_ALLOWED
A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST, or using PUT on a read-only resource.


NOT_ACCEPTABLE

public static final NavigationStatusCode NOT_ACCEPTABLE

PROXY_AUTHENTICATION_REQUIRED

public static final NavigationStatusCode PROXY_AUTHENTICATION_REQUIRED

REQUEST_TIMEOUT

public static final NavigationStatusCode REQUEST_TIMEOUT
Client failed to continue the request


CONFLICT

public static final NavigationStatusCode CONFLICT

GONE

public static final NavigationStatusCode GONE
Indicates that the resource requested is no longer available and will not be available again. This should be used when a resource has been intentionally removed; however, in practice, a 404 Not Found is often issued instead. Upon receiving a 410 status code, the client should not request the resource again in the future. Clients such as search engines should remove the resource from their indexes to prevent repeated requests.


LENGTH_REQUIRED

public static final NavigationStatusCode LENGTH_REQUIRED

PRECONDITION_FAILED

public static final NavigationStatusCode PRECONDITION_FAILED

REQUEST_ENTITY_TOO_LARGE

public static final NavigationStatusCode REQUEST_ENTITY_TOO_LARGE

REQUEST_URI_TOO_LONG

public static final NavigationStatusCode REQUEST_URI_TOO_LONG

UNSUPPORTED_MEDIA_TYPE

public static final NavigationStatusCode UNSUPPORTED_MEDIA_TYPE

REQUESTED_RANGE_NOT_SATISFIABLE

public static final NavigationStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
The client has asked for a portion of the file, but the server cannot supply that portion (for example, if the client asked for a part of the file that lies beyond the end of the file)


EXPECTATION_FAILED

public static final NavigationStatusCode EXPECTATION_FAILED

UNPROCESSABLE_ENTITY

public static final NavigationStatusCode UNPROCESSABLE_ENTITY

LOCKED

public static final NavigationStatusCode LOCKED

FAILED_DEPENDENCY

public static final NavigationStatusCode FAILED_DEPENDENCY

UPGRADE_REQUIRED

public static final NavigationStatusCode UPGRADE_REQUIRED

INTERNAL_SERVER_ERROR

public static final NavigationStatusCode INTERNAL_SERVER_ERROR

NOT_IMPLEMENTED

public static final NavigationStatusCode NOT_IMPLEMENTED

BAD_GATEWAY

public static final NavigationStatusCode BAD_GATEWAY

SERVICE_UNAVAILABLE

public static final NavigationStatusCode SERVICE_UNAVAILABLE

GATEWAY_TIMEOUT

public static final NavigationStatusCode GATEWAY_TIMEOUT

HTTP_VERSION_NOT_SUPPORTED

public static final NavigationStatusCode HTTP_VERSION_NOT_SUPPORTED

VARIANT_ALSO_NEGOTIATES

public static final NavigationStatusCode VARIANT_ALSO_NEGOTIATES

INSUFFICIENT_STORAGE

public static final NavigationStatusCode INSUFFICIENT_STORAGE

NOT_EXTENDED

public static final NavigationStatusCode NOT_EXTENDED
Constructor Detail

NavigationStatusCode

public NavigationStatusCode(long value,
                            java.lang.String description)
Method Detail

getValue

public long getValue()
Returns the status code value associated with the navigation status code.

Returns:
the navigation status code value.

getDescription

public java.lang.String getDescription()
Returns the description of navigation status code.

Returns:
the description of navigation status code.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object