Class FramedEntityStreamingDirectives
- java.lang.Object
-
- akka.http.javadsl.server.directives.BasicDirectives
-
- akka.http.javadsl.server.directives.CacheConditionDirectives
-
- akka.http.javadsl.server.directives.CodingDirectives
-
- akka.http.javadsl.server.directives.CookieDirectives
-
- akka.http.javadsl.server.directives.DebuggingDirectives
-
- akka.http.javadsl.server.directives.ExecutionDirectives
-
- akka.http.javadsl.server.directives.FileAndResourceDirectives
-
- akka.http.javadsl.server.directives.FileUploadDirectives
-
- akka.http.javadsl.server.directives.FormFieldDirectives
-
- akka.http.javadsl.server.directives.FutureDirectives
-
- akka.http.javadsl.server.directives.HeaderDirectives
-
- akka.http.javadsl.server.directives.AttributeDirectives
-
- akka.http.javadsl.server.directives.HostDirectives
-
- akka.http.javadsl.server.directives.MarshallingDirectives
-
- akka.http.javadsl.server.directives.MethodDirectives
-
- akka.http.javadsl.server.directives.MiscDirectives
-
- akka.http.javadsl.server.directives.ParameterDirectives
-
- akka.http.javadsl.server.directives.PathDirectives
-
- akka.http.javadsl.server.directives.RangeDirectives
-
- akka.http.javadsl.server.directives.RespondWithDirectives
-
- akka.http.javadsl.server.directives.RouteDirectives
-
- akka.http.javadsl.server.directives.SchemeDirectives
-
- akka.http.javadsl.server.directives.SecurityDirectives
-
- akka.http.javadsl.server.directives.WebSocketDirectives
-
- akka.http.javadsl.server.directives.TimeoutDirectives
-
- akka.http.javadsl.server.directives.FramedEntityStreamingDirectives
-
- Direct Known Subclasses:
CorsDirectives
,FramedEntityStreamingDirectives$
public abstract class FramedEntityStreamingDirectives extends TimeoutDirectives
EXPERIMENTAL API
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.javadsl.server.directives.SecurityDirectives
SecurityDirectives.ProvidedCredentials, SecurityDirectives.ProvidedCredentials$
-
-
Constructor Summary
Constructors Constructor Description FramedEntityStreamingDirectives()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> RouteAdapter
attribute(AttributeKey<T> key, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateBasic(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateBasicAsync(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateBasicAsyncOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
static <T> Route
authenticateBasicOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
static <T> Route
authenticateBasicPF(java.lang.String realm, scala.PartialFunction<java.util.Optional<SecurityDirectives.ProvidedCredentials>,T> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateBasicPFAsync(java.lang.String realm, scala.PartialFunction<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<T>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateOAuth2(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateOAuth2Async(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateOAuth2AsyncOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
static <T> Route
authenticateOAuth2Optional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
static <C extends HttpCredentials,T>
RouteauthenticateOrRejectWithChallenge(java.lang.Class<C> c, java.util.function.Function<java.util.Optional<C>,java.util.concurrent.CompletionStage<scala.util.Either<HttpChallenge,T>>> authenticator, java.util.function.Function<T,Route> inner)
static <T> Route
authenticateOrRejectWithChallenge(java.util.function.Function<java.util.Optional<HttpCredentials>,java.util.concurrent.CompletionStage<scala.util.Either<HttpChallenge,T>>> authenticator, java.util.function.Function<T,Route> inner)
static Route
authorize(java.util.function.Supplier<java.lang.Object> check, java.util.function.Supplier<Route> inner)
static Route
authorizeAsync(java.util.function.Supplier<java.util.concurrent.CompletionStage<java.lang.Object>> check, java.util.function.Supplier<Route> inner)
static Route
authorizeAsyncWithRequestContext(akka.japi.function.Function<RequestContext,java.util.concurrent.CompletionStage<java.lang.Object>> check, java.util.function.Supplier<Route> inner)
static Route
authorizeWithRequestContext(akka.japi.function.Function<RequestContext,java.lang.Object> check, java.util.function.Supplier<Route> inner)
static Route
cancelRejection(Rejection rejection, java.util.function.Supplier<Route> inner)
static Route
cancelRejections(java.lang.Iterable<java.lang.Class<?>> classes, java.util.function.Supplier<Route> inner)
static Route
cancelRejections(java.util.function.Predicate<Rejection> filter, java.util.function.Supplier<Route> inner)
static Route
checkSameOrigin(HttpOriginRange allowed, java.util.function.Supplier<Route> inner)
static Route
complete(HttpResponse response)
static RouteAdapter
complete(RequestEntity entity)
static RouteAdapter
complete(ResponseEntity entity)
static Route
complete(StatusCode status)
static RouteAdapter
complete(StatusCode status, RequestEntity entity)
static RouteAdapter
complete(StatusCode status, ResponseEntity entity)
static RouteAdapter
complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, RequestEntity entity)
static RouteAdapter
complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, ResponseEntity entity)
static <T> RouteAdapter
complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, T value, Marshaller<T,RequestEntity> marshaller)
static RouteAdapter
complete(StatusCode status, java.lang.String entity)
static <T> RouteAdapter
complete(StatusCode status, T value, Marshaller<T,RequestEntity> marshaller)
static RouteAdapter
complete(java.lang.Iterable<HttpHeader> headers, RequestEntity entity)
static RouteAdapter
complete(java.lang.Iterable<HttpHeader> headers, ResponseEntity entity)
static <T> RouteAdapter
complete(java.lang.Iterable<HttpHeader> headers, T value, Marshaller<T,RequestEntity> marshaller)
static Route
complete(java.lang.String body)
static <T> RouteAdapter
complete(T value, Marshaller<T,HttpResponse> marshaller)
static <T> RouteAdapter
completeOK(T value, Marshaller<T,RequestEntity> marshaller)
static RouteAdapter
completeOKWithFuture(java.util.concurrent.CompletionStage<RequestEntity> value)
static <T> RouteAdapter
completeOKWithFuture(java.util.concurrent.CompletionStage<T> value, Marshaller<T,RequestEntity> marshaller)
static <T> RouteAdapter
completeOKWithFuture(scala.concurrent.Future<T> value, Marshaller<T,RequestEntity> marshaller)
static RouteAdapter
completeOKWithFutureString(java.util.concurrent.CompletionStage<java.lang.String> value)
static RouteAdapter
completeOKWithFutureString(scala.concurrent.Future<java.lang.String> value)
<T,M>
RoutecompleteOKWithSource(akka.stream.javadsl.Source<T,M> source, Marshaller<T,RequestEntity> m, EntityStreamingSupport support)
static <T> Route
completeOrRecoverWith(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, Marshaller<T,RequestEntity> marshaller, java.util.function.Function<java.lang.Throwable,Route> inner)
static <T> Route
completeWith(Marshaller<T,? extends HttpResponse> marshaller, java.util.function.Consumer<java.util.function.Consumer<T>> inner)
static RouteAdapter
completeWithFuture(java.util.concurrent.CompletionStage<HttpResponse> value)
static <T> RouteAdapter
completeWithFuture(java.util.concurrent.CompletionStage<T> value, Marshaller<T,HttpResponse> marshaller)
static <T> RouteAdapter
completeWithFuture(scala.concurrent.Future<T> value, Marshaller<T,HttpResponse> marshaller)
static RouteAdapter
completeWithFutureResponse(scala.concurrent.Future<HttpResponse> value)
static Route
completeWithFutureStatus(java.util.concurrent.CompletionStage<StatusCode> status)
static Route
completeWithFutureStatus(scala.concurrent.Future<StatusCode> status)
<T,M>
RoutecompleteWithSource(akka.stream.javadsl.Source<T,M> source, Marshaller<T,akka.util.ByteString> m, EntityStreamingSupport support)
static Route
concat(Route first, Route... alternatives)
static Route
concat(Route first, scala.collection.immutable.Seq<Route> alternatives)
static Route
conditional(DateTime lastModified, java.util.function.Supplier<Route> inner)
static Route
conditional(EntityTag eTag, DateTime lastModified, java.util.function.Supplier<Route> inner)
static Route
conditional(EntityTag eTag, java.util.function.Supplier<Route> inner)
static Route
conditional(java.util.Optional<EntityTag> eTag, java.util.Optional<DateTime> lastModified, java.util.function.Supplier<Route> inner)
static Route
cookie(java.lang.String name, java.util.function.Function<HttpCookiePair,Route> inner)
static Route
decodeRequest(java.util.function.Supplier<Route> inner)
static Route
decodeRequestWith(Coder coder, java.util.function.Supplier<Route> inner)
static Route
decodeRequestWith(java.lang.Iterable<Coder> coders, java.util.function.Supplier<Route> inner)
static ContentTypeResolver
defaultContentTypeResolver()
static DirectoryRenderer
defaultDirectoryRenderer()
static Route
delete(java.util.function.Supplier<Route> inner)
static Route
deleteCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
static Route
deleteCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
static Route
deleteCookie(java.lang.String name, java.lang.String domain, java.lang.String path, java.util.function.Supplier<Route> inner)
static Route
deleteCookie(java.lang.String name, java.lang.String domain, java.util.function.Supplier<Route> inner)
static Route
deleteCookie(java.lang.String name, java.util.function.Supplier<Route> inner)
static Route
encodeResponse(java.util.function.Supplier<Route> inner)
static Route
encodeResponseWith(java.lang.Iterable<Coder> coders, java.util.function.Supplier<Route> inner)
static <T> Route
entity(Unmarshaller<? super HttpEntity,T> unmarshaller, java.util.function.Function<T,Route> inner)
<T> Route
entityAsSourceOf(Unmarshaller<akka.util.ByteString,T> um, EntityStreamingSupport support, java.util.function.Function<akka.stream.javadsl.Source<T,akka.NotUsed>,Route> inner)
static <T> Route
extract(java.util.function.Function<RequestContext,T> extract, java.util.function.Function<T,Route> inner)
static Route
extractActorSystem(java.util.function.Function<akka.actor.ActorSystem,Route> inner)
static Route
extractClientIP(java.util.function.Function<RemoteAddress,Route> inner)
static Route
extractCredentials(java.util.function.Function<java.util.Optional<HttpCredentials>,Route> inner)
static RouteAdapter
extractDataBytes(java.util.function.Function<akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>,Route> inner)
static Route
extractEntity(java.util.function.Function<RequestEntity,Route> inner)
static Route
extractExecutionContext(java.util.function.Function<scala.concurrent.ExecutionContextExecutor,Route> inner)
static Route
extractHost(java.util.function.Function<java.lang.String,Route> inner)
static Route
extractLog(java.util.function.Function<akka.event.LoggingAdapter,Route> inner)
static RouteAdapter
extractMatchedPath(java.util.function.Function<java.lang.String,Route> inner)
static Route
extractMaterializer(java.util.function.Function<akka.stream.Materializer,Route> inner)
static RouteAdapter
extractMethod(java.util.function.Function<HttpMethod,Route> inner)
static Route
extractOfferedWsProtocols(java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
static RouteAdapter
extractParserSettings(java.util.function.Function<ParserSettings,Route> inner)
static RouteAdapter
extractRequest(java.util.function.Function<HttpRequest,Route> inner)
static RouteAdapter
extractRequestContext(java.util.function.Function<RequestContext,Route> inner)
static Route
extractRequestEntity(java.util.function.Function<RequestEntity,Route> inner)
static RouteAdapter
extractRequestTimeout(java.util.function.Function<scala.concurrent.duration.Duration,Route> inner)
static Route
extractScheme(java.util.function.Function<java.lang.String,Route> inner)
static RouteAdapter
extractSettings(java.util.function.Function<RoutingSettings,Route> inner)
static Route
extractStrictEntity(scala.concurrent.duration.FiniteDuration timeout, long maxBytes, java.util.function.Function<HttpEntity.Strict,Route> inner)
static Route
extractStrictEntity(scala.concurrent.duration.FiniteDuration timeout, java.util.function.Function<HttpEntity.Strict,Route> inner)
static RouteAdapter
extractUnmatchedPath(java.util.function.Function<java.lang.String,Route> inner)
static Route
extractUpgradeToWebSocket(java.util.function.Function<UpgradeToWebSocket,Route> inner)
static RouteAdapter
extractUri(java.util.function.Function<Uri,Route> inner)
static Route
extractWebSocketUpgrade(java.util.function.Function<WebSocketUpgrade,Route> inner)
static Route
failWith(java.lang.Throwable error)
static Route
fileUpload(java.lang.String fieldName, java.util.function.BiFunction<FileInfo,akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>,Route> inner)
static Route
fileUploadAll(java.lang.String fieldName, java.util.function.Function<java.util.List<java.util.Map.Entry<FileInfo,akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>>>,Route> inner)
static <T> Route
formField(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
static Route
formField(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
static <T> Route
formFieldList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
static Route
formFieldList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
static Route
formFieldList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
static Route
formFieldMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
static Route
formFieldMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
static <T> Route
formFieldOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
static Route
formFieldOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
static Route
get(java.util.function.Supplier<Route> inner)
static Route
getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, ContentTypeResolver resolver)
static Route
getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, DirectoryRenderer renderer)
static Route
getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, DirectoryRenderer renderer, ContentTypeResolver resolver)
static Route
getFromBrowseableDirectories(java.lang.String... directories)
static Route
getFromBrowseableDirectories(scala.collection.immutable.Seq<java.lang.String> directories)
static Route
getFromBrowseableDirectory(java.lang.String directory)
static Route
getFromBrowseableDirectory(java.lang.String directory, ContentTypeResolver resolver)
static Route
getFromBrowseableDirectory(java.lang.String directory, DirectoryRenderer renderer)
static Route
getFromBrowseableDirectory(java.lang.String directory, DirectoryRenderer renderer, ContentTypeResolver resolver)
static Route
getFromDirectory(java.lang.String directoryPath)
static Route
getFromDirectory(java.lang.String directoryPath, ContentTypeResolver resolver)
static Route
getFromFile(java.io.File file)
static Route
getFromFile(java.io.File file, ContentType contentType)
static Route
getFromFile(java.io.File file, ContentTypeResolver resolver)
static Route
getFromFile(java.lang.String file)
static Route
getFromFile(java.lang.String file, ContentTypeResolver resolver)
static Route
getFromResource(java.lang.String path)
static Route
getFromResource(java.lang.String path, ContentType contentType)
static Route
getFromResource(java.lang.String path, ContentType contentType, java.lang.ClassLoader classLoader)
static Route
getFromResource(java.lang.String path, ContentTypeResolver resolver)
static Route
getFromResourceDirectory(java.lang.String directoryName)
static Route
getFromResourceDirectory(java.lang.String directoryName, ContentTypeResolver resolver)
static Route
getFromResourceDirectory(java.lang.String directoryName, ContentTypeResolver resolver, java.lang.ClassLoader classLoader)
static Route
getFromResourceDirectory(java.lang.String directoryName, java.lang.ClassLoader classLoader)
static Route
handle(akka.japi.function.Function<HttpRequest,java.util.concurrent.CompletionStage<HttpResponse>> handler)
static RouteAdapter
handleExceptions(ExceptionHandler handler, java.util.function.Supplier<Route> inner)
static RouteAdapter
handleRejections(RejectionHandler handler, java.util.function.Supplier<Route> inner)
static Route
handleSync(akka.japi.function.Function<HttpRequest,HttpResponse> handler)
static <T> Route
handleWebSocketMessages(akka.stream.javadsl.Flow<Message,Message,T> handler)
static <T> Route
handleWebSocketMessagesForOptionalProtocol(akka.stream.javadsl.Flow<Message,Message,T> handler, java.util.Optional<java.lang.String> subprotocol)
static <T> Route
handleWebSocketMessagesForProtocol(akka.stream.javadsl.Flow<Message,Message,T> handler, java.lang.String subprotocol)
static <T,R>
RoutehandleWith(Unmarshaller<? super HttpEntity,T> unmarshaller, Marshaller<R,? extends HttpResponse> marshaller, java.util.function.Function<T,R> inner)
static Route
head(java.util.function.Supplier<Route> inner)
static <T> RouteAdapter
headerValue(java.util.function.Function<HttpHeader,java.util.Optional<T>> f, java.util.function.Function<T,Route> inner)
static RouteAdapter
headerValueByName(java.lang.String headerName, java.util.function.Function<java.lang.String,Route> inner)
static <T extends HttpHeader>
RouteAdapterheaderValueByType(java.lang.Class<T> t, java.util.function.Function<T,Route> inner)
static <T> RouteAdapter
headerValuePF(scala.PartialFunction<HttpHeader,T> pf, java.util.function.Function<T,Route> inner)
static Route
host(java.lang.Iterable<java.lang.String> hostNames, java.util.function.Supplier<Route> inner)
static Route
host(java.lang.String hostName, java.util.function.Supplier<Route> inner)
static Route
host(java.util.function.Predicate<java.lang.String> predicate, java.util.function.Supplier<Route> inner)
static Route
host(java.util.regex.Pattern regex, java.util.function.Function<java.lang.String,Route> inner)
static Route
ignoreTrailingSlash(java.util.function.Supplier<Route> inner)
static Route
listDirectoryContents(DirectoryRenderer directoryRenderer, java.lang.String... directories)
static Route
listDirectoryContents(DirectoryRenderer directoryRenderer, scala.collection.immutable.Seq<java.lang.String> directories)
static Route
listDirectoryContents(java.lang.String... directories)
static Route
listDirectoryContents(scala.collection.immutable.Seq<java.lang.String> directories)
static Route
logRequest(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
static Route
logRequest(java.lang.String marker, java.util.function.Supplier<Route> inner)
static Route
logRequest(java.util.function.Function<HttpRequest,LogEntry> show, java.util.function.Supplier<Route> inner)
static RouteAdapter
logRequestResult(java.util.function.BiFunction<HttpRequest,HttpResponse,LogEntry> showSuccess, java.util.function.BiFunction<HttpRequest,java.util.List<Rejection>,LogEntry> showRejection, java.util.function.Supplier<Route> inner)
static RouteAdapter
logRequestResultOptional(java.util.function.BiFunction<HttpRequest,HttpResponse,java.util.Optional<LogEntry>> showSuccess, java.util.function.BiFunction<HttpRequest,java.util.List<Rejection>,java.util.Optional<LogEntry>> showRejection, java.util.function.Supplier<Route> inner)
static Route
logResult(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
static Route
logResult(java.lang.String marker, java.util.function.Supplier<Route> inner)
static RouteAdapter
logResult(java.util.function.Function<HttpResponse,LogEntry> showSuccess, java.util.function.Function<java.util.List<Rejection>,LogEntry> showRejection, java.util.function.Supplier<Route> inner)
static Route
mapInnerRoute(java.util.function.Function<Route,Route> f, java.util.function.Supplier<Route> inner)
static Route
mapRejections(java.util.function.Function<java.util.List<Rejection>,java.util.List<Rejection>> f, java.util.function.Supplier<Route> inner)
static Route
mapRequest(java.util.function.Function<HttpRequest,HttpRequest> f, java.util.function.Supplier<Route> inner)
static Route
mapRequestContext(java.util.function.Function<RequestContext,RequestContext> f, java.util.function.Supplier<Route> inner)
static Route
mapResponse(java.util.function.Function<HttpResponse,HttpResponse> f, java.util.function.Supplier<Route> inner)
static Route
mapResponseEntity(java.util.function.Function<ResponseEntity,ResponseEntity> f, java.util.function.Supplier<Route> inner)
static Route
mapResponseHeaders(java.util.function.Function<java.util.List<HttpHeader>,java.util.List<HttpHeader>> f, java.util.function.Supplier<Route> inner)
static Route
mapRouteResult(java.util.function.Function<RouteResult,RouteResult> f, java.util.function.Supplier<Route> inner)
static Route
mapRouteResultFuture(java.util.function.Function<java.util.concurrent.CompletionStage<RouteResult>,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
static Route
mapRouteResultPF(scala.PartialFunction<RouteResult,RouteResult> f, java.util.function.Supplier<Route> inner)
static Route
mapRouteResultWith(java.util.function.Function<RouteResult,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
static Route
mapRouteResultWithPF(scala.PartialFunction<RouteResult,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
static Route
mapSettings(java.util.function.Function<RoutingSettings,RoutingSettings> f, java.util.function.Supplier<Route> inner)
static Route
mapUnmatchedPath(java.util.function.Function<java.lang.String,java.lang.String> f, java.util.function.Supplier<Route> inner)
static Route
method(HttpMethod method, java.util.function.Supplier<Route> inner)
static <T> RouteAdapter
onComplete(java.util.concurrent.CompletionStage<T> cs, java.util.function.Function<scala.util.Try<T>,Route> inner)
static <T> RouteAdapter
onComplete(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<scala.util.Try<T>,Route> inner)
static <T> RouteAdapter
onCompleteWithBreaker(akka.pattern.CircuitBreaker breaker, java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<scala.util.Try<T>,Route> inner)
static <T> RouteAdapter
onSuccess(java.util.concurrent.CompletionStage<T> cs, java.util.function.Function<T,Route> inner)
static <T> RouteAdapter
onSuccess(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<T,Route> inner)
static <T> RouteAdapter
optionalAttribute(AttributeKey<T> key, java.util.function.Function<java.util.Optional<T>,Route> inner)
static Route
optionalCookie(java.lang.String name, java.util.function.Function<java.util.Optional<HttpCookiePair>,Route> inner)
static <T> RouteAdapter
optionalHeaderValue(java.util.function.Function<HttpHeader,java.util.Optional<T>> f, java.util.function.Function<java.util.Optional<T>,Route> inner)
static RouteAdapter
optionalHeaderValueByName(java.lang.String headerName, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
static <T extends HttpHeader>
RouteAdapteroptionalHeaderValueByType(java.lang.Class<T> t, java.util.function.Function<java.util.Optional<T>,Route> inner)
static <T> RouteAdapter
optionalHeaderValuePF(scala.PartialFunction<HttpHeader,T> pf, java.util.function.Function<java.util.Optional<T>,Route> inner)
static Route
options(java.util.function.Supplier<Route> inner)
static Route
overrideMethodWithParameter(java.lang.String paramName, java.util.function.Supplier<Route> inner)
static <T> Route
parameter(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
static Route
parameter(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
static <T> Route
parameterList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
static Route
parameterList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
static Route
parameterList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
static Route
parameterMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
static Route
parameterMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
static <T> Route
parameterOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
static Route
parameterOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
static <T> Route
parameterOrDefault(Unmarshaller<java.lang.String,T> t, T defaultValue, java.lang.String name, java.util.function.Function<T,Route> inner)
static <T> Route
parameterRequiredValue(Unmarshaller<java.lang.String,T> t, T requiredValue, java.lang.String name, java.util.function.Supplier<Route> inner)
static Route
pass(java.util.function.Supplier<Route> inner)
static Route
patch(java.util.function.Supplier<Route> inner)
static Route
path(PathMatcher0 p, java.util.function.Supplier<Route> inner)
static <T> Route
path(PathMatcher1<T> p, java.util.function.Function<T,Route> inner)
static <T1,T2>
Routepath(PathMatcher2<T1,T2> p, java.util.function.BiFunction<T1,T2,Route> inner)
static <T> Route
path(Unmarshaller<java.lang.String,T> t, java.util.function.Function<T,Route> inner)
static Route
path(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
path(java.util.function.Function<java.lang.String,Route> inner)
static Route
pathEnd(java.util.function.Supplier<Route> inner)
static Route
pathEndOrSingleSlash(java.util.function.Supplier<Route> inner)
static Route
pathPrefix(PathMatcher0 p, java.util.function.Supplier<Route> inner)
static <T> Route
pathPrefix(PathMatcher1<T> p, java.util.function.Function<T,Route> inner)
static <T1,T2>
RoutepathPrefix(PathMatcher2<T1,T2> p, java.util.function.BiFunction<T1,T2,Route> inner)
static <T> Route
pathPrefix(Unmarshaller<java.lang.String,T> t, java.util.function.Function<T,Route> inner)
static Route
pathPrefix(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
pathPrefix(java.util.function.Function<java.lang.String,Route> inner)
static Route
pathPrefixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
static <T1> Route
pathPrefixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
static <T1,T2>
RoutepathPrefixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
static Route
pathPrefixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
pathSingleSlash(java.util.function.Supplier<Route> inner)
static Route
pathSuffix(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
static <T1> Route
pathSuffix(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
static <T1,T2>
RoutepathSuffix(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
static Route
pathSuffix(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
pathSuffixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
static <T1> Route
pathSuffixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
static <T1,T2>
RoutepathSuffixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
static Route
pathSuffixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
post(java.util.function.Supplier<Route> inner)
static <T> Route
provide(T t, java.util.function.Function<T,Route> inner)
static Route
put(java.util.function.Supplier<Route> inner)
static Route
rawPathPrefix(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
static <T1> Route
rawPathPrefix(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
static <T1,T2>
RouterawPathPrefix(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
static Route
rawPathPrefix(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
rawPathPrefixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
static <T1> Route
rawPathPrefixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
static <T1,T2>
RouterawPathPrefixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
static Route
rawPathPrefixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
static Route
recoverRejections(java.util.function.Function<java.lang.Iterable<Rejection>,RouteResult> f, java.util.function.Supplier<Route> inner)
static Route
recoverRejectionsWith(java.util.function.Function<java.lang.Iterable<Rejection>,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
static Route
redirect(Uri uri, StatusCode redirectionType)
static Route
redirectToNoTrailingSlashIfPresent(StatusCode redirectionType, java.util.function.Supplier<Route> inner)
static Route
redirectToTrailingSlashIfMissing(StatusCode redirectionType, java.util.function.Supplier<Route> inner)
static Route
reject()
static Route
reject(Rejection rejection, Rejection... rejections)
static Route
reject(Rejection rejection, scala.collection.immutable.Seq<Rejection> rejections)
static Route
rejectEmptyResponse(java.util.function.Supplier<Route> inner)
static <T> Route
request(Unmarshaller<? super HttpRequest,T> unmarshaller, java.util.function.Function<T,Route> inner)
static Route
requestEncodedWith(HttpEncoding encoding, java.util.function.Supplier<Route> inner)
static Route
requestEntityEmpty(java.util.function.Supplier<Route> inner)
static Route
requestEntityPresent(java.util.function.Supplier<Route> inner)
static Route
respondWithDefaultHeader(HttpHeader responseHeader, java.util.function.Supplier<Route> inner)
static Route
respondWithDefaultHeaders(java.lang.Iterable<HttpHeader> responseHeaders, java.util.function.Supplier<Route> inner)
static Route
respondWithHeader(HttpHeader responseHeader, java.util.function.Supplier<Route> inner)
static Route
respondWithHeaders(java.lang.Iterable<HttpHeader> responseHeaders, java.util.function.Supplier<Route> inner)
static Route
responseEncodingAccepted(HttpEncoding encoding, java.util.function.Supplier<Route> inner)
static Route
route(Route... alternatives)
static Route
route(scala.collection.immutable.Seq<Route> alternatives)
static Route
scheme(java.lang.String name, java.util.function.Supplier<Route> inner)
static Route
selectPreferredLanguage(java.lang.Iterable<Language> languages, java.util.function.Function<Language,Route> inner)
static Route
setCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
static Route
setCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
static Route
storeUploadedFile(java.lang.String fieldName, java.util.function.Function<FileInfo,java.io.File> destFn, java.util.function.BiFunction<FileInfo,java.io.File,Route> inner)
static Route
storeUploadedFiles(java.lang.String fieldName, java.util.function.Function<FileInfo,java.io.File> destFn, java.util.function.Function<java.util.List<java.util.Map.Entry<FileInfo,java.io.File>>,Route> inner)
static Route
toStrictEntity(scala.concurrent.duration.FiniteDuration timeout, long maxBytes, java.util.function.Supplier<Route> inner)
static Route
toStrictEntity(scala.concurrent.duration.FiniteDuration timeout, java.util.function.Supplier<Route> inner)
static Route
validate(java.util.function.BooleanSupplier check, java.lang.String errorMsg, java.util.function.Supplier<Route> inner)
static Route
withExecutionContext(scala.concurrent.ExecutionContextExecutor ec, java.util.function.Supplier<Route> inner)
static Route
withLog(akka.event.LoggingAdapter log, java.util.function.Supplier<Route> inner)
static Route
withMaterializer(akka.stream.Materializer mat, java.util.function.Supplier<Route> inner)
static RouteAdapter
withoutRequestTimeout(java.util.function.Supplier<Route> inner)
static Route
withoutSizeLimit(java.util.function.Supplier<Route> inner)
static Route
withPrecompressedMediaTypeSupport(java.util.function.Supplier<Route> inner)
static Route
withRangeSupport(java.util.function.Supplier<Route> inner)
static RouteAdapter
withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
static RouteAdapter
withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Supplier<Route> inner)
static RouteAdapter
withRequestTimeoutResponse(java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
static Route
withSettings(RoutingSettings s, java.util.function.Supplier<Route> inner)
static Route
withSizeLimit(long maxBytes, java.util.function.Supplier<Route> inner)
-
Methods inherited from class akka.http.javadsl.server.directives.TimeoutDirectives
extractRequestTimeout, withoutRequestTimeout, withRequestTimeout, withRequestTimeout, withRequestTimeoutResponse
-
Methods inherited from class akka.http.javadsl.server.directives.WebSocketDirectives
extractOfferedWsProtocols, extractUpgradeToWebSocket, extractWebSocketUpgrade, handleWebSocketMessages, handleWebSocketMessagesForOptionalProtocol, handleWebSocketMessagesForProtocol
-
Methods inherited from class akka.http.javadsl.server.directives.SecurityDirectives
authenticateBasic, authenticateBasicAsync, authenticateBasicAsyncOptional, authenticateBasicOptional, authenticateBasicPF, authenticateBasicPFAsync, authenticateOAuth2, authenticateOAuth2Async, authenticateOAuth2AsyncOptional, authenticateOAuth2Optional, authenticateOrRejectWithChallenge, authenticateOrRejectWithChallenge, authorize, authorizeAsync, authorizeAsyncWithRequestContext, authorizeWithRequestContext, extractCredentials
-
Methods inherited from class akka.http.javadsl.server.directives.SchemeDirectives
extractScheme, scheme
-
Methods inherited from class akka.http.javadsl.server.directives.RouteDirectives
complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, complete, completeOK, completeOKWithFuture, completeOKWithFuture, completeOKWithFuture, completeOKWithFutureString, completeOKWithFutureString, completeWithFuture, completeWithFuture, completeWithFuture, completeWithFutureResponse, completeWithFutureStatus, completeWithFutureStatus, concat, concat, failWith, handle, handleSync, redirect, reject, reject, reject, route, route
-
Methods inherited from class akka.http.javadsl.server.directives.RespondWithDirectives
respondWithDefaultHeader, respondWithDefaultHeaders, respondWithHeader, respondWithHeaders
-
Methods inherited from class akka.http.javadsl.server.directives.RangeDirectives
withRangeSupport
-
Methods inherited from class akka.http.javadsl.server.directives.PathDirectives
ignoreTrailingSlash, path, path, path, path, path, path, pathEnd, pathEndOrSingleSlash, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefix, pathPrefixTest, pathPrefixTest, pathPrefixTest, pathPrefixTest, pathSingleSlash, pathSuffix, pathSuffix, pathSuffix, pathSuffix, pathSuffixTest, pathSuffixTest, pathSuffixTest, pathSuffixTest, rawPathPrefix, rawPathPrefix, rawPathPrefix, rawPathPrefix, rawPathPrefixTest, rawPathPrefixTest, rawPathPrefixTest, rawPathPrefixTest, redirectToNoTrailingSlashIfPresent, redirectToTrailingSlashIfMissing
-
Methods inherited from class akka.http.javadsl.server.directives.ParameterDirectives
parameter, parameter, parameterList, parameterList, parameterList, parameterMap, parameterMultiMap, parameterOptional, parameterOptional, parameterOrDefault, parameterRequiredValue
-
Methods inherited from class akka.http.javadsl.server.directives.MiscDirectives
extractClientIP, rejectEmptyResponse, requestEntityEmpty, requestEntityPresent, selectPreferredLanguage, validate, withoutSizeLimit, withSizeLimit
-
Methods inherited from class akka.http.javadsl.server.directives.MethodDirectives
delete, extractMethod, get, head, method, options, overrideMethodWithParameter, patch, post, put
-
Methods inherited from class akka.http.javadsl.server.directives.MarshallingDirectives
completeWith, entity, handleWith, request
-
Methods inherited from class akka.http.javadsl.server.directives.HostDirectives
extractHost, host, host, host, host
-
Methods inherited from class akka.http.javadsl.server.directives.AttributeDirectives
attribute, optionalAttribute
-
Methods inherited from class akka.http.javadsl.server.directives.HeaderDirectives
checkSameOrigin, headerValue, headerValueByName, headerValueByType, headerValuePF, optionalHeaderValue, optionalHeaderValueByName, optionalHeaderValueByType, optionalHeaderValuePF
-
Methods inherited from class akka.http.javadsl.server.directives.FutureDirectives
completeOrRecoverWith, onComplete, onComplete, onCompleteWithBreaker, onSuccess, onSuccess
-
Methods inherited from class akka.http.javadsl.server.directives.FormFieldDirectives
formField, formField, formFieldList, formFieldList, formFieldList, formFieldMap, formFieldMultiMap, formFieldOptional, formFieldOptional
-
Methods inherited from class akka.http.javadsl.server.directives.FileUploadDirectives
fileUpload, fileUploadAll, storeUploadedFile, storeUploadedFiles
-
Methods inherited from class akka.http.javadsl.server.directives.FileAndResourceDirectives
defaultContentTypeResolver, defaultDirectoryRenderer, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromDirectory, getFromDirectory, getFromFile, getFromFile, getFromFile, getFromFile, getFromFile, getFromResource, getFromResource, getFromResource, getFromResource, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, listDirectoryContents, listDirectoryContents, listDirectoryContents, listDirectoryContents
-
Methods inherited from class akka.http.javadsl.server.directives.ExecutionDirectives
handleExceptions, handleRejections
-
Methods inherited from class akka.http.javadsl.server.directives.DebuggingDirectives
logRequest, logRequest, logRequest, logRequestResult, logRequestResultOptional, logResult, logResult, logResult
-
Methods inherited from class akka.http.javadsl.server.directives.CookieDirectives
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
-
Methods inherited from class akka.http.javadsl.server.directives.CodingDirectives
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
-
Methods inherited from class akka.http.javadsl.server.directives.CacheConditionDirectives
conditional, conditional, conditional, conditional
-
Methods inherited from class akka.http.javadsl.server.directives.BasicDirectives
cancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettings
-
-
-
-
Method Detail
-
mapRequest
public static Route mapRequest(java.util.function.Function<HttpRequest,HttpRequest> f, java.util.function.Supplier<Route> inner)
-
mapRequestContext
public static Route mapRequestContext(java.util.function.Function<RequestContext,RequestContext> f, java.util.function.Supplier<Route> inner)
-
mapRejections
public static Route mapRejections(java.util.function.Function<java.util.List<Rejection>,java.util.List<Rejection>> f, java.util.function.Supplier<Route> inner)
-
mapResponse
public static Route mapResponse(java.util.function.Function<HttpResponse,HttpResponse> f, java.util.function.Supplier<Route> inner)
-
mapResponseEntity
public static Route mapResponseEntity(java.util.function.Function<ResponseEntity,ResponseEntity> f, java.util.function.Supplier<Route> inner)
-
mapResponseHeaders
public static Route mapResponseHeaders(java.util.function.Function<java.util.List<HttpHeader>,java.util.List<HttpHeader>> f, java.util.function.Supplier<Route> inner)
-
mapInnerRoute
public static Route mapInnerRoute(java.util.function.Function<Route,Route> f, java.util.function.Supplier<Route> inner)
-
mapRouteResult
public static Route mapRouteResult(java.util.function.Function<RouteResult,RouteResult> f, java.util.function.Supplier<Route> inner)
-
mapRouteResultPF
public static Route mapRouteResultPF(scala.PartialFunction<RouteResult,RouteResult> f, java.util.function.Supplier<Route> inner)
-
mapRouteResultFuture
public static Route mapRouteResultFuture(java.util.function.Function<java.util.concurrent.CompletionStage<RouteResult>,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
-
mapRouteResultWith
public static Route mapRouteResultWith(java.util.function.Function<RouteResult,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
-
mapRouteResultWithPF
public static Route mapRouteResultWithPF(scala.PartialFunction<RouteResult,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
-
mapSettings
public static Route mapSettings(java.util.function.Function<RoutingSettings,RoutingSettings> f, java.util.function.Supplier<Route> inner)
-
cancelRejection
public static Route cancelRejection(Rejection rejection, java.util.function.Supplier<Route> inner)
-
cancelRejections
public static Route cancelRejections(java.lang.Iterable<java.lang.Class<?>> classes, java.util.function.Supplier<Route> inner)
-
cancelRejections
public static Route cancelRejections(java.util.function.Predicate<Rejection> filter, java.util.function.Supplier<Route> inner)
-
recoverRejections
public static Route recoverRejections(java.util.function.Function<java.lang.Iterable<Rejection>,RouteResult> f, java.util.function.Supplier<Route> inner)
-
recoverRejectionsWith
public static Route recoverRejectionsWith(java.util.function.Function<java.lang.Iterable<Rejection>,java.util.concurrent.CompletionStage<RouteResult>> f, java.util.function.Supplier<Route> inner)
-
mapUnmatchedPath
public static Route mapUnmatchedPath(java.util.function.Function<java.lang.String,java.lang.String> f, java.util.function.Supplier<Route> inner)
-
extractUnmatchedPath
public static RouteAdapter extractUnmatchedPath(java.util.function.Function<java.lang.String,Route> inner)
-
extractMatchedPath
public static RouteAdapter extractMatchedPath(java.util.function.Function<java.lang.String,Route> inner)
-
extractRequest
public static RouteAdapter extractRequest(java.util.function.Function<HttpRequest,Route> inner)
-
extractUri
public static RouteAdapter extractUri(java.util.function.Function<Uri,Route> inner)
-
extractEntity
public static Route extractEntity(java.util.function.Function<RequestEntity,Route> inner)
-
extractMaterializer
public static Route extractMaterializer(java.util.function.Function<akka.stream.Materializer,Route> inner)
-
extractActorSystem
public static Route extractActorSystem(java.util.function.Function<akka.actor.ActorSystem,Route> inner)
-
extractExecutionContext
public static Route extractExecutionContext(java.util.function.Function<scala.concurrent.ExecutionContextExecutor,Route> inner)
-
extract
public static <T> Route extract(java.util.function.Function<RequestContext,T> extract, java.util.function.Function<T,Route> inner)
-
withLog
public static Route withLog(akka.event.LoggingAdapter log, java.util.function.Supplier<Route> inner)
-
withExecutionContext
public static Route withExecutionContext(scala.concurrent.ExecutionContextExecutor ec, java.util.function.Supplier<Route> inner)
-
withMaterializer
public static Route withMaterializer(akka.stream.Materializer mat, java.util.function.Supplier<Route> inner)
-
withSettings
public static Route withSettings(RoutingSettings s, java.util.function.Supplier<Route> inner)
-
extractLog
public static Route extractLog(java.util.function.Function<akka.event.LoggingAdapter,Route> inner)
-
extractParserSettings
public static RouteAdapter extractParserSettings(java.util.function.Function<ParserSettings,Route> inner)
-
extractSettings
public static RouteAdapter extractSettings(java.util.function.Function<RoutingSettings,Route> inner)
-
extractRequestContext
public static RouteAdapter extractRequestContext(java.util.function.Function<RequestContext,Route> inner)
-
extractDataBytes
public static RouteAdapter extractDataBytes(java.util.function.Function<akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>,Route> inner)
-
extractRequestEntity
public static Route extractRequestEntity(java.util.function.Function<RequestEntity,Route> inner)
-
extractStrictEntity
public static Route extractStrictEntity(scala.concurrent.duration.FiniteDuration timeout, java.util.function.Function<HttpEntity.Strict,Route> inner)
-
extractStrictEntity
public static Route extractStrictEntity(scala.concurrent.duration.FiniteDuration timeout, long maxBytes, java.util.function.Function<HttpEntity.Strict,Route> inner)
-
toStrictEntity
public static Route toStrictEntity(scala.concurrent.duration.FiniteDuration timeout, java.util.function.Supplier<Route> inner)
-
toStrictEntity
public static Route toStrictEntity(scala.concurrent.duration.FiniteDuration timeout, long maxBytes, java.util.function.Supplier<Route> inner)
-
conditional
public static Route conditional(EntityTag eTag, java.util.function.Supplier<Route> inner)
-
conditional
public static Route conditional(DateTime lastModified, java.util.function.Supplier<Route> inner)
-
conditional
public static Route conditional(EntityTag eTag, DateTime lastModified, java.util.function.Supplier<Route> inner)
-
conditional
public static Route conditional(java.util.Optional<EntityTag> eTag, java.util.Optional<DateTime> lastModified, java.util.function.Supplier<Route> inner)
-
responseEncodingAccepted
public static Route responseEncodingAccepted(HttpEncoding encoding, java.util.function.Supplier<Route> inner)
-
encodeResponseWith
public static Route encodeResponseWith(java.lang.Iterable<Coder> coders, java.util.function.Supplier<Route> inner)
-
decodeRequestWith
public static Route decodeRequestWith(Coder coder, java.util.function.Supplier<Route> inner)
-
requestEncodedWith
public static Route requestEncodedWith(HttpEncoding encoding, java.util.function.Supplier<Route> inner)
-
decodeRequestWith
public static Route decodeRequestWith(java.lang.Iterable<Coder> coders, java.util.function.Supplier<Route> inner)
-
withPrecompressedMediaTypeSupport
public static Route withPrecompressedMediaTypeSupport(java.util.function.Supplier<Route> inner)
-
cookie
public static Route cookie(java.lang.String name, java.util.function.Function<HttpCookiePair,Route> inner)
-
optionalCookie
public static Route optionalCookie(java.lang.String name, java.util.function.Function<java.util.Optional<HttpCookiePair>,Route> inner)
-
setCookie
public static Route setCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
-
setCookie
public static Route setCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
-
deleteCookie
public static Route deleteCookie(HttpCookie cookie, java.util.function.Supplier<Route> inner)
-
deleteCookie
public static Route deleteCookie(java.lang.Iterable<HttpCookie> cookies, java.util.function.Supplier<Route> inner)
-
deleteCookie
public static Route deleteCookie(java.lang.String name, java.util.function.Supplier<Route> inner)
-
deleteCookie
public static Route deleteCookie(java.lang.String name, java.lang.String domain, java.util.function.Supplier<Route> inner)
-
deleteCookie
public static Route deleteCookie(java.lang.String name, java.lang.String domain, java.lang.String path, java.util.function.Supplier<Route> inner)
-
logRequest
public static Route logRequest(java.lang.String marker, java.util.function.Supplier<Route> inner)
-
logRequest
public static Route logRequest(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
-
logRequest
public static Route logRequest(java.util.function.Function<HttpRequest,LogEntry> show, java.util.function.Supplier<Route> inner)
-
logResult
public static Route logResult(java.lang.String marker, java.util.function.Supplier<Route> inner)
-
logResult
public static Route logResult(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
-
logResult
public static RouteAdapter logResult(java.util.function.Function<HttpResponse,LogEntry> showSuccess, java.util.function.Function<java.util.List<Rejection>,LogEntry> showRejection, java.util.function.Supplier<Route> inner)
-
logRequestResult
public static RouteAdapter logRequestResult(java.util.function.BiFunction<HttpRequest,HttpResponse,LogEntry> showSuccess, java.util.function.BiFunction<HttpRequest,java.util.List<Rejection>,LogEntry> showRejection, java.util.function.Supplier<Route> inner)
-
logRequestResultOptional
public static RouteAdapter logRequestResultOptional(java.util.function.BiFunction<HttpRequest,HttpResponse,java.util.Optional<LogEntry>> showSuccess, java.util.function.BiFunction<HttpRequest,java.util.List<Rejection>,java.util.Optional<LogEntry>> showRejection, java.util.function.Supplier<Route> inner)
-
handleExceptions
public static RouteAdapter handleExceptions(ExceptionHandler handler, java.util.function.Supplier<Route> inner)
-
handleRejections
public static RouteAdapter handleRejections(RejectionHandler handler, java.util.function.Supplier<Route> inner)
-
getFromResource
public static Route getFromResource(java.lang.String path)
-
getFromResource
public static Route getFromResource(java.lang.String path, ContentTypeResolver resolver)
-
getFromResource
public static Route getFromResource(java.lang.String path, ContentType contentType)
-
getFromResource
public static Route getFromResource(java.lang.String path, ContentType contentType, java.lang.ClassLoader classLoader)
-
getFromResourceDirectory
public static Route getFromResourceDirectory(java.lang.String directoryName)
-
getFromResourceDirectory
public static Route getFromResourceDirectory(java.lang.String directoryName, java.lang.ClassLoader classLoader)
-
getFromResourceDirectory
public static Route getFromResourceDirectory(java.lang.String directoryName, ContentTypeResolver resolver)
-
getFromResourceDirectory
public static Route getFromResourceDirectory(java.lang.String directoryName, ContentTypeResolver resolver, java.lang.ClassLoader classLoader)
-
getFromFile
public static Route getFromFile(java.io.File file)
-
getFromFile
public static Route getFromFile(java.io.File file, ContentTypeResolver resolver)
-
getFromFile
public static Route getFromFile(java.io.File file, ContentType contentType)
-
getFromFile
public static Route getFromFile(java.lang.String file)
-
getFromFile
public static Route getFromFile(java.lang.String file, ContentTypeResolver resolver)
-
getFromDirectory
public static Route getFromDirectory(java.lang.String directoryPath)
-
getFromDirectory
public static Route getFromDirectory(java.lang.String directoryPath, ContentTypeResolver resolver)
-
getFromBrowseableDirectory
public static Route getFromBrowseableDirectory(java.lang.String directory, DirectoryRenderer renderer, ContentTypeResolver resolver)
-
getFromBrowseableDirectory
public static Route getFromBrowseableDirectory(java.lang.String directory, DirectoryRenderer renderer)
-
getFromBrowseableDirectory
public static Route getFromBrowseableDirectory(java.lang.String directory, ContentTypeResolver resolver)
-
getFromBrowseableDirectory
public static Route getFromBrowseableDirectory(java.lang.String directory)
-
getFromBrowseableDirectories
public static Route getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, DirectoryRenderer renderer, ContentTypeResolver resolver)
-
getFromBrowseableDirectories
public static Route getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, DirectoryRenderer renderer)
-
getFromBrowseableDirectories
public static Route getFromBrowseableDirectories(java.lang.Iterable<java.lang.String> directories, ContentTypeResolver resolver)
-
getFromBrowseableDirectories
public static Route getFromBrowseableDirectories(scala.collection.immutable.Seq<java.lang.String> directories)
-
listDirectoryContents
public static Route listDirectoryContents(scala.collection.immutable.Seq<java.lang.String> directories)
-
listDirectoryContents
public static Route listDirectoryContents(DirectoryRenderer directoryRenderer, scala.collection.immutable.Seq<java.lang.String> directories)
-
defaultDirectoryRenderer
public static DirectoryRenderer defaultDirectoryRenderer()
-
defaultContentTypeResolver
public static ContentTypeResolver defaultContentTypeResolver()
-
getFromBrowseableDirectories
public static Route getFromBrowseableDirectories(java.lang.String... directories)
-
listDirectoryContents
public static Route listDirectoryContents(java.lang.String... directories)
-
listDirectoryContents
public static Route listDirectoryContents(DirectoryRenderer directoryRenderer, java.lang.String... directories)
-
storeUploadedFile
public static Route storeUploadedFile(java.lang.String fieldName, java.util.function.Function<FileInfo,java.io.File> destFn, java.util.function.BiFunction<FileInfo,java.io.File,Route> inner)
-
storeUploadedFiles
public static Route storeUploadedFiles(java.lang.String fieldName, java.util.function.Function<FileInfo,java.io.File> destFn, java.util.function.Function<java.util.List<java.util.Map.Entry<FileInfo,java.io.File>>,Route> inner)
-
fileUpload
public static Route fileUpload(java.lang.String fieldName, java.util.function.BiFunction<FileInfo,akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>,Route> inner)
-
fileUploadAll
public static Route fileUploadAll(java.lang.String fieldName, java.util.function.Function<java.util.List<java.util.Map.Entry<FileInfo,akka.stream.javadsl.Source<akka.util.ByteString,java.lang.Object>>>,Route> inner)
-
formField
public static Route formField(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
-
formFieldOptional
public static Route formFieldOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
-
formFieldList
public static Route formFieldList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
-
formField
public static <T> Route formField(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
-
formFieldOptional
public static <T> Route formFieldOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
formFieldList
public static <T> Route formFieldList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
-
formFieldMap
public static Route formFieldMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
-
formFieldMultiMap
public static Route formFieldMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
-
formFieldList
public static Route formFieldList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
-
onComplete
public static <T> RouteAdapter onComplete(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<scala.util.Try<T>,Route> inner)
-
onComplete
public static <T> RouteAdapter onComplete(java.util.concurrent.CompletionStage<T> cs, java.util.function.Function<scala.util.Try<T>,Route> inner)
-
onCompleteWithBreaker
public static <T> RouteAdapter onCompleteWithBreaker(akka.pattern.CircuitBreaker breaker, java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<scala.util.Try<T>,Route> inner)
-
onSuccess
public static <T> RouteAdapter onSuccess(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, java.util.function.Function<T,Route> inner)
-
onSuccess
public static <T> RouteAdapter onSuccess(java.util.concurrent.CompletionStage<T> cs, java.util.function.Function<T,Route> inner)
-
completeOrRecoverWith
public static <T> Route completeOrRecoverWith(java.util.function.Supplier<java.util.concurrent.CompletionStage<T>> f, Marshaller<T,RequestEntity> marshaller, java.util.function.Function<java.lang.Throwable,Route> inner)
-
checkSameOrigin
public static Route checkSameOrigin(HttpOriginRange allowed, java.util.function.Supplier<Route> inner)
-
headerValue
public static <T> RouteAdapter headerValue(java.util.function.Function<HttpHeader,java.util.Optional<T>> f, java.util.function.Function<T,Route> inner)
-
headerValuePF
public static <T> RouteAdapter headerValuePF(scala.PartialFunction<HttpHeader,T> pf, java.util.function.Function<T,Route> inner)
-
headerValueByName
public static RouteAdapter headerValueByName(java.lang.String headerName, java.util.function.Function<java.lang.String,Route> inner)
-
headerValueByType
public static <T extends HttpHeader> RouteAdapter headerValueByType(java.lang.Class<T> t, java.util.function.Function<T,Route> inner)
-
optionalHeaderValue
public static <T> RouteAdapter optionalHeaderValue(java.util.function.Function<HttpHeader,java.util.Optional<T>> f, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
optionalHeaderValuePF
public static <T> RouteAdapter optionalHeaderValuePF(scala.PartialFunction<HttpHeader,T> pf, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
optionalHeaderValueByName
public static RouteAdapter optionalHeaderValueByName(java.lang.String headerName, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
-
optionalHeaderValueByType
public static <T extends HttpHeader> RouteAdapter optionalHeaderValueByType(java.lang.Class<T> t, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
attribute
public static <T> RouteAdapter attribute(AttributeKey<T> key, java.util.function.Function<T,Route> inner)
-
optionalAttribute
public static <T> RouteAdapter optionalAttribute(AttributeKey<T> key, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
extractHost
public static Route extractHost(java.util.function.Function<java.lang.String,Route> inner)
-
host
public static Route host(java.lang.Iterable<java.lang.String> hostNames, java.util.function.Supplier<Route> inner)
-
host
public static Route host(java.util.function.Predicate<java.lang.String> predicate, java.util.function.Supplier<Route> inner)
-
host
public static Route host(java.util.regex.Pattern regex, java.util.function.Function<java.lang.String,Route> inner)
-
request
public static <T> Route request(Unmarshaller<? super HttpRequest,T> unmarshaller, java.util.function.Function<T,Route> inner)
-
entity
public static <T> Route entity(Unmarshaller<? super HttpEntity,T> unmarshaller, java.util.function.Function<T,Route> inner)
-
completeWith
public static <T> Route completeWith(Marshaller<T,? extends HttpResponse> marshaller, java.util.function.Consumer<java.util.function.Consumer<T>> inner)
-
handleWith
public static <T,R> Route handleWith(Unmarshaller<? super HttpEntity,T> unmarshaller, Marshaller<R,? extends HttpResponse> marshaller, java.util.function.Function<T,R> inner)
-
extractMethod
public static RouteAdapter extractMethod(java.util.function.Function<HttpMethod,Route> inner)
-
method
public static Route method(HttpMethod method, java.util.function.Supplier<Route> inner)
-
overrideMethodWithParameter
public static Route overrideMethodWithParameter(java.lang.String paramName, java.util.function.Supplier<Route> inner)
-
validate
public static Route validate(java.util.function.BooleanSupplier check, java.lang.String errorMsg, java.util.function.Supplier<Route> inner)
-
extractClientIP
public static Route extractClientIP(java.util.function.Function<RemoteAddress,Route> inner)
-
requestEntityEmpty
public static Route requestEntityEmpty(java.util.function.Supplier<Route> inner)
-
requestEntityPresent
public static Route requestEntityPresent(java.util.function.Supplier<Route> inner)
-
rejectEmptyResponse
public static Route rejectEmptyResponse(java.util.function.Supplier<Route> inner)
-
withSizeLimit
public static Route withSizeLimit(long maxBytes, java.util.function.Supplier<Route> inner)
-
selectPreferredLanguage
public static Route selectPreferredLanguage(java.lang.Iterable<Language> languages, java.util.function.Function<Language,Route> inner)
-
parameter
public static Route parameter(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
-
parameterOptional
public static Route parameterOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
-
parameterRequiredValue
public static <T> Route parameterRequiredValue(Unmarshaller<java.lang.String,T> t, T requiredValue, java.lang.String name, java.util.function.Supplier<Route> inner)
-
parameterList
public static Route parameterList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
-
parameter
public static <T> Route parameter(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
-
parameterOptional
public static <T> Route parameterOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
parameterOrDefault
public static <T> Route parameterOrDefault(Unmarshaller<java.lang.String,T> t, T defaultValue, java.lang.String name, java.util.function.Function<T,Route> inner)
-
parameterList
public static <T> Route parameterList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
-
parameterMap
public static Route parameterMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
-
parameterMultiMap
public static Route parameterMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
-
parameterList
public static Route parameterList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
-
pathEndOrSingleSlash
public static Route pathEndOrSingleSlash(java.util.function.Supplier<Route> inner)
-
path
public static Route path(PathMatcher0 p, java.util.function.Supplier<Route> inner)
-
path
public static <T> Route path(PathMatcher1<T> p, java.util.function.Function<T,Route> inner)
-
path
public static <T1,T2> Route path(PathMatcher2<T1,T2> p, java.util.function.BiFunction<T1,T2,Route> inner)
-
pathPrefix
public static Route pathPrefix(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
pathPrefix
public static Route pathPrefix(java.util.function.Function<java.lang.String,Route> inner)
-
pathPrefix
public static Route pathPrefix(PathMatcher0 p, java.util.function.Supplier<Route> inner)
-
pathPrefix
public static <T> Route pathPrefix(PathMatcher1<T> p, java.util.function.Function<T,Route> inner)
-
pathPrefix
public static <T1,T2> Route pathPrefix(PathMatcher2<T1,T2> p, java.util.function.BiFunction<T1,T2,Route> inner)
-
rawPathPrefix
public static Route rawPathPrefix(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
rawPathPrefix
public static Route rawPathPrefix(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
-
rawPathPrefix
public static <T1> Route rawPathPrefix(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
-
rawPathPrefix
public static <T1,T2> Route rawPathPrefix(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
-
pathPrefixTest
public static Route pathPrefixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
pathPrefixTest
public static Route pathPrefixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
-
pathPrefixTest
public static <T1> Route pathPrefixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
-
pathPrefixTest
public static <T1,T2> Route pathPrefixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
-
rawPathPrefixTest
public static Route rawPathPrefixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
rawPathPrefixTest
public static Route rawPathPrefixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
-
rawPathPrefixTest
public static <T1> Route rawPathPrefixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
-
rawPathPrefixTest
public static <T1,T2> Route rawPathPrefixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
-
pathSuffix
public static Route pathSuffix(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
pathSuffix
public static Route pathSuffix(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
-
pathSuffix
public static <T1> Route pathSuffix(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
-
pathSuffix
public static <T1,T2> Route pathSuffix(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
-
pathSuffixTest
public static Route pathSuffixTest(java.lang.String segment, java.util.function.Supplier<Route> inner)
-
pathSuffixTest
public static Route pathSuffixTest(PathMatcher0 pm, java.util.function.Supplier<Route> inner)
-
pathSuffixTest
public static <T1> Route pathSuffixTest(PathMatcher1<T1> pm, java.util.function.Function<T1,Route> inner)
-
pathSuffixTest
public static <T1,T2> Route pathSuffixTest(PathMatcher2<T1,T2> pm, java.util.function.BiFunction<T1,T2,Route> inner)
-
redirectToTrailingSlashIfMissing
public static Route redirectToTrailingSlashIfMissing(StatusCode redirectionType, java.util.function.Supplier<Route> inner)
-
redirectToNoTrailingSlashIfPresent
public static Route redirectToNoTrailingSlashIfPresent(StatusCode redirectionType, java.util.function.Supplier<Route> inner)
-
pathPrefix
public static <T> Route pathPrefix(Unmarshaller<java.lang.String,T> t, java.util.function.Function<T,Route> inner)
-
path
public static <T> Route path(Unmarshaller<java.lang.String,T> t, java.util.function.Function<T,Route> inner)
-
ignoreTrailingSlash
public static Route ignoreTrailingSlash(java.util.function.Supplier<Route> inner)
-
respondWithHeader
public static Route respondWithHeader(HttpHeader responseHeader, java.util.function.Supplier<Route> inner)
-
respondWithDefaultHeader
public static Route respondWithDefaultHeader(HttpHeader responseHeader, java.util.function.Supplier<Route> inner)
-
respondWithHeaders
public static Route respondWithHeaders(java.lang.Iterable<HttpHeader> responseHeaders, java.util.function.Supplier<Route> inner)
-
respondWithDefaultHeaders
public static Route respondWithDefaultHeaders(java.lang.Iterable<HttpHeader> responseHeaders, java.util.function.Supplier<Route> inner)
-
reject
public static Route reject(Rejection rejection, scala.collection.immutable.Seq<Rejection> rejections)
-
reject
public static Route reject()
-
redirect
public static Route redirect(Uri uri, StatusCode redirectionType)
-
failWith
public static Route failWith(java.lang.Throwable error)
-
complete
public static Route complete(java.lang.String body)
-
complete
public static Route complete(HttpResponse response)
-
complete
public static Route complete(StatusCode status)
-
complete
public static <T> RouteAdapter complete(T value, Marshaller<T,HttpResponse> marshaller)
-
complete
public static <T> RouteAdapter complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, T value, Marshaller<T,RequestEntity> marshaller)
-
complete
public static RouteAdapter complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, ResponseEntity entity)
-
complete
public static RouteAdapter complete(StatusCode status, java.lang.Iterable<HttpHeader> headers, RequestEntity entity)
-
complete
public static <T> RouteAdapter complete(StatusCode status, T value, Marshaller<T,RequestEntity> marshaller)
-
complete
public static RouteAdapter complete(StatusCode status, ResponseEntity entity)
-
complete
public static RouteAdapter complete(StatusCode status, RequestEntity entity)
-
complete
public static RouteAdapter complete(StatusCode status, java.lang.String entity)
-
complete
public static <T> RouteAdapter complete(java.lang.Iterable<HttpHeader> headers, T value, Marshaller<T,RequestEntity> marshaller)
-
complete
public static RouteAdapter complete(java.lang.Iterable<HttpHeader> headers, ResponseEntity entity)
-
complete
public static RouteAdapter complete(java.lang.Iterable<HttpHeader> headers, RequestEntity entity)
-
completeOK
public static <T> RouteAdapter completeOK(T value, Marshaller<T,RequestEntity> marshaller)
-
complete
public static RouteAdapter complete(ResponseEntity entity)
-
complete
public static RouteAdapter complete(RequestEntity entity)
-
completeWithFutureResponse
public static RouteAdapter completeWithFutureResponse(scala.concurrent.Future<HttpResponse> value)
-
completeOKWithFutureString
public static RouteAdapter completeOKWithFutureString(scala.concurrent.Future<java.lang.String> value)
-
completeWithFutureStatus
public static Route completeWithFutureStatus(scala.concurrent.Future<StatusCode> status)
-
completeOKWithFuture
public static <T> RouteAdapter completeOKWithFuture(scala.concurrent.Future<T> value, Marshaller<T,RequestEntity> marshaller)
-
completeWithFuture
public static <T> RouteAdapter completeWithFuture(scala.concurrent.Future<T> value, Marshaller<T,HttpResponse> marshaller)
-
completeWithFuture
public static RouteAdapter completeWithFuture(java.util.concurrent.CompletionStage<HttpResponse> value)
-
completeOKWithFuture
public static RouteAdapter completeOKWithFuture(java.util.concurrent.CompletionStage<RequestEntity> value)
-
completeOKWithFutureString
public static RouteAdapter completeOKWithFutureString(java.util.concurrent.CompletionStage<java.lang.String> value)
-
completeWithFutureStatus
public static Route completeWithFutureStatus(java.util.concurrent.CompletionStage<StatusCode> status)
-
completeOKWithFuture
public static <T> RouteAdapter completeOKWithFuture(java.util.concurrent.CompletionStage<T> value, Marshaller<T,RequestEntity> marshaller)
-
completeWithFuture
public static <T> RouteAdapter completeWithFuture(java.util.concurrent.CompletionStage<T> value, Marshaller<T,HttpResponse> marshaller)
-
handle
public static Route handle(akka.japi.function.Function<HttpRequest,java.util.concurrent.CompletionStage<HttpResponse>> handler)
-
handleSync
public static Route handleSync(akka.japi.function.Function<HttpRequest,HttpResponse> handler)
-
extractScheme
public static Route extractScheme(java.util.function.Function<java.lang.String,Route> inner)
-
extractCredentials
public static Route extractCredentials(java.util.function.Function<java.util.Optional<HttpCredentials>,Route> inner)
-
authenticateBasic
public static <T> Route authenticateBasic(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateBasicPF
public static <T> Route authenticateBasicPF(java.lang.String realm, scala.PartialFunction<java.util.Optional<SecurityDirectives.ProvidedCredentials>,T> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateBasicPFAsync
public static <T> Route authenticateBasicPFAsync(java.lang.String realm, scala.PartialFunction<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<T>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateBasicOptional
public static <T> Route authenticateBasicOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
authenticateBasicAsync
public static <T> Route authenticateBasicAsync(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateBasicAsyncOptional
public static <T> Route authenticateBasicAsyncOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
authenticateOAuth2
public static <T> Route authenticateOAuth2(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateOAuth2Optional
public static <T> Route authenticateOAuth2Optional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.Optional<T>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
authenticateOAuth2Async
public static <T> Route authenticateOAuth2Async(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateOAuth2AsyncOptional
public static <T> Route authenticateOAuth2AsyncOptional(java.lang.String realm, java.util.function.Function<java.util.Optional<SecurityDirectives.ProvidedCredentials>,java.util.concurrent.CompletionStage<java.util.Optional<T>>> authenticator, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
authenticateOrRejectWithChallenge
public static <T> Route authenticateOrRejectWithChallenge(java.util.function.Function<java.util.Optional<HttpCredentials>,java.util.concurrent.CompletionStage<scala.util.Either<HttpChallenge,T>>> authenticator, java.util.function.Function<T,Route> inner)
-
authenticateOrRejectWithChallenge
public static <C extends HttpCredentials,T> Route authenticateOrRejectWithChallenge(java.lang.Class<C> c, java.util.function.Function<java.util.Optional<C>,java.util.concurrent.CompletionStage<scala.util.Either<HttpChallenge,T>>> authenticator, java.util.function.Function<T,Route> inner)
-
authorize
public static Route authorize(java.util.function.Supplier<java.lang.Object> check, java.util.function.Supplier<Route> inner)
-
authorizeWithRequestContext
public static Route authorizeWithRequestContext(akka.japi.function.Function<RequestContext,java.lang.Object> check, java.util.function.Supplier<Route> inner)
-
authorizeAsync
public static Route authorizeAsync(java.util.function.Supplier<java.util.concurrent.CompletionStage<java.lang.Object>> check, java.util.function.Supplier<Route> inner)
-
authorizeAsyncWithRequestContext
public static Route authorizeAsyncWithRequestContext(akka.japi.function.Function<RequestContext,java.util.concurrent.CompletionStage<java.lang.Object>> check, java.util.function.Supplier<Route> inner)
-
extractUpgradeToWebSocket
public static Route extractUpgradeToWebSocket(java.util.function.Function<UpgradeToWebSocket,Route> inner)
-
extractWebSocketUpgrade
public static Route extractWebSocketUpgrade(java.util.function.Function<WebSocketUpgrade,Route> inner)
-
extractOfferedWsProtocols
public static Route extractOfferedWsProtocols(java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
-
handleWebSocketMessages
public static <T> Route handleWebSocketMessages(akka.stream.javadsl.Flow<Message,Message,T> handler)
-
handleWebSocketMessagesForProtocol
public static <T> Route handleWebSocketMessagesForProtocol(akka.stream.javadsl.Flow<Message,Message,T> handler, java.lang.String subprotocol)
-
handleWebSocketMessagesForOptionalProtocol
public static <T> Route handleWebSocketMessagesForOptionalProtocol(akka.stream.javadsl.Flow<Message,Message,T> handler, java.util.Optional<java.lang.String> subprotocol)
-
extractRequestTimeout
public static RouteAdapter extractRequestTimeout(java.util.function.Function<scala.concurrent.duration.Duration,Route> inner)
-
withRequestTimeout
public static RouteAdapter withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Supplier<Route> inner)
-
withRequestTimeout
public static RouteAdapter withRequestTimeout(scala.concurrent.duration.Duration timeout, java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
-
withoutRequestTimeout
public static RouteAdapter withoutRequestTimeout(java.util.function.Supplier<Route> inner)
-
withRequestTimeoutResponse
public static RouteAdapter withRequestTimeoutResponse(java.util.function.Function<HttpRequest,HttpResponse> timeoutHandler, java.util.function.Supplier<Route> inner)
-
entityAsSourceOf
public <T> Route entityAsSourceOf(Unmarshaller<akka.util.ByteString,T> um, EntityStreamingSupport support, java.util.function.Function<akka.stream.javadsl.Source<T,akka.NotUsed>,Route> inner)
-
completeWithSource
public <T,M> Route completeWithSource(akka.stream.javadsl.Source<T,M> source, Marshaller<T,akka.util.ByteString> m, EntityStreamingSupport support)
-
completeOKWithSource
public <T,M> Route completeOKWithSource(akka.stream.javadsl.Source<T,M> source, Marshaller<T,RequestEntity> m, EntityStreamingSupport support)
-
-