Interface RejectionHandler

  • All Superinterfaces:
    scala.Function1<scala.collection.immutable.Seq<Rejection>,​scala.Option<scala.Function1<RequestContext,​scala.concurrent.Future<RouteResult>>>>

    public interface RejectionHandler
    extends scala.Function1<scala.collection.immutable.Seq<Rejection>,​scala.Option<scala.Function1<RequestContext,​scala.concurrent.Future<RouteResult>>>>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  RejectionHandler.Builder  
      • Nested classes/interfaces inherited from interface scala.Function1

        scala.Function1.UnliftOps<A extends java.lang.Object,​B extends java.lang.Object>, scala.Function1.UnliftOps$
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RejectionHandler mapRejectionResponse​(scala.Function1<HttpResponse,​HttpResponse> map)
      Map any HTTP response which was returned by this RejectionHandler to a different one before rendering it.
      RejectionHandler seal()
      "Seals" this handler by attaching a default handler as fallback if necessary.
      RejectionHandler withFallback​(RejectionHandler that)
      Creates a new RejectionHandler which uses the given one as fallback for this one.
      • Methods inherited from interface scala.Function1

        andThen, apply, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, toString
    • Method Detail

      • mapRejectionResponse

        RejectionHandler mapRejectionResponse​(scala.Function1<HttpResponse,​HttpResponse> map)
        Map any HTTP response which was returned by this RejectionHandler to a different one before rendering it.
      • seal

        RejectionHandler seal()
        "Seals" this handler by attaching a default handler as fallback if necessary.
        Returns:
        (undocumented)