public static class BodyParser.AnyContent extends java.lang.Object implements BodyParser<java.lang.Object>
BodyParser.AnyContent, BodyParser.BufferingBodyParser<A>, BodyParser.Bytes, BodyParser.Default, BodyParser.DelegatingBodyParser<A,B>, 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 |
---|
AnyContent(HttpErrorHandler errorHandler,
play.api.http.HttpConfiguration httpConfiguration) |
Modifier and Type | Method and Description |
---|---|
Accumulator<akka.util.ByteString,F.Either<Result,java.lang.Object>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
@Inject public AnyContent(HttpErrorHandler errorHandler, play.api.http.HttpConfiguration httpConfiguration)
public Accumulator<akka.util.ByteString,F.Either<Result,java.lang.Object>> apply(Http.RequestHeader request)
BodyParser
apply
in interface BodyParser<java.lang.Object>
request
- The request to create the body parser for.