public static class BodyParser.AnyContent extends Object implements BodyParser<Object>
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 and Description |
---|
AnyContent(HttpErrorHandler errorHandler,
play.api.http.HttpConfiguration httpConfiguration,
play.api.mvc.PlayBodyParsers parsers) |
Modifier and Type | Method and Description |
---|---|
Accumulator<akka.util.ByteString,F.Either<Result,Object>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
widen
@Inject public AnyContent(HttpErrorHandler errorHandler, play.api.http.HttpConfiguration httpConfiguration, play.api.mvc.PlayBodyParsers parsers)
public Accumulator<akka.util.ByteString,F.Either<Result,Object>> apply(Http.RequestHeader request)
BodyParser
The accumulator should either produce a result if an error was encountered, or the parsed body.
apply
in interface BodyParser<Object>
request
- The request to create the body parser for.