Package play.mvc
Class BodyParser.ToFile
- Object
-
- play.mvc.BodyParser.MaxLengthBodyParser<File>
-
- play.mvc.BodyParser.ToFile
-
- All Implemented Interfaces:
BodyParser<File>
- Enclosing interface:
- BodyParser<A>
public static class BodyParser.ToFile extends BodyParser.MaxLengthBodyParser<File>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface play.mvc.BodyParser
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 Summary
Constructors Constructor Description ToFile(File to, long maxLength, HttpErrorHandler errorHandler, Materializer materializer)
ToFile(File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, Materializer materializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Accumulator<ByteString,F.Either<Result,File>>
apply1(Http.RequestHeader request)
Implement this method to implement the actual body parser.-
Methods inherited from class play.mvc.BodyParser.MaxLengthBodyParser
apply
-
-
-
-
Constructor Detail
-
ToFile
public ToFile(File to, long maxLength, HttpErrorHandler errorHandler, Materializer materializer)
-
ToFile
public ToFile(File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, Materializer materializer)
-
-
Method Detail
-
apply1
protected Accumulator<ByteString,F.Either<Result,File>> apply1(Http.RequestHeader request)
Description copied from class:BodyParser.MaxLengthBodyParser
Implement this method to implement the actual body parser.- Specified by:
apply1
in classBodyParser.MaxLengthBodyParser<File>
- Parameters:
request
- header for the request to parse- Returns:
- the accumulator that parses the request
-
-