Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RouteToEBServiceHandler

Handler that proxy the request to an event bus endpoint, waits for the reply and then writes the HTTP response.

The HTTP request is sent encapsulated into a ServiceRequest object through the event bus. The expected reply is a ServiceResponse

This handler requires a {@link ValidationHandler} that process request parameters, so they can be encapsulated by this handler inside the ServiceRequest

Hierarchy

  • RouteToEBServiceHandler

Implements

  • any

Index

Methods

extraPayloadMapper

  • When extraPayloadMapper is configured, this handler puts the evaluation result into ServiceRequest

    Parameters

    • extraPayloadMapper: (arg: RoutingContext) => {}
        • (arg: RoutingContext): {}
        • Parameters

          • arg: RoutingContext

          Returns {}

          • [key: string]: any

    Returns RouteToEBServiceHandler

handle

  • handle(arg0: RoutingContext): void
  • Parameters

    • arg0: RoutingContext

    Returns void

Static build

  • Build a new RouteToEBServiceHandler

    Parameters

    • eventBus: EventBus
    • address: string
    • actionName: string

    Returns RouteToEBServiceHandler

  • Build a new RouteToEBServiceHandler

    Parameters

    • eventBus: EventBus
    • address: string
    • actionName: string
    • deliveryOptions: DeliveryOptions

    Returns RouteToEBServiceHandler

Generated using TypeDoc