Package play.mvc
Class BodyParser.Default
- Object
-
- play.mvc.BodyParser.AnyContent
-
- play.mvc.BodyParser.Default
-
- All Implemented Interfaces:
BodyParser<Object>
- Enclosing interface:
- BodyParser<A>
public static class BodyParser.Default extends BodyParser.AnyContent
If the request has a body, guess the body content by checking the Content-Type header.
-
-
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 Default(HttpErrorHandler errorHandler, play.api.http.HttpConfiguration httpConfiguration, play.api.mvc.PlayBodyParsers parsers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accumulator<ByteString,F.Either<Result,Object>>
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
-
-
-
Constructor Detail
-
Default
@Inject public Default(HttpErrorHandler errorHandler, play.api.http.HttpConfiguration httpConfiguration, play.api.mvc.PlayBodyParsers parsers)
-
-
Method Detail
-
apply
public Accumulator<ByteString,F.Either<Result,Object>> 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<Object>
- Overrides:
apply
in classBodyParser.AnyContent
- Parameters:
request
- The request to create the body parser for.- Returns:
- The accumulator to parse the body.
-
-