Package play.mvc
Class BodyParser.ToFile
- All Implemented Interfaces:
BodyParser<File>
- Enclosing interface:
- BodyParser<A>
-
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
ConstructorsConstructorDescriptionToFile(File to, long maxLength, HttpErrorHandler errorHandler, Materializer materializer) ToFile(File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, Materializer materializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
ToFile
-
ToFile
public ToFile(File to, play.api.http.HttpConfiguration httpConfiguration, HttpErrorHandler errorHandler, Materializer materializer)
-
-
Method Details
-
apply1
Description copied from class:BodyParser.MaxLengthBodyParserImplement this method to implement the actual body parser.- Specified by:
apply1in classBodyParser.MaxLengthBodyParser<File>- Parameters:
request- header for the request to parse- Returns:
- the accumulator that parses the request
-