Package play.mvc
Class BodyParser.DelegatingBodyParser<A,B>
- Object
-
- play.mvc.BodyParser.DelegatingBodyParser<A,B>
-
- All Implemented Interfaces:
BodyParser<A>
- Direct Known Subclasses:
BodyParser.MultipartFormData
,BodyParser.Raw
- Enclosing interface:
- BodyParser<A>
public abstract static class BodyParser.DelegatingBodyParser<A,B> extends Object implements BodyParser<A>
A body parser that delegates to a Scala body parser, and uses the supplied function to transform its result to a Java body.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface play.mvc.BodyParser
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.TemporaryFile, BodyParser.Text, BodyParser.ToFile, BodyParser.TolerantJson, BodyParser.TolerantText, BodyParser.TolerantXml, BodyParser.Xml
-
-
Constructor Summary
Constructors Constructor Description DelegatingBodyParser(play.api.mvc.BodyParser<B> delegate, Function<B,A> transform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accumulator<ByteString,F.Either<Result,A>>
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
-
-
-
Method Detail
-
apply
public Accumulator<ByteString,F.Either<Result,A>> apply(Http.RequestHeader request)
Description copied from interface:BodyParser
Return an accumulator to parse the body of the given HTTP request.The accumulator should either produce a result if an error was encountered, or the parsed body.
- Specified by:
apply
in interfaceBodyParser<A>
- Parameters:
request
- The request to create the body parser for.- Returns:
- The accumulator to parse the body.
-
-