Packages

c

akka.http.javadsl.server

RejectionHandlerBuilder

class RejectionHandlerBuilder extends AnyRef

Source
RejectionHandler.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RejectionHandlerBuilder
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RejectionHandlerBuilder(asScala: Builder)

Value Members

  1. def build: RejectionHandler
  2. def handle[T <: Rejection](t: Class[T], handler: Function[T, Route]): RejectionHandlerBuilder

    Handles a single Rejection with the given function.

  3. def handleAll[T <: Rejection](t: Class[T], handler: Function[List[T], Route]): RejectionHandlerBuilder

    Handles several Rejections of the same type at the same time.

    Handles several Rejections of the same type at the same time. The list passed to the given function is guaranteed to be non-empty.

  4. def handleCircuitBreakerOpenRejection(handler: Function[CircuitBreakerOpenRejection, Route]): RejectionHandlerBuilder

    Convenience method for handling rejections created by created by the onCompleteWithBreaker directive.

    Convenience method for handling rejections created by created by the onCompleteWithBreaker directive. Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.

    Use to customise the error response being written instead of the default akka.http.javadsl.model.StatusCodes.SERVICE_UNAVAILABLE response.

  5. def handleNotFound(route: Route): RejectionHandlerBuilder

    Handles the special "not found" case using the given Route.