Class Route$
java.lang.Object
org.apache.pekko.http.scaladsl.server.Route$
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionscala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> apply(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> f) Helper for constructing a Route from a function literal.scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> seal(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, RoutingSettings routingSettings, RejectionHandler rejectionHandler, ExceptionHandler exceptionHandler) "Seals" a route by wrapping it with default exception handling and rejection conversion.org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse, org.apache.pekko.NotUsed> toFlow(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) Turns aRouteinto a server flow.scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> toFunction(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) 
- 
Field Details- 
MODULE$Static reference to the singleton instance of this Scala object.
 
- 
- 
Constructor Details- 
Route$public Route$()
 
- 
- 
Method Details- 
applypublic scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> apply(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> f) Helper for constructing a Route from a function literal.- Parameters:
- f- (undocumented)
- Returns:
- (undocumented)
 
- 
sealpublic scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> seal(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, RoutingSettings routingSettings, RejectionHandler rejectionHandler, ExceptionHandler exceptionHandler) "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 implicitly givenRejectionHandlerandExceptionHandler(or the default handlers if none are given or can be found implicitly). - Consequently, no route alternatives will be tried that were combined with this route using the~on routes or the {@link Directive.|} operator on directives.- Parameters:
- route- (undocumented)
- routingSettings- (undocumented)
- rejectionHandler- (undocumented)
- exceptionHandler- (undocumented)
- Returns:
- (undocumented)
 
- 
toFlowpublic org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse, toFloworg.apache.pekko.NotUsed> (scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) Turns aRouteinto a server flow.This conversion is also implicitly available wherever a Routeis used throughRouteResult#routeToFlow.- Parameters:
- route- (undocumented)
- system- (undocumented)
- Returns:
- (undocumented)
 
- 
toFunctionpublic scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> toFunction(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, org.apache.pekko.actor.ClassicActorSystemProvider system) 
 
-