Package akka.http.javadsl.server
Class RequestContext
- java.lang.Object
-
- akka.http.javadsl.server.RequestContext
-
public class RequestContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RequestContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.concurrent.CompletionStage<RouteResult>
complete(T value, Marshaller<T,HttpResponse> marshaller)
java.util.concurrent.CompletionStage<RouteResult>
completeWith(HttpResponse response)
RequestContext
delegate()
java.util.concurrent.CompletionStage<RouteResult>
fail(java.lang.Throwable error)
scala.concurrent.ExecutionContextExecutor
getExecutionContext()
akka.event.LoggingAdapter
getLog()
akka.stream.Materializer
getMaterializer()
ParserSettings
getParserSettings()
HttpRequest
getRequest()
RoutingSettings
getSettings()
java.lang.String
getUnmatchedPath()
RequestContext
mapRequest(java.util.function.Function<HttpRequest,HttpRequest> f)
RequestContext
mapUnmatchedPath(java.util.function.Function<java.lang.String,java.lang.String> f)
RequestContext
reconfigure(scala.concurrent.ExecutionContextExecutor executionContext, akka.stream.Materializer materializer, akka.event.LoggingAdapter log, RoutingSettings settings)
java.util.concurrent.CompletionStage<RouteResult>
redirect(Uri uri, StatusCode redirectionType)
java.util.concurrent.CompletionStage<RouteResult>
reject(Rejection... rejections)
java.util.concurrent.CompletionStage<RouteResult>
reject(scala.collection.immutable.Seq<Rejection> rejections)
RequestContext
withAcceptAll()
RequestContext
withExecutionContext(scala.concurrent.ExecutionContextExecutor ec)
RequestContext
withLog(akka.event.LoggingAdapter log)
RequestContext
withMaterializer(akka.stream.Materializer materializer)
RequestContext
withParserSettings(ParserSettings settings)
RequestContext
withRequest(HttpRequest req)
RequestContext
withRoutingSettings(RoutingSettings settings)
RequestContext
withUnmatchedPath(java.lang.String path)
static RequestContext
wrap(RequestContext delegate)
INTERNAL API
-
-
-
Method Detail
-
wrap
public static RequestContext wrap(RequestContext delegate)
INTERNAL API
-
reject
public java.util.concurrent.CompletionStage<RouteResult> reject(Rejection... rejections)
-
delegate
public RequestContext delegate()
-
getRequest
public HttpRequest getRequest()
-
getUnmatchedPath
public java.lang.String getUnmatchedPath()
-
getExecutionContext
public scala.concurrent.ExecutionContextExecutor getExecutionContext()
-
getMaterializer
public akka.stream.Materializer getMaterializer()
-
getLog
public akka.event.LoggingAdapter getLog()
-
getSettings
public RoutingSettings getSettings()
-
getParserSettings
public ParserSettings getParserSettings()
-
reconfigure
public RequestContext reconfigure(scala.concurrent.ExecutionContextExecutor executionContext, akka.stream.Materializer materializer, akka.event.LoggingAdapter log, RoutingSettings settings)
-
complete
public <T> java.util.concurrent.CompletionStage<RouteResult> complete(T value, Marshaller<T,HttpResponse> marshaller)
-
completeWith
public java.util.concurrent.CompletionStage<RouteResult> completeWith(HttpResponse response)
-
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)
-
withRequest
public RequestContext withRequest(HttpRequest req)
-
withExecutionContext
public RequestContext withExecutionContext(scala.concurrent.ExecutionContextExecutor ec)
-
withMaterializer
public RequestContext withMaterializer(akka.stream.Materializer materializer)
-
withLog
public RequestContext withLog(akka.event.LoggingAdapter log)
-
withRoutingSettings
public RequestContext withRoutingSettings(RoutingSettings settings)
-
withParserSettings
public RequestContext withParserSettings(ParserSettings settings)
-
mapRequest
public RequestContext mapRequest(java.util.function.Function<HttpRequest,HttpRequest> f)
-
withUnmatchedPath
public RequestContext withUnmatchedPath(java.lang.String path)
-
mapUnmatchedPath
public RequestContext mapUnmatchedPath(java.util.function.Function<java.lang.String,java.lang.String> f)
-
withAcceptAll
public RequestContext withAcceptAll()
-
-