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