final class RouteAdapter extends Route

INTERNAL API

Annotations
@InternalApi()
Source
RouteAdapter.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouteAdapter
  2. Route
  3. HandlerProvider
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RouteAdapter(delegate: scaladsl.server.Route)

Value Members

  1. def asScala: scaladsl.server.Route

    Converts to the Scala DSL form of an Route.

    Converts to the Scala DSL form of an Route.

    Definition Classes
    Route
  2. val delegate: scaladsl.server.Route

    INTERNAL API

    INTERNAL API

    Definition Classes
    RouteAdapterRoute
  3. def flow(system: ActorSystem, materializer: Materializer): Flow[HttpRequest, HttpResponse, NotUsed]
    Definition Classes
    RouteAdapterRoute
  4. def flow(system: ClassicActorSystemProvider): Flow[HttpRequest, HttpResponse, NotUsed]
    Definition Classes
    Route
  5. def function(system: ClassicActorSystemProvider): Function[HttpRequest, CompletionStage[HttpResponse]]
    Definition Classes
    Route
  6. def handler(system: ClassicActorSystemProvider): Function[HttpRequest, CompletionStage[HttpResponse]]
    Definition Classes
    RouteAdapterRouteHandlerProvider
  7. def orElse(alternative: Route): Route
    Definition Classes
    RouteAdapterRoute
  8. def seal(rejectionHandler: RejectionHandler, exceptionHandler: ExceptionHandler): Route

    Seals a route by wrapping it with explicit exception handling and rejection conversion.

    Seals a route by wrapping it with explicit exception handling and rejection conversion.

    A sealed route has these properties:

    • The result of the route will always be a complete response, i.e. the result of the future is a Success(RouteResult.Complete(response)), never a failed future and never a rejected route. These will be already be handled using the given RejectionHandler and ExceptionHandler.
    • Consequently, no route alternatives will be tried that were combined with this route.
    Definition Classes
    RouteAdapterRoute
  9. def seal(): Route

    Seals a route by wrapping it with default exception handling and rejection conversion.

    Seals a route by wrapping it with default exception handling and rejection conversion.

    A sealed route has these properties:

    • The result of the route will always be a complete response, i.e. the result of the future is a Success(RouteResult.Complete(response)), never a failed future and never a rejected route. These will be already be handled using the default RejectionHandler and ExceptionHandler.
    • Consequently, no route alternatives will be tried that were combined with this route.
    Definition Classes
    RouteAdapterRoute
  10. def toString(): String
    Definition Classes
    RouteAdapter → AnyRef → Any