public static class BodyParser.Json extends BodyParser.TolerantJson
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 |
---|
Json(play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler) |
Json(long maxLength,
HttpErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
Accumulator<akka.util.ByteString,F.Either<Result,com.fasterxml.jackson.databind.JsonNode>> |
apply(Http.RequestHeader request)
Return an accumulator to parse the body of the given HTTP request.
|
parse
apply1
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
widen
public Json(long maxLength, HttpErrorHandler errorHandler)
@Inject public Json(play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler)
public Accumulator<akka.util.ByteString,F.Either<Result,com.fasterxml.jackson.databind.JsonNode>> apply(Http.RequestHeader request)
BodyParser
The accumulator should either produce a result if an error was encountered, or the parsed body.
apply
in interface BodyParser<com.fasterxml.jackson.databind.JsonNode>
apply
in class BodyParser.MaxLengthBodyParser<com.fasterxml.jackson.databind.JsonNode>
request
- The request to create the body parser for.