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