Class DebuggingDirectives

    • Constructor Detail

      • DebuggingDirectives

        public DebuggingDirectives()
    • 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.Logging
        marker - (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 response
        showRejection - Function invoked when the route yielded a rejection
        inner - (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 response
        showRejection - Function invoked when the route yielded a rejection
        inner - (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.Logging
        marker - (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 response
        showRejection - Function invoked when the route yielded a rejection
        inner - (undocumented)
        Returns:
        (undocumented)