Class HTTPHeaders
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPHeaders
-
public final class HTTPHeaders extends Object
Canonical HTTP header names shared by Resource Registry clients and server.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTENT_LOCATIONStandard HTTP Content-Location response header name (RFC 9110 Section 8.7).static StringLINKStandard HTTP Link response header name (RFC 8288).static StringPREFERStandard HTTP Prefer request header name (RFC 7240).static StringPREFERENCE_APPLIEDStandard HTTP Preference-Applied response header name (RFC 7240).static StringX_HTTP_METHOD_OVERRIDEHTTP method override request header name.static StringX_RESOLVED_CONTEXT_PATHCustom HTTP header name communicating the current resolved context path when token resolution falls back to a previous path (emitted alongsideX-Result-Scope: previous-path).static StringX_RESULT_SCOPECustom HTTP header name communicating the operational scope of a successful response (e.g.static StringX_WARNINGCustom HTTP Warning header name for query parameter and content validation.
-
-
-
Field Detail
-
LINK
public static final String LINK
Standard HTTP Link response header name (RFC 8288).- See Also:
- Constant Field Values
-
CONTENT_LOCATION
public static final String CONTENT_LOCATION
Standard HTTP Content-Location response header name (RFC 9110 Section 8.7). Carries the canonical URI of the returned payload on a successful creation/update response, or the URI that generated a failure on an error response.- See Also:
- Constant Field Values
-
PREFER
public static final String PREFER
Standard HTTP Prefer request header name (RFC 7240).- See Also:
- Constant Field Values
-
PREFERENCE_APPLIED
public static final String PREFERENCE_APPLIED
Standard HTTP Preference-Applied response header name (RFC 7240).- See Also:
- Constant Field Values
-
X_WARNING
public static final String X_WARNING
Custom HTTP Warning header name for query parameter and content validation.- See Also:
- Constant Field Values
-
X_RESULT_SCOPE
public static final String X_RESULT_SCOPE
Custom HTTP header name communicating the operational scope of a successful response (e.g.hierarchical,state-filtered,previous-path), emitted as a single comma-separated value. Seeappendix/09-result-scope-conventions.mdin the reference documentation for the full normative contract.- See Also:
- Constant Field Values
-
X_RESOLVED_CONTEXT_PATH
public static final String X_RESOLVED_CONTEXT_PATH
Custom HTTP header name communicating the current resolved context path when token resolution falls back to a previous path (emitted alongsideX-Result-Scope: previous-path).- See Also:
- Constant Field Values
-
X_HTTP_METHOD_OVERRIDE
public static final String X_HTTP_METHOD_OVERRIDE
HTTP method override request header name. APOSTrequest carryingX-HTTP-Method-Override: QUERYis treated as a nativeQUERY(RFC 10008) request, for network intermediaries or client libraries that cannot send theQUERYmethod directly.- See Also:
- Constant Field Values
-
-