public static class BodyParser.ToFile extends BodyParser.MaxLengthBodyParser<java.io.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(java.io.File to,
play.api.http.HttpConfiguration httpConfiguration,
HttpErrorHandler errorHandler,
akka.stream.Materializer materializer) |
ToFile(java.io.File to,
long maxLength,
HttpErrorHandler errorHandler,
akka.stream.Materializer materializer) |
Modifier and Type | Method and Description |
---|---|
protected Accumulator<akka.util.ByteString,F.Either<Result,java.io.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(java.io.File to, long maxLength, HttpErrorHandler errorHandler, akka.stream.Materializer materializer)
public ToFile(java.io.File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, akka.stream.Materializer materializer)
protected Accumulator<akka.util.ByteString,F.Either<Result,java.io.File>> apply1(Http.RequestHeader request)
BodyParser.MaxLengthBodyParser
apply1
in class BodyParser.MaxLengthBodyParser<java.io.File>
request
- header for the request to parse