Class HttpConstants


  • public final class HttpConstants
    extends Object
    A collection of constant values used by the Trellis HTTP layer.
    • 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
      • 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_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
      • 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
      • UNTIL

        public static final String UNTIL
        The Memento link parameter indicating the ending range of a TimeMap.
        See Also:
        Constant Field Values
      • DEFAULT_REPRESENTATION

        public static final Set<IRI> DEFAULT_REPRESENTATION
        The implied or default set of IRIs used with a Prefer header.