public static class BodyParser.Xml extends BodyParser.TolerantXml
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.Text, BodyParser.TolerantJson, BodyParser.TolerantText, BodyParser.TolerantXml, BodyParser.Xml
Constructor and Description |
---|
Xml(play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler,
play.api.mvc.PlayBodyParsers parsers) |
Xml(long maxLength,
HttpErrorHandler errorHandler,
play.api.mvc.PlayBodyParsers parsers) |
Modifier and Type | Method and Description |
---|---|
Accumulator<akka.util.ByteString,F.Either<Result,org.w3c.dom.Document>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
parse
apply1
public Xml(long maxLength, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
@Inject public Xml(play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, play.api.mvc.PlayBodyParsers parsers)
public Accumulator<akka.util.ByteString,F.Either<Result,org.w3c.dom.Document>> apply(Http.RequestHeader request)
BodyParser
apply
in interface BodyParser<org.w3c.dom.Document>
apply
in class BodyParser.MaxLengthBodyParser<org.w3c.dom.Document>
request
- The request to create the body parser for.