public abstract class MethodDirectives extends MarshallingDirectives
Constructor and Description |
---|
MethodDirectives() |
Modifier and Type | Method and Description |
---|---|
Route |
delete(java.util.function.Supplier<Route> inner) |
RouteAdapter |
extractMethod(java.util.function.Function<HttpMethod,Route> inner) |
Route |
get(java.util.function.Supplier<Route> inner) |
Route |
head(java.util.function.Supplier<Route> inner) |
Route |
method(HttpMethod method,
java.util.function.Supplier<Route> inner) |
Route |
options(java.util.function.Supplier<Route> inner) |
Route |
overrideMethodWithParameter(java.lang.String paramName,
java.util.function.Supplier<Route> inner)
Changes the HTTP method of the request to the value of the specified query string parameter.
|
Route |
patch(java.util.function.Supplier<Route> inner) |
Route |
post(java.util.function.Supplier<Route> inner) |
Route |
put(java.util.function.Supplier<Route> inner) |
completeWith, entity, handleWith, request
extractHost, host, host, host, host
attribute, optionalAttribute
checkSameOrigin, headerValue, headerValueByName, headerValueByType, headerValuePF, optionalHeaderValue, optionalHeaderValueByName, optionalHeaderValueByType, optionalHeaderValuePF
completeOrRecoverWith, onComplete, onComplete, onCompleteWithBreaker, onSuccess, onSuccess
formField, formField, formFieldList, formFieldList, formFieldList, formFieldMap, formFieldMultiMap, formFieldOptional, formFieldOptional
fileUpload, fileUploadAll, storeUploadedFile, storeUploadedFiles
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
handleExceptions, handleRejections
logRequest, logRequest, logRequest, logRequestResult, logRequestResultOptional, logResult, logResult, logResult
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
conditional, conditional, conditional, conditional
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
public RouteAdapter extractMethod(java.util.function.Function<HttpMethod,Route> inner)
public Route method(HttpMethod method, java.util.function.Supplier<Route> inner)
public Route overrideMethodWithParameter(java.lang.String paramName, java.util.function.Supplier<Route> inner)
501 Not Implemented
response.
This directive is useful for: - Use in combination with JSONP (JSONP only supports GET) - Supporting older browsers that lack support for certain HTTP methods. E.g. IE8 does not support PATCH
paramName
- (undocumented)inner
- (undocumented)