Class DebuggingDirectives
- 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
-
- Direct Known Subclasses:
ExecutionDirectives
public abstract class DebuggingDirectives extends CookieDirectives
-
-
Constructor Summary
Constructors Constructor Description DebuggingDirectives()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Route
logRequest(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.Route
logRequest(java.lang.String marker, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.Route
logRequest(java.util.function.Function<HttpRequest,LogEntry> show, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.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)
Produces a log entry for every request/response combination.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)
Optionally produces a log entry for every request/response combination.Route
logResult(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
Produces a log entry for every route result.Route
logResult(java.lang.String marker, java.util.function.Supplier<Route> inner)
Produces a log entry for every route result.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)
Produces a log entry for every route result.-
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
-
logRequest
public Route logRequest(java.lang.String marker, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.- Parameters:
marker
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
logRequest
public Route logRequest(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.- Parameters:
level
- One of the log levels defined in akka.event.Loggingmarker
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
logRequest
public Route logRequest(java.util.function.Function<HttpRequest,LogEntry> show, java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.- Parameters:
show
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
logRequestResult
public 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)
Produces a log entry for every request/response combination.- Parameters:
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)- Returns:
- (undocumented)
-
logRequestResultOptional
public 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)
Optionally produces a log entry for every request/response combination.- Parameters:
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)- Returns:
- (undocumented)
-
logResult
public Route logResult(java.lang.String marker, java.util.function.Supplier<Route> inner)
Produces a log entry for every route result.- Parameters:
marker
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
logResult
public Route logResult(java.lang.String marker, akka.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
Produces a log entry for every route result.- Parameters:
level
- One of the log levels defined in akka.event.Loggingmarker
- (undocumented)inner
- (undocumented)- Returns:
- (undocumented)
-
logResult
public 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)
Produces a log entry for every route result.- Parameters:
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)- Returns:
- (undocumented)
-
-