Class ExecutionDirectives
- 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
-
- Direct Known Subclasses:
FileAndResourceDirectives
public abstract class ExecutionDirectives extends DebuggingDirectives
-
-
Constructor Summary
Constructors Constructor Description ExecutionDirectives()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteAdapter
handleExceptions(ExceptionHandler handler, java.util.function.Supplier<Route> inner)
Transforms exceptions thrown during evaluation of its inner route using the givenExceptionHandler
.RouteAdapter
handleRejections(RejectionHandler handler, java.util.function.Supplier<Route> inner)
Transforms rejections produced by its inner route using the givenRejectionHandler
.-
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
-
handleExceptions
public RouteAdapter handleExceptions(ExceptionHandler handler, java.util.function.Supplier<Route> inner)
Transforms exceptions thrown during evaluation of its inner route using the givenExceptionHandler
.- Parameters:
handler
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
handleRejections
public RouteAdapter handleRejections(RejectionHandler handler, java.util.function.Supplier<Route> inner)
Transforms rejections produced by its inner route using the givenRejectionHandler
.- Parameters:
handler
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
-