Class RejectionHandler
java.lang.Object
org.apache.pekko.http.javadsl.server.RejectionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasScala()static RejectionHandlerMap any HTTP response which was returned by this RejectionHandler to a different one before rendering it.static RejectionHandlerBuilderCreates a newRejectionHandlerbuilder.seal()"Seals" this handler by attaching a default handler as fallback if necessary.withFallback(RejectionHandler fallback) Creates a newRejectionHandlerwhich uses the given one as fallback for this one.
-
Constructor Details
-
RejectionHandler
-
-
Method Details
-
newBuilder
Creates a newRejectionHandlerbuilder.- Returns:
- (undocumented)
-
defaultHandler
-
asScala
-
withFallback
Creates a newRejectionHandlerwhich uses the given one as fallback for this one.- Parameters:
fallback- (undocumented)- Returns:
- (undocumented)
-
seal
"Seals" this handler by attaching a default handler as fallback if necessary.- Returns:
- (undocumented)
-
mapRejectionResponse
Map any HTTP response which was returned by this RejectionHandler to a different one before rendering it.
-