Class PKIService
java.lang.Object
com.netscape.cms.servlet.base.PKIService
- Direct Known Subclasses:
SubsystemService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected HttpHeadersstatic org.slf4j.Loggerstatic List<MediaType> static final intprotected Requestprotected jakarta.servlet.ServletContextprotected jakarta.servlet.http.HttpServletRequestprotected UriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResponsecreateCreatedResponse(Object entity, URI link) ResponseResponseResponsecreateOKResponse(Object entity) getLocale(HttpHeaders headers) Get the values of the fields annotated with @Param.MediaTypestatic MediaTypegetResponseFormat(HttpHeaders headers) Marshall response object with custom mapping if available.static MediaTyperesolveFormat(List<MediaType> formats) Find a match from a list of candidate media types (which may be wildcards) against the default list of valid media types.static MediaTyperesolveFormat(List<MediaType> candidates, List<MediaType> validTypes) Find a match from a list of candidate media types (which may be wildcards) against a list of valid media types.static MediaTyperesolveFormat(MediaType format) Return a match for a candidate media type (which may be a wildcard) against the default list of valid media types.static MediaTyperesolveFormat(MediaType candidate, List<MediaType> validTypes) Return a match for a candidate media type (which may be a wildcard) against a list of valid media types.ResponsesendConditionalGetResponse(int ctime, Object entity, Request request) <T> Tunmarshall(Object request, Class<T> clazz) Unmarshall request object with custom mapping if available.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
DEFAULT_LONG_CACHE_LIFETIME
public static final int DEFAULT_LONG_CACHE_LIFETIME- See Also:
-
MESSAGE_FORMATS
-
MIN_FILTER_LENGTH
public static final int MIN_FILTER_LENGTH- See Also:
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
-
uriInfo
protected UriInfo uriInfo -
headers
protected HttpHeaders headers -
request
protected Request request -
servletRequest
protected jakarta.servlet.http.HttpServletRequest servletRequest -
servletContext
protected jakarta.servlet.ServletContext servletContext
-
-
Constructor Details
-
PKIService
public PKIService()
-
-
Method Details
-
resolveFormat
public static MediaType resolveFormat(MediaType format) Return a match for a candidate media type (which may be a wildcard) against the default list of valid media types.- Returns:
- the matching MediaType or null if no match
-
resolveFormat
Return a match for a candidate media type (which may be a wildcard) against a list of valid media types.- Returns:
- the matching MediaType or null if no match
-
resolveFormat
Find a match from a list of candidate media types (which may be wildcards) against the default list of valid media types. Candidates are checked in list order. Quality values ("q" parameter) are ignored.- Returns:
- the matching MediaType or null if no match
-
resolveFormat
Find a match from a list of candidate media types (which may be wildcards) against a list of valid media types. Candidates are checked in list order. Quality values ("q" parameter) are ignored.- Returns:
- the matching MediaType or null if no match
-
getResponseFormat
public static MediaType getResponseFormat(HttpHeaders headers) -
getResponseFormat
public MediaType getResponseFormat() -
createOKResponse
public Response createOKResponse() -
marshall
-
unmarshall
-
createOKResponse
-
createCreatedResponse
-
createNoContentResponse
public Response createNoContentResponse() -
sendConditionalGetResponse
-
getLocale
-
getParams
-
getCMSEngine
-