public abstract static class BodyParser.MaxLengthBodyParser<A> extends java.lang.Object implements BodyParser<A>
BodyParser.AnyContent, BodyParser.BufferingBodyParser<A>, BodyParser.Bytes, BodyParser.Default, BodyParser.DelegatingBodyParser<A,B>, BodyParser.DelegatingMultipartFormDataBodyParser<A>, BodyParser.Empty, BodyParser.FormUrlEncoded, BodyParser.Json, BodyParser.MaxLengthBodyParser<A>, BodyParser.MultipartFormData, BodyParser.Of, BodyParser.Raw, BodyParser.Text, BodyParser.TolerantJson, BodyParser.TolerantText, BodyParser.TolerantXml, BodyParser.Xml| Modifier | Constructor and Description |
|---|---|
protected |
MaxLengthBodyParser(long maxLength,
HttpErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
Accumulator<akka.util.ByteString,F.Either<Result,A>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
protected abstract Accumulator<akka.util.ByteString,F.Either<Result,A>> |
apply1(Http.RequestHeader request)
Implement this method to implement the actual body parser.
|
protected MaxLengthBodyParser(long maxLength,
HttpErrorHandler errorHandler)
public Accumulator<akka.util.ByteString,F.Either<Result,A>> apply(Http.RequestHeader request)
BodyParserapply in interface BodyParser<A>request - The request to create the body parser for.protected abstract Accumulator<akka.util.ByteString,F.Either<Result,A>> apply1(Http.RequestHeader request)
request - header for the request to parse