Package akka.http.javadsl.server
Class RejectionHandler
- java.lang.Object
-
- akka.http.javadsl.server.RejectionHandler
-
public final class RejectionHandler extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RejectionHandler(RejectionHandler asScala)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RejectionHandlerasScala()static RejectionHandlerdefaultHandler()RejectionHandlermapRejectionResponse(java.util.function.UnaryOperator<HttpResponse> map)Map any HTTP response which was returned by this RejectionHandler to a different one before rendering it.static RejectionHandlerBuildernewBuilder()Creates a newRejectionHandlerbuilder.RejectionHandlerseal()"Seals" this handler by attaching a default handler as fallback if necessary.RejectionHandlerwithFallback(RejectionHandler fallback)Creates a newRejectionHandlerwhich uses the given one as fallback for this one.
-
-
-
Constructor Detail
-
RejectionHandler
public RejectionHandler(RejectionHandler asScala)
-
-
Method Detail
-
newBuilder
public static RejectionHandlerBuilder newBuilder()
Creates a newRejectionHandlerbuilder.- Returns:
- (undocumented)
-
defaultHandler
public static RejectionHandler defaultHandler()
-
asScala
public RejectionHandler asScala()
-
withFallback
public RejectionHandler withFallback(RejectionHandler fallback)
Creates a newRejectionHandlerwhich uses the given one as fallback for this one.- Parameters:
fallback- (undocumented)- Returns:
- (undocumented)
-
seal
public RejectionHandler seal()
"Seals" this handler by attaching a default handler as fallback if necessary.- Returns:
- (undocumented)
-
mapRejectionResponse
public RejectionHandler mapRejectionResponse(java.util.function.UnaryOperator<HttpResponse> map)
Map any HTTP response which was returned by this RejectionHandler to a different one before rendering it.
-
-