public abstract static class BodyParser.DelegatingMultipartFormDataBodyParser<A> extends java.lang.Object implements BodyParser<Http.MultipartFormData<A>>
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.Text, BodyParser.TolerantJson, BodyParser.TolerantText, BodyParser.TolerantXml, BodyParser.Xml
Constructor and Description |
---|
DelegatingMultipartFormDataBodyParser(akka.stream.Materializer materializer,
long maxLength,
play.api.http.HttpErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
Accumulator<akka.util.ByteString,F.Either<Result,Http.MultipartFormData<A>>> |
apply(Http.RequestHeader request)
Delegates underlying functionality to another body parser and converts the
result to Java API.
|
abstract java.util.function.Function<play.core.parsers.Multipart.FileInfo,Accumulator<akka.util.ByteString,Http.MultipartFormData.FilePart<A>>> |
createFilePartHandler()
Returns a FilePartHandler expressed as a Java function.
|
public DelegatingMultipartFormDataBodyParser(akka.stream.Materializer materializer, long maxLength, play.api.http.HttpErrorHandler errorHandler)
public abstract java.util.function.Function<play.core.parsers.Multipart.FileInfo,Accumulator<akka.util.ByteString,Http.MultipartFormData.FilePart<A>>> createFilePartHandler()
public Accumulator<akka.util.ByteString,F.Either<Result,Http.MultipartFormData<A>>> apply(Http.RequestHeader request)
apply
in interface BodyParser<Http.MultipartFormData<A>>
request
- The request to create the body parser for.