Package play.mvc
Class BodyParser.Xml
- Object
-
- play.mvc.BodyParser.MaxLengthBodyParser<A>
-
- play.mvc.BodyParser.BufferingBodyParser<Document>
-
- play.mvc.BodyParser.TolerantXml
-
- play.mvc.BodyParser.Xml
-
- All Implemented Interfaces:
BodyParser<Document>
- Enclosing interface:
- BodyParser<A>
public static class BodyParser.Xml extends BodyParser.TolerantXml
Parse the body as Xml if the Content-Type is application/xml.
-
-
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 Xml(long maxLength, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
Xml(play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Accumulator<ByteString,F.Either<Result,Document>>
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.-
Methods inherited from class play.mvc.BodyParser.TolerantXml
parse
-
Methods inherited from class play.mvc.BodyParser.BufferingBodyParser
apply1
-
-
-
-
Constructor Detail
-
Xml
public Xml(long maxLength, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
-
Xml
@Inject public Xml(play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
-
-
Method Detail
-
apply
public Accumulator<ByteString,F.Either<Result,Document>> 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<Document>
- Overrides:
apply
in classBodyParser.MaxLengthBodyParser<Document>
- Parameters:
request
- The request to create the body parser for.- Returns:
- The accumulator to parse the body.
-
-