RouteAdapter

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
trait Route
class Object
trait Matchable
class Any

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 orElse(alternative: Route): Route

Attributes

Definition Classes
Source
RouteAdapter.scala
override 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.

Attributes

Definition Classes
Source
RouteAdapter.scala
override 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.

Attributes

Definition Classes
Source
RouteAdapter.scala
override def toString: String

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

def asScala: Route

Converts to the Scala DSL form of an Route.

Converts to the Scala DSL form of an Route.

Attributes

Inherited from:
Route
Source
Route.scala

Attributes

Inherited from:
Route
Source
Route.scala

Concrete fields

INTERNAL API

INTERNAL API

Attributes

Source
RouteAdapter.scala