public static class BodyParser.TolerantXml extends BodyParser.BufferingBodyParser<org.w3c.dom.Document>
BodyParser.AnyContent, BodyParser.BufferingBodyParser<A>, BodyParser.Bytes, 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 |
|---|
TolerantXml(play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler) |
TolerantXml(long maxLength,
HttpErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected org.w3c.dom.Document |
parse(Http.RequestHeader request,
akka.util.ByteString bytes)
Parse the body.
|
apply1applypublic TolerantXml(long maxLength,
HttpErrorHandler errorHandler)
@Inject
public TolerantXml(play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler)
protected org.w3c.dom.Document parse(Http.RequestHeader request, akka.util.ByteString bytes) throws java.lang.Exception
BodyParser.BufferingBodyParserparse in class BodyParser.BufferingBodyParser<org.w3c.dom.Document>request - The request associated with the body.bytes - The bytes of the body.java.lang.Exception - If the body failed to parse. It is assumed that any exceptions thrown by this method are
the fault of the client, so a 400 bad request error will be returned if this method throws an exception.