org.apache.pekko.http.javadsl.server.directives.RouteAdapter
See theRouteAdapter companion object
@InternalApi
final class RouteAdapter(val delegate: Route) extends Route
INTERNAL API
Attributes
- Companion
- object
- Source
- RouteAdapter.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
override def flow(system: ActorSystem, materializer: Materializer): Flow[HttpRequest, HttpResponse, NotUsed]
Attributes
- Definition Classes
- Source
- RouteAdapter.scala
override def handler(system: ClassicActorSystemProvider): Function[HttpRequest, CompletionStage[HttpResponse]]
Attributes
- Definition Classes
- Source
- RouteAdapter.scala
Attributes
- Definition Classes
- Source
- RouteAdapter.scala
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.
Attributes
- Definition Classes
- Source
- RouteAdapter.scala
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.
Attributes
- Definition Classes
- Source
- RouteAdapter.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- RouteAdapter.scala
Inherited methods
Converts to the Scala DSL form of an Route.
Attributes
- Inherited from:
- Route
- Source
- Route.scala
def function(system: ClassicActorSystemProvider): Function[HttpRequest, CompletionStage[HttpResponse]]
Attributes
- Inherited from:
- Route
- Source
- Route.scala
Concrete fields
INTERNAL API
In this article