Class FormFieldDirectives
- java.lang.Object
-
- akka.http.javadsl.server.directives.BasicDirectives
-
- akka.http.javadsl.server.directives.CacheConditionDirectives
-
- akka.http.javadsl.server.directives.CodingDirectives
-
- akka.http.javadsl.server.directives.CookieDirectives
-
- akka.http.javadsl.server.directives.DebuggingDirectives
-
- akka.http.javadsl.server.directives.ExecutionDirectives
-
- akka.http.javadsl.server.directives.FileAndResourceDirectives
-
- akka.http.javadsl.server.directives.FileUploadDirectives
-
- akka.http.javadsl.server.directives.FormFieldDirectives
-
- Direct Known Subclasses:
FutureDirectives
public abstract class FormFieldDirectives extends FileUploadDirectives
-
-
Constructor Summary
Constructors Constructor Description FormFieldDirectives()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Route
formField(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
Route
formField(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
<T> Route
formFieldList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
Route
formFieldList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
Route
formFieldList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
Extracts HTTP form fields from the request as aMap.Entry
> .
Route
formFieldMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
Extracts HTTP form fields from the request as aMap
.
Route
formFieldMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
Extracts HTTP form fields from the request as aMap
> .
<T> Route
formFieldOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
Route
formFieldOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
-
Methods inherited from class akka.http.javadsl.server.directives.FileUploadDirectives
fileUpload, fileUploadAll, storeUploadedFile, storeUploadedFiles
-
Methods inherited from class akka.http.javadsl.server.directives.FileAndResourceDirectives
defaultContentTypeResolver, defaultDirectoryRenderer, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromDirectory, getFromDirectory, getFromFile, getFromFile, getFromFile, getFromFile, getFromFile, getFromResource, getFromResource, getFromResource, getFromResource, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, listDirectoryContents, listDirectoryContents, listDirectoryContents, listDirectoryContents
-
Methods inherited from class akka.http.javadsl.server.directives.ExecutionDirectives
handleExceptions, handleRejections
-
Methods inherited from class akka.http.javadsl.server.directives.DebuggingDirectives
logRequest, logRequest, logRequest, logRequestResult, logRequestResultOptional, logResult, logResult, logResult
-
Methods inherited from class akka.http.javadsl.server.directives.CookieDirectives
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
-
Methods inherited from class akka.http.javadsl.server.directives.CodingDirectives
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
-
Methods inherited from class akka.http.javadsl.server.directives.CacheConditionDirectives
conditional, conditional, conditional, conditional
-
Methods inherited from class akka.http.javadsl.server.directives.BasicDirectives
cancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettings
-
-
-
-
Method Detail
-
formField
public Route formField(java.lang.String name, java.util.function.Function<java.lang.String,Route> inner)
-
formField
public <T> Route formField(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<T,Route> inner)
-
formFieldList
public Route formFieldList(java.lang.String name, java.util.function.Function<java.util.List<java.lang.String>,Route> inner)
-
formFieldList
public <T> Route formFieldList(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.List<T>,Route> inner)
-
formFieldList
public Route formFieldList(java.util.function.Function<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>>,Route> inner)
Extracts HTTP form fields from the request as aMap.Entry
> .
- Parameters:
inner
- (undocumented)- Returns:
- (undocumented)
-
formFieldMap
public Route formFieldMap(java.util.function.Function<java.util.Map<java.lang.String,java.lang.String>,Route> inner)
Extracts HTTP form fields from the request as aMap
.
- Parameters:
inner
- (undocumented)- Returns:
- (undocumented)
-
formFieldMultiMap
public Route formFieldMultiMap(java.util.function.Function<java.util.Map<java.lang.String,java.util.List<java.lang.String>>,Route> inner)
Extracts HTTP form fields from the request as aMap
> .
- Parameters:
inner
- (undocumented)- Returns:
- (undocumented)
-
formFieldOptional
public Route formFieldOptional(java.lang.String name, java.util.function.Function<java.util.Optional<java.lang.String>,Route> inner)
-
formFieldOptional
public <T> Route formFieldOptional(Unmarshaller<java.lang.String,T> t, java.lang.String name, java.util.function.Function<java.util.Optional<T>,Route> inner)
-
-