Interface HttpEntryPoint.EntryPoints

Enclosing class:
HttpEntryPoint

public static interface HttpEntryPoint.EntryPoints
A contract used from generated code to invoke HTTP entry point 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 endpoint
      typeAnnotations - type annotations of the invoked endpoint
      methodInfo - method information of the endpoint method
      actualHandler - 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 endpoint
      typeAnnotations - type annotations of the invoked endpoint
      methodInfo - method information of the framework-owned operation
      actualHandler - handler that invokes the operation
      Returns:
      handler to invoke inside the active HTTP entry point