Package org.trellisldp.common
Class HttpConstants
- java.lang.Object
-
- org.trellisldp.common.HttpConstants
-
public final class HttpConstants extends Object
A collection of constant values used by the Trellis HTTP layer.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCEPT_DATETIMEThe name of the HTTP request header used for Memento datetime negotiation.static StringACCEPT_PATCHThe name of the HTTP response header used to indicate the acceptable formats for PATCH requests.static StringACCEPT_POSTThe name of the HTTP response header used to indicate the acceptable RDF formats in POST requests.static StringACCEPT_RANGESThe name of the HTTP response header used to indicate the acceptable forms of range requests.static StringACLThe ext parameter for ACL resources.static StringACL_QUERY_PARAMThe query parameter for ACL resources.static StringAPPLICATION_LINK_FORMATThe default Memento TimeMap output format.static StringCONFIG_HTTP_BASE_URLConfiguration key defining the server's base URL.static StringCONFIG_HTTP_EXTENSION_GRAPHSConfiguration key defining the extension graph mapping.static StringCONFIG_HTTP_JSONLD_PROFILEConfiguration key defining the default JSON-LD profile.static StringCONFIG_HTTP_LDP_MODEL_MODIFICATIONSConfiguration key defining whether LDP interaction model modifications are supported.static StringCONFIG_HTTP_MEMENTO_HEADER_DATESConfiguration key defining whether to include dates in memento headers.static StringCONFIG_HTTP_PATCH_CREATEConfiguration key defining whether PATCH requests can create resources.static StringCONFIG_HTTP_PRECONDITION_REQUIREDConfiguration key defining whether to require precondition headers for PUT operations.static StringCONFIG_HTTP_PURGE_BINARY_ON_DELETEConfiguration key to purge binaries on delete.static StringCONFIG_HTTP_PUT_UNCONTAINEDConfiguration key defining whether PUT-on-create generates contained or uncontained resources.static StringCONFIG_HTTP_VERSIONINGConfiguration key defining whether versions are created in the HTTP layer.static StringCONFIG_HTTP_WEAK_ETAGConfiguration key defining whether to use weak ETags for RDF responses.static StringDATETIMEThe Memento link parameter to indicate the datetime of a Memento.static Set<IRI>DEFAULT_REPRESENTATIONThe implied or default set of IRIs used with a Prefer header.static StringDESCRIPTIONThe Trellis ext parameter value used for accessing the description of an LDP-NR.static StringEXTThe Trellis query parameter for extended features of a given resource.static StringFROMThe Memento link parameter indicating the beginning range of a TimeMap.static StringMEMENTOThe Memento link relation for mementos.static StringMEMENTO_DATETIMEThe name of the HTTP response header used to indicate the date of a Memento resource.static StringORIGINALThe Memento link relation for original resources.static intPRECONDITION_REQUIREDThe name of the HTTP response code for a Precondition Required error.static StringPREFERThe name of the HTTP request header used to influence what information is included in responses.static StringPREFERENCE_APPLIEDThe name of the HTTP response header used to indicate how the Prefer header was applied.static StringRANGEThe name of the HTTP request header used to make range requests.static StringSLUGThe name of the HTTP request header used to indicate the desired name for a new resource.static StringTIMEGATEThe Memento link relation for TimeGate resources.static StringTIMEMAPThe Memento link relation for TimeMap resources.static StringUNTILThe Memento link parameter indicating the ending range of a TimeMap.
-
-
-
Field Detail
-
ACCEPT_DATETIME
public static final String ACCEPT_DATETIME
The name of the HTTP request header used for Memento datetime negotiation.- See Also:
- Constant Field Values
-
ACCEPT_PATCH
public static final String ACCEPT_PATCH
The name of the HTTP response header used to indicate the acceptable formats for PATCH requests.- See Also:
- Constant Field Values
-
ACCEPT_POST
public static final String ACCEPT_POST
The name of the HTTP response header used to indicate the acceptable RDF formats in POST requests.- See Also:
- Constant Field Values
-
ACCEPT_RANGES
public static final String ACCEPT_RANGES
The name of the HTTP response header used to indicate the acceptable forms of range requests.- See Also:
- Constant Field Values
-
ACL
public static final String ACL
The ext parameter for ACL resources.- See Also:
- Constant Field Values
-
ACL_QUERY_PARAM
public static final String ACL_QUERY_PARAM
The query parameter for ACL resources.- See Also:
- Constant Field Values
-
APPLICATION_LINK_FORMAT
public static final String APPLICATION_LINK_FORMAT
The default Memento TimeMap output format.- See Also:
- Constant Field Values
-
CONFIG_HTTP_LDP_MODEL_MODIFICATIONS
public static final String CONFIG_HTTP_LDP_MODEL_MODIFICATIONS
Configuration key defining whether LDP interaction model modifications are supported.- See Also:
- Constant Field Values
-
CONFIG_HTTP_BASE_URL
public static final String CONFIG_HTTP_BASE_URL
Configuration key defining the server's base URL.- See Also:
- Constant Field Values
-
CONFIG_HTTP_EXTENSION_GRAPHS
public static final String CONFIG_HTTP_EXTENSION_GRAPHS
Configuration key defining the extension graph mapping.- See Also:
- Constant Field Values
-
CONFIG_HTTP_MEMENTO_HEADER_DATES
public static final String CONFIG_HTTP_MEMENTO_HEADER_DATES
Configuration key defining whether to include dates in memento headers.- See Also:
- Constant Field Values
-
CONFIG_HTTP_WEAK_ETAG
public static final String CONFIG_HTTP_WEAK_ETAG
Configuration key defining whether to use weak ETags for RDF responses.- See Also:
- Constant Field Values
-
CONFIG_HTTP_JSONLD_PROFILE
public static final String CONFIG_HTTP_JSONLD_PROFILE
Configuration key defining the default JSON-LD profile.- See Also:
- Constant Field Values
-
CONFIG_HTTP_PRECONDITION_REQUIRED
public static final String CONFIG_HTTP_PRECONDITION_REQUIRED
Configuration key defining whether to require precondition headers for PUT operations.- See Also:
- Constant Field Values
-
CONFIG_HTTP_PATCH_CREATE
public static final String CONFIG_HTTP_PATCH_CREATE
Configuration key defining whether PATCH requests can create resources.- See Also:
- Constant Field Values
-
CONFIG_HTTP_PUT_UNCONTAINED
public static final String CONFIG_HTTP_PUT_UNCONTAINED
Configuration key defining whether PUT-on-create generates contained or uncontained resources.- See Also:
- Constant Field Values
-
CONFIG_HTTP_PURGE_BINARY_ON_DELETE
public static final String CONFIG_HTTP_PURGE_BINARY_ON_DELETE
Configuration key to purge binaries on delete.- See Also:
- Constant Field Values
-
CONFIG_HTTP_VERSIONING
public static final String CONFIG_HTTP_VERSIONING
Configuration key defining whether versions are created in the HTTP layer.- See Also:
- Constant Field Values
-
EXT
public static final String EXT
The Trellis query parameter for extended features of a given resource.- See Also:
- Constant Field Values
-
DATETIME
public static final String DATETIME
The Memento link parameter to indicate the datetime of a Memento.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final String DESCRIPTION
The Trellis ext parameter value used for accessing the description of an LDP-NR.- See Also:
- Constant Field Values
-
FROM
public static final String FROM
The Memento link parameter indicating the beginning range of a TimeMap.- See Also:
- Constant Field Values
-
MEMENTO
public static final String MEMENTO
The Memento link relation for mementos.- See Also:
- Constant Field Values
-
MEMENTO_DATETIME
public static final String MEMENTO_DATETIME
The name of the HTTP response header used to indicate the date of a Memento resource.- See Also:
- Constant Field Values
-
ORIGINAL
public static final String ORIGINAL
The Memento link relation for original resources.- See Also:
- Constant Field Values
-
PRECONDITION_REQUIRED
public static final int PRECONDITION_REQUIRED
The name of the HTTP response code for a Precondition Required error.- See Also:
- Constant Field Values
-
PREFER
public static final String PREFER
The name of the HTTP request header used to influence what information is included in responses.- See Also:
- Constant Field Values
-
PREFERENCE_APPLIED
public static final String PREFERENCE_APPLIED
The name of the HTTP response header used to indicate how the Prefer header was applied.- See Also:
- Constant Field Values
-
RANGE
public static final String RANGE
The name of the HTTP request header used to make range requests.- See Also:
- Constant Field Values
-
SLUG
public static final String SLUG
The name of the HTTP request header used to indicate the desired name for a new resource.- See Also:
- Constant Field Values
-
TIMEGATE
public static final String TIMEGATE
The Memento link relation for TimeGate resources.- See Also:
- Constant Field Values
-
TIMEMAP
public static final String TIMEMAP
The Memento link relation for TimeMap resources.- See Also:
- Constant Field Values
-
UNTIL
public static final String UNTIL
The Memento link parameter indicating the ending range of a TimeMap.- See Also:
- Constant Field Values
-
-