Package org.nuxeo.ecm.webengine.servlet
Class WebConst
java.lang.Object
org.nuxeo.ecm.webengine.servlet.WebConst
HTTP constants.
- Author:
- Thierry Delprat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Part of HTTP content type header.static final int
Status code (202) indicating that a request was accepted for processing, but was not completed.static final int
Status code (502) indicating that the HTTP server received an invalid response from a server it consulted when acting as a proxy or gateway.static final int
Status code (400) indicating the request sent by the client was syntactically incorrect.static final int
Status code (409) indicating that the request could not be completed due to a conflict with the current state of the resource.static final int
Status code (100) indicating the client may continue with its request.static final int
Status code (201) indicating the request succeeded and created a new resource on the server.static final int
Status code (403) indicating the server understood the request but refused to fulfill it.static final int
Status code (419) indicating that the resource does not have sufficient space to record the state of the resource after the execution of this method.static final int
Status code (500) indicating an error inside the HTTP service which prevented it from fulfilling the request.static final int
Status code (423) indicating the destination resource of a method is locked, and either the request did not contain a valid Lock-Info header, or the Lock-Info header identifies a lock held by another principal.static final int
Status code (420) indicating the method was not executed on a particular resource within its scope because some part of the method's execution failed causing the entire method to be aborted.static final int
Status code (405) indicating the method specified is not allowed for the resource.static final int
Status code (301) indicating that the resource has permanently moved to a new location, and that future references should use a new URI with their requests.static final int
Status code (302) indicating that the resource has temporarily moved to another location, but that future references should still use the original URI to access the resource.static final int
Status code (207) indicating that the response requires providing status for multiple independent operations.static final int
Status code (204) indicating that the request succeeded but that there was no new information to return.static final int
Status code (404) indicating that the requested resource is not available.static final int
Status code (501) indicating the HTTP service does not support the functionality needed to fulfill the request.static final int
Status code (304) indicating that a conditional GET operation found that the resource was available and not modified.static final int
Status code (200) indicating the request succeeded normally.static final int
Status code (412) indicating the precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.static final int
Status code (413) indicating the server is refusing to process a request because the request entity is larger than the server is willing or able to process.static final int
Status code (503) indicating that the HTTP service is temporarily overloaded, and unable to handle the request.static final int
Status code (401) indicating that the request requires HTTP authentication.static final int
Status code (418) indicating the entity body submitted with the PATCH method was not understood by the resource.static final int
Status code (415) indicating the server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.static final String
Deprecated.static final String
static final String
Deprecated.since 2023.14, useHttpHeaders.X_FORWARDED_HOST
instead -
Method Summary
-
Field Details
-
MULTIPART
Part of HTTP content type header.- See Also:
-
ACTION_SEPARATOR
- See Also:
-
MODE_KEY
- See Also:
-
ENGINE_KEY
- See Also:
-
VIEW_MODE
- See Also:
-
EDIT_MODE
- See Also:
-
CREATE_MODE
- See Also:
-
METHOD_HEAD
- See Also:
-
METHOD_COPY
- See Also:
-
METHOD_MOVE
- See Also:
-
METHOD_LOCK
- See Also:
-
METHOD_UNLOCK
- See Also:
-
METHOD_PUT
- See Also:
-
METHOD_POST
- See Also:
-
METHOD_GET
- See Also:
-
METHOD_DELETE
- See Also:
-
METHOD_OPTIONS
- See Also:
-
SC_OK
public static final int SC_OKStatus code (200) indicating the request succeeded normally.- See Also:
-
SC_CREATED
public static final int SC_CREATEDStatus code (201) indicating the request succeeded and created a new resource on the server.- See Also:
-
SC_ACCEPTED
public static final int SC_ACCEPTEDStatus code (202) indicating that a request was accepted for processing, but was not completed.- See Also:
-
SC_NO_CONTENT
public static final int SC_NO_CONTENTStatus code (204) indicating that the request succeeded but that there was no new information to return.- See Also:
-
SC_MOVED_PERMANENTLY
public static final int SC_MOVED_PERMANENTLYStatus code (301) indicating that the resource has permanently moved to a new location, and that future references should use a new URI with their requests.- See Also:
-
SC_MOVED_TEMPORARILY
public static final int SC_MOVED_TEMPORARILYStatus code (302) indicating that the resource has temporarily moved to another location, but that future references should still use the original URI to access the resource.- See Also:
-
SC_NOT_MODIFIED
public static final int SC_NOT_MODIFIEDStatus code (304) indicating that a conditional GET operation found that the resource was available and not modified.- See Also:
-
SC_BAD_REQUEST
public static final int SC_BAD_REQUESTStatus code (400) indicating the request sent by the client was syntactically incorrect.- See Also:
-
SC_UNAUTHORIZED
public static final int SC_UNAUTHORIZEDStatus code (401) indicating that the request requires HTTP authentication.- See Also:
-
SC_FORBIDDEN
public static final int SC_FORBIDDENStatus code (403) indicating the server understood the request but refused to fulfill it.- See Also:
-
SC_NOT_FOUND
public static final int SC_NOT_FOUNDStatus code (404) indicating that the requested resource is not available.- See Also:
-
SC_INTERNAL_SERVER_ERROR
public static final int SC_INTERNAL_SERVER_ERRORStatus code (500) indicating an error inside the HTTP service which prevented it from fulfilling the request.- See Also:
-
SC_NOT_IMPLEMENTED
public static final int SC_NOT_IMPLEMENTEDStatus code (501) indicating the HTTP service does not support the functionality needed to fulfill the request.- See Also:
-
SC_BAD_GATEWAY
public static final int SC_BAD_GATEWAYStatus code (502) indicating that the HTTP server received an invalid response from a server it consulted when acting as a proxy or gateway.- See Also:
-
SC_SERVICE_UNAVAILABLE
public static final int SC_SERVICE_UNAVAILABLEStatus code (503) indicating that the HTTP service is temporarily overloaded, and unable to handle the request.- See Also:
-
SC_CONTINUE
public static final int SC_CONTINUEStatus code (100) indicating the client may continue with its request. This interim response is used to inform the client that the initial part of the request has been received and has not yet been rejected by the server.- See Also:
-
SC_METHOD_NOT_ALLOWED
public static final int SC_METHOD_NOT_ALLOWEDStatus code (405) indicating the method specified is not allowed for the resource.- See Also:
-
SC_CONFLICT
public static final int SC_CONFLICTStatus code (409) indicating that the request could not be completed due to a conflict with the current state of the resource.- See Also:
-
SC_PRECONDITION_FAILED
public static final int SC_PRECONDITION_FAILEDStatus code (412) indicating the precondition given in one or more of the request-header fields evaluated to false when it was tested on the server.- See Also:
-
SC_REQUEST_TOO_LONG
public static final int SC_REQUEST_TOO_LONGStatus code (413) indicating the server is refusing to process a request because the request entity is larger than the server is willing or able to process.- See Also:
-
SC_UNSUPPORTED_MEDIA_TYPE
public static final int SC_UNSUPPORTED_MEDIA_TYPEStatus code (415) indicating the server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.- See Also:
-
SC_MULTI_STATUS
public static final int SC_MULTI_STATUSStatus code (207) indicating that the response requires providing status for multiple independent operations.- See Also:
-
SC_UNPROCESSABLE_ENTITY
public static final int SC_UNPROCESSABLE_ENTITYStatus code (418) indicating the entity body submitted with the PATCH method was not understood by the resource.- See Also:
-
SC_INSUFFICIENT_SPACE_ON_RESOURCE
public static final int SC_INSUFFICIENT_SPACE_ON_RESOURCEStatus code (419) indicating that the resource does not have sufficient space to record the state of the resource after the execution of this method.- See Also:
-
SC_METHOD_FAILURE
public static final int SC_METHOD_FAILUREStatus code (420) indicating the method was not executed on a particular resource within its scope because some part of the method's execution failed causing the entire method to be aborted.- See Also:
-
SC_LOCKED
public static final int SC_LOCKEDStatus code (423) indicating the destination resource of a method is locked, and either the request did not contain a valid Lock-Info header, or the Lock-Info header identifies a lock held by another principal.- See Also:
-
X_FORWARDED_HOST
Deprecated.since 2023.14, useHttpHeaders.X_FORWARDED_HOST
insteadVirtualHosting header provided by reverse-proxies- See Also:
-
VH_HEADER
Deprecated.since 2023.14, useHttpHeaders.NUXEO_VIRTUAL_HOST
insteadVirtualHosting header specific to Nuxeo 5 EP- See Also:
-
HttpHeaders.NUXEO_VIRTUAL_HOST
instead