Interface IEndpoint
public interface IEndpoint
REST Endpoint
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescriptionbooleangrantAccess(@NotNull IJWTInformation pJWTInformation) Evaluate JWT@NotNull IEndpointResponsehandleRequest(@NotNull IRestRequest request, @NotNull Map<String, String> pParameters) @NotNull IEndpointCreate an instance of this handler, either a new one or a singletonbooleanHandler requires valid access key in in Authorization header of type Authorization: Bearer "xyz"booleanHandler requires valid JWT in Authorization headervoidUpdate metrics
-
Method Details
-
requestInstance
Create an instance of this handler, either a new one or a singleton- Returns:
-
handleRequest
@NotNull @NotNull IEndpointResponse handleRequest(@NotNull @NotNull IRestRequest request, @NotNull @NotNull Map<String, String> pParameters) throws InternalServerErrorException, BadRequestException, RuntimeException- Parameters:
request-pParameters-- Returns:
- Throws:
InternalServerErrorExceptionBadRequestExceptionRuntimeException
-
updateMetrics
void updateMetrics()Update metrics -
requireValidJWT
boolean requireValidJWT()Handler requires valid JWT in Authorization header- Returns:
-
requireValidAccessKey
boolean requireValidAccessKey()Handler requires valid access key in in Authorization header of type Authorization: Bearer "xyz"- Returns:
-
grantAccess
Evaluate JWT- Parameters:
pJWTInformation-- Returns:
-