public abstract static class BodyParser.DelegatingBodyParser<A,B> extends Object implements BodyParser<A>
BodyParser.AnyContent, BodyParser.BufferingBodyParser<A>, BodyParser.Bytes, BodyParser.CompletableBodyParser<A>, 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| Constructor and Description |
|---|
DelegatingBodyParser(play.api.mvc.BodyParser<B> delegate,
Function<B,A> transform) |
| Modifier and Type | Method and Description |
|---|---|
Accumulator<ByteString,F.Either<Result,A>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
public Accumulator<ByteString,F.Either<Result,A>> apply(Http.RequestHeader request)
BodyParserapply in interface BodyParser<A>request - The request to create the body parser for.