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 RejectionHandler
asScala()
static RejectionHandler
defaultHandler()
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.static RejectionHandlerBuilder
newBuilder()
Creates a newRejectionHandler
builder.RejectionHandler
seal()
"Seals" this handler by attaching a default handler as fallback if necessary.RejectionHandler
withFallback(RejectionHandler fallback)
Creates a newRejectionHandler
which 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 newRejectionHandler
builder.- Returns:
- (undocumented)
-
defaultHandler
public static RejectionHandler defaultHandler()
-
asScala
public RejectionHandler asScala()
-
withFallback
public RejectionHandler withFallback(RejectionHandler fallback)
Creates a newRejectionHandler
which 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.
-
-