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