RejectionHandlerBuilder

org.apache.pekko.http.javadsl.server.RejectionHandlerBuilder

Attributes

Source
RejectionHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def handle[T <: Rejection](t: Class[T], handler: Function[T, Route]): RejectionHandlerBuilder

Handles a single Rejection with the given function.

Handles a single Rejection with the given function.

Attributes

Source
RejectionHandler.scala

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

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

Attributes

Source
RejectionHandler.scala

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.

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 pekko.http.javadsl.model.StatusCodes.SERVICE_UNAVAILABLE response.

Attributes

Source
RejectionHandler.scala

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

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

Attributes

Source
RejectionHandler.scala