public abstract class DebuggingDirectives extends CookieDirectives
Constructor and Description |
---|
DebuggingDirectives() |
Modifier and Type | Method and Description |
---|---|
Route |
logRequest(java.util.function.Function<HttpRequest,LogEntry> show,
java.util.function.Supplier<Route> inner)
Produces a log entry for every incoming request.
|
Route |
logRequest(java.lang.String marker,
org.apache.pekko.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.
|
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.
|
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.
|
Route |
logResult(java.lang.String marker,
org.apache.pekko.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.
|
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
conditional, conditional, conditional, conditional
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
public Route logRequest(java.lang.String marker, java.util.function.Supplier<Route> inner)
marker
- (undocumented)inner
- (undocumented)public Route logRequest(java.lang.String marker, org.apache.pekko.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
level
- One of the log levels defined in pekko.event.Loggingmarker
- (undocumented)inner
- (undocumented)public Route logRequest(java.util.function.Function<HttpRequest,LogEntry> show, java.util.function.Supplier<Route> inner)
show
- (undocumented)inner
- (undocumented)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)
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)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)
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)public Route logResult(java.lang.String marker, java.util.function.Supplier<Route> inner)
marker
- (undocumented)inner
- (undocumented)public Route logResult(java.lang.String marker, org.apache.pekko.event.Logging.LogLevel level, java.util.function.Supplier<Route> inner)
level
- One of the log levels defined in pekko.event.Loggingmarker
- (undocumented)inner
- (undocumented)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)
showSuccess
- Function invoked when the route result was successful and yielded an HTTP responseshowRejection
- Function invoked when the route yielded a rejectioninner
- (undocumented)