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 String
ACCEPT_DATETIME
The name of the HTTP request header used for Memento datetime negotiation.static String
ACCEPT_PATCH
The name of the HTTP response header used to indicate the acceptable formats for PATCH requests.static String
ACCEPT_POST
The name of the HTTP response header used to indicate the acceptable RDF formats in POST requests.static String
ACCEPT_RANGES
The name of the HTTP response header used to indicate the acceptable forms of range requests.static String
ACL
The ext parameter for ACL resources.static String
ACL_QUERY_PARAM
The query parameter for ACL resources.static String
APPLICATION_LINK_FORMAT
The default Memento TimeMap output format.static String
CONFIG_HTTP_BASE_URL
Configuration key defining the server's base URL.static String
CONFIG_HTTP_EXTENSION_GRAPHS
Configuration key defining the extension graph mapping.static String
CONFIG_HTTP_JSONLD_PROFILE
Configuration key defining the default JSON-LD profile.static String
CONFIG_HTTP_LDP_MODEL_MODIFICATIONS
Configuration key defining whether LDP interaction model modifications are supported.static String
CONFIG_HTTP_MEMENTO_HEADER_DATES
Configuration key defining whether to include dates in memento headers.static String
CONFIG_HTTP_PATCH_CREATE
Configuration key defining whether PATCH requests can create resources.static String
CONFIG_HTTP_PRECONDITION_REQUIRED
Configuration key defining whether to require precondition headers for PUT operations.static String
CONFIG_HTTP_PURGE_BINARY_ON_DELETE
Configuration key to purge binaries on delete.static String
CONFIG_HTTP_PUT_UNCONTAINED
Configuration key defining whether PUT-on-create generates contained or uncontained resources.static String
CONFIG_HTTP_VERSIONING
Configuration key defining whether versions are created in the HTTP layer.static String
CONFIG_HTTP_WEAK_ETAG
Configuration key defining whether to use weak ETags for RDF responses.static String
DATETIME
The Memento link parameter to indicate the datetime of a Memento.static Set<IRI>
DEFAULT_REPRESENTATION
The implied or default set of IRIs used with a Prefer header.static String
DESCRIPTION
The Trellis ext parameter value used for accessing the description of an LDP-NR.static String
EXT
The Trellis query parameter for extended features of a given resource.static String
FROM
The Memento link parameter indicating the beginning range of a TimeMap.static String
MEMENTO
The Memento link relation for mementos.static String
MEMENTO_DATETIME
The name of the HTTP response header used to indicate the date of a Memento resource.static String
ORIGINAL
The Memento link relation for original resources.static int
PRECONDITION_REQUIRED
The name of the HTTP response code for a Precondition Required error.static String
PREFER
The name of the HTTP request header used to influence what information is included in responses.static String
PREFERENCE_APPLIED
The name of the HTTP response header used to indicate how the Prefer header was applied.static String
RANGE
The name of the HTTP request header used to make range requests.static String
SLUG
The name of the HTTP request header used to indicate the desired name for a new resource.static String
TIMEGATE
The Memento link relation for TimeGate resources.static String
TIMEMAP
The Memento link relation for TimeMap resources.static String
UNTIL
The 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
-
-