Package play.mvc
Class BodyParser.DelegatingMultipartFormDataBodyParser<A>
- Object
-
- play.mvc.BodyParser.MaxLengthBodyParser<Http.MultipartFormData<A>>
-
- play.mvc.BodyParser.DelegatingMultipartFormDataBodyParser<A>
-
- All Implemented Interfaces:
BodyParser<Http.MultipartFormData<A>>
- Enclosing interface:
- BodyParser<A>
public abstract static class BodyParser.DelegatingMultipartFormDataBodyParser<A> extends BodyParser.MaxLengthBodyParser<Http.MultipartFormData<A>>
A body parser that exposes a file part handler as an abstract method and delegates the implementation to the underlying Scala multipartParser.
-
-
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 DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxMemoryBufferSize, long maxLength, boolean allowEmptyFiles, HttpErrorHandler errorHandler)
DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxMemoryBufferSize, long maxLength, HttpErrorHandler errorHandler)
Deprecated.Deprecated as of 2.9.0.DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxLength, play.api.http.HttpErrorHandler errorHandler)
Deprecated.Deprecated as of 2.8.0.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Accumulator<ByteString,F.Either<Result,Http.MultipartFormData<A>>>
apply1(Http.RequestHeader request)
Delegates underlying functionality to another body parser and converts the result to Java API.abstract Function<play.core.parsers.Multipart.FileInfo,Accumulator<ByteString,Http.MultipartFormData.FilePart<A>>>
createFilePartHandler()
Returns a FilePartHandler expressed as a Java function.-
Methods inherited from class play.mvc.BodyParser.MaxLengthBodyParser
apply
-
-
-
-
Constructor Detail
-
DelegatingMultipartFormDataBodyParser
@Deprecated public DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxLength, play.api.http.HttpErrorHandler errorHandler)
Deprecated.Deprecated as of 2.8.0. UseDelegatingMultipartFormDataBodyParser(Materializer, long, long, HttpErrorHandler)
instead.
-
DelegatingMultipartFormDataBodyParser
@Deprecated public DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxMemoryBufferSize, long maxLength, HttpErrorHandler errorHandler)
Deprecated.Deprecated as of 2.9.0. UseDelegatingMultipartFormDataBodyParser(Materializer, long, long, boolean, HttpErrorHandler)
instead.
-
DelegatingMultipartFormDataBodyParser
public DelegatingMultipartFormDataBodyParser(Materializer materializer, long maxMemoryBufferSize, long maxLength, boolean allowEmptyFiles, HttpErrorHandler errorHandler)
-
-
Method Detail
-
createFilePartHandler
public abstract Function<play.core.parsers.Multipart.FileInfo,Accumulator<ByteString,Http.MultipartFormData.FilePart<A>>> createFilePartHandler()
Returns a FilePartHandler expressed as a Java function.- Returns:
- a file part handler function.
-
apply1
public Accumulator<ByteString,F.Either<Result,Http.MultipartFormData<A>>> apply1(Http.RequestHeader request)
Delegates underlying functionality to another body parser and converts the result to Java API.- Specified by:
apply1
in classBodyParser.MaxLengthBodyParser<Http.MultipartFormData<A>>
- Parameters:
request
- header for the request to parse- Returns:
- the accumulator that parses the request
-
-