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