Interface HttpEntryPoint.EntryPoints
- Enclosing class:
HttpEntryPoint
public static interface HttpEntryPoint.EntryPoints
A contract used from generated code to invoke HTTP entry point interceptors.
-
Method Summary
Modifier and TypeMethodDescriptiondefault HandlerauthorizationHandler(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo, Handler actualHandler) Handler that triggers authorization-only interceptors for an operation discovered inside an active HTTP entry point.handler(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo, Handler actualHandler) Handler that triggers interceptors.
-
Method Details
-
handler
Handler handler(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo, Handler actualHandler) Handler that triggers interceptors.- Parameters:
descriptor- descriptor of the invoked endpoint (not generated code)typeQualifiers- qualifiers of the invoked endpointtypeAnnotations- type annotations of the invoked endpointmethodInfo- method information of the endpoint methodactualHandler- handler that invokes the endpoint method- Returns:
- handler to register with WebServer
-
authorizationHandler
default Handler authorizationHandler(ServiceDescriptor<?> descriptor, Set<Qualifier> typeQualifiers, List<Annotation> typeAnnotations, TypedElementInfo methodInfo, Handler actualHandler) Handler that triggers authorization-only interceptors for an operation discovered inside an active HTTP entry point.The default fails because invoking the complete entry point chain would repeat authentication and other interceptors.
- Parameters:
descriptor- descriptor of the invoked endpoint (not generated code)typeQualifiers- qualifiers of the invoked endpointtypeAnnotations- type annotations of the invoked endpointmethodInfo- method information of the framework-owned operationactualHandler- handler that invokes the operation- Returns:
- handler to invoke inside the active HTTP entry point
-