Package akka.http.javadsl.server
Class Rejections
- java.lang.Object
-
- akka.http.javadsl.server.Rejections
-
public class Rejections extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Rejections()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticationFailedRejection
authenticationCredentialsMissing(HttpChallenge challenge)
static AuthenticationFailedRejection
authenticationCredentialsRejected(HttpChallenge challenge)
static AuthorizationFailedRejection$
authorizationFailed()
static ExpectedWebSocketRequestRejection$
expectedWebSocketRequest()
static InvalidRequiredValueForQueryParamRejection
invalidRequiredValueForQueryParam(java.lang.String parameterName, java.lang.String requiredValue, java.lang.String actualValue)
static MalformedFormFieldRejection
malformedFormField(java.lang.String fieldName, java.lang.String errorMsg)
static MalformedFormFieldRejection
malformedFormField(java.lang.String fieldName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
static MalformedHeaderRejection
malformedHeader(java.lang.String headerName, java.lang.String errorMsg)
static MalformedHeaderRejection
malformedHeader(java.lang.String headerName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
static MalformedQueryParamRejection
malformedQueryParam(java.lang.String parameterName, java.lang.String errorMsg)
static MalformedQueryParamRejection
malformedQueryParam(java.lang.String parameterName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
static MalformedRequestContentRejection
malformedRequestContent(java.lang.String message, java.lang.Throwable cause)
static MethodRejection
method(HttpMethod supported)
static MissingCookieRejection
missingCookie(java.lang.String cookieName)
static MissingFormFieldRejection
missingFormField(java.lang.String fieldName)
static MissingHeaderRejection
missingHeader(java.lang.String headerName)
static MissingQueryParamRejection
missingQueryParam(java.lang.String parameterName)
static RejectionError
rejectionError(Rejection rejection)
static RequestEntityExpectedRejection$
requestEntityExpected()
static SchemeRejection
scheme(java.lang.String supported)
static TooManyRangesRejection
tooManyRanges(int maxRanges)
static TransformationRejection
transformationRejection(java.util.function.Function<java.util.List<Rejection>,java.util.List<Rejection>> f)
static UnacceptedResponseContentTypeRejection
unacceptedResponseContentType(java.lang.Iterable<ContentType> supportedContentTypes, java.lang.Iterable<MediaType> supportedMediaTypes)
static UnacceptedResponseEncodingRejection
unacceptedResponseEncoding(HttpEncoding supported)
static UnacceptedResponseEncodingRejection
unacceptedResponseEncoding(java.lang.Iterable<HttpEncoding> supported)
static UnsatisfiableRangeRejection
unsatisfiableRange(java.lang.Iterable<ByteRange> unsatisfiableRanges, long actualEntityLength)
static UnsupportedRequestContentTypeRejection
unsupportedRequestContentType(java.lang.Iterable<MediaType> supported)
static UnsupportedRequestContentTypeRejection
unsupportedRequestContentType(java.lang.Iterable<MediaType> supported, java.util.Optional<ContentType> contentType)
static UnsupportedRequestEncodingRejection
unsupportedRequestEncoding(HttpEncoding supported)
static ValidationRejection
validationRejection(java.lang.String message)
static ValidationRejection
validationRejection(java.lang.String message, java.util.Optional<java.lang.Throwable> cause)
-
-
-
Method Detail
-
method
public static MethodRejection method(HttpMethod supported)
-
scheme
public static SchemeRejection scheme(java.lang.String supported)
-
missingQueryParam
public static MissingQueryParamRejection missingQueryParam(java.lang.String parameterName)
-
invalidRequiredValueForQueryParam
public static InvalidRequiredValueForQueryParamRejection invalidRequiredValueForQueryParam(java.lang.String parameterName, java.lang.String requiredValue, java.lang.String actualValue)
-
malformedQueryParam
public static MalformedQueryParamRejection malformedQueryParam(java.lang.String parameterName, java.lang.String errorMsg)
-
malformedQueryParam
public static MalformedQueryParamRejection malformedQueryParam(java.lang.String parameterName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
-
missingFormField
public static MissingFormFieldRejection missingFormField(java.lang.String fieldName)
-
malformedFormField
public static MalformedFormFieldRejection malformedFormField(java.lang.String fieldName, java.lang.String errorMsg)
-
malformedFormField
public static MalformedFormFieldRejection malformedFormField(java.lang.String fieldName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
-
missingHeader
public static MissingHeaderRejection missingHeader(java.lang.String headerName)
-
malformedHeader
public static MalformedHeaderRejection malformedHeader(java.lang.String headerName, java.lang.String errorMsg)
-
malformedHeader
public static MalformedHeaderRejection malformedHeader(java.lang.String headerName, java.lang.String errorMsg, java.util.Optional<java.lang.Throwable> cause)
-
unsupportedRequestContentType
public static UnsupportedRequestContentTypeRejection unsupportedRequestContentType(java.lang.Iterable<MediaType> supported, java.util.Optional<ContentType> contentType)
-
unsupportedRequestContentType
public static UnsupportedRequestContentTypeRejection unsupportedRequestContentType(java.lang.Iterable<MediaType> supported)
-
unsupportedRequestEncoding
public static UnsupportedRequestEncodingRejection unsupportedRequestEncoding(HttpEncoding supported)
-
unsatisfiableRange
public static UnsatisfiableRangeRejection unsatisfiableRange(java.lang.Iterable<ByteRange> unsatisfiableRanges, long actualEntityLength)
-
tooManyRanges
public static TooManyRangesRejection tooManyRanges(int maxRanges)
-
malformedRequestContent
public static MalformedRequestContentRejection malformedRequestContent(java.lang.String message, java.lang.Throwable cause)
-
requestEntityExpected
public static RequestEntityExpectedRejection$ requestEntityExpected()
-
unacceptedResponseContentType
public static UnacceptedResponseContentTypeRejection unacceptedResponseContentType(java.lang.Iterable<ContentType> supportedContentTypes, java.lang.Iterable<MediaType> supportedMediaTypes)
-
unacceptedResponseEncoding
public static UnacceptedResponseEncodingRejection unacceptedResponseEncoding(HttpEncoding supported)
-
unacceptedResponseEncoding
public static UnacceptedResponseEncodingRejection unacceptedResponseEncoding(java.lang.Iterable<HttpEncoding> supported)
-
authenticationCredentialsMissing
public static AuthenticationFailedRejection authenticationCredentialsMissing(HttpChallenge challenge)
-
authenticationCredentialsRejected
public static AuthenticationFailedRejection authenticationCredentialsRejected(HttpChallenge challenge)
-
authorizationFailed
public static AuthorizationFailedRejection$ authorizationFailed()
-
missingCookie
public static MissingCookieRejection missingCookie(java.lang.String cookieName)
-
expectedWebSocketRequest
public static ExpectedWebSocketRequestRejection$ expectedWebSocketRequest()
-
validationRejection
public static ValidationRejection validationRejection(java.lang.String message)
-
validationRejection
public static ValidationRejection validationRejection(java.lang.String message, java.util.Optional<java.lang.Throwable> cause)
-
transformationRejection
public static TransformationRejection transformationRejection(java.util.function.Function<java.util.List<Rejection>,java.util.List<Rejection>> f)
-
rejectionError
public static RejectionError rejectionError(Rejection rejection)
-
-