Class RequestContext


  • public class RequestContext
    extends java.lang.Object
    • Constructor Detail

      • RequestContext

        public RequestContext()
    • Method Detail

      • reject

        public java.util.concurrent.CompletionStage<RouteResult> reject​(Rejection... rejections)
      • getUnmatchedPath

        public java.lang.String getUnmatchedPath()
      • getExecutionContext

        public scala.concurrent.ExecutionContextExecutor getExecutionContext()
      • getMaterializer

        public akka.stream.Materializer getMaterializer()
      • getLog

        public akka.event.LoggingAdapter getLog()
      • reconfigure

        public RequestContext reconfigure​(scala.concurrent.ExecutionContextExecutor executionContext,
                                          akka.stream.Materializer materializer,
                                          akka.event.LoggingAdapter log,
                                          RoutingSettings settings)
      • reject

        public java.util.concurrent.CompletionStage<RouteResult> reject​(scala.collection.immutable.Seq<Rejection> rejections)
      • redirect

        public java.util.concurrent.CompletionStage<RouteResult> redirect​(Uri uri,
                                                                          StatusCode redirectionType)
      • fail

        public java.util.concurrent.CompletionStage<RouteResult> fail​(java.lang.Throwable error)
      • withExecutionContext

        public RequestContext withExecutionContext​(scala.concurrent.ExecutionContextExecutor ec)
      • withMaterializer

        public RequestContext withMaterializer​(akka.stream.Materializer materializer)
      • withLog

        public RequestContext withLog​(akka.event.LoggingAdapter log)
      • withUnmatchedPath

        public RequestContext withUnmatchedPath​(java.lang.String path)
      • mapUnmatchedPath

        public RequestContext mapUnmatchedPath​(java.util.function.Function<java.lang.String,​java.lang.String> f)