public static class BodyParser.ToFile extends BodyParser.MaxLengthBodyParser<File>
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 and Description |
---|
ToFile(File to,
play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler,
akka.stream.Materializer materializer) |
ToFile(File to,
long maxLength,
HttpErrorHandler errorHandler,
akka.stream.Materializer materializer) |
Modifier and Type | Method and Description |
---|---|
protected Accumulator<akka.util.ByteString,F.Either<Result,File>> |
apply1(Http.RequestHeader request)
Implement this method to implement the actual body parser.
|
apply
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
widen
public ToFile(File to, long maxLength, HttpErrorHandler errorHandler, akka.stream.Materializer materializer)
public ToFile(File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, akka.stream.Materializer materializer)
protected Accumulator<akka.util.ByteString,F.Either<Result,File>> apply1(Http.RequestHeader request)
BodyParser.MaxLengthBodyParser
apply1
in class BodyParser.MaxLengthBodyParser<File>
request
- header for the request to parse