public abstract class HostDirectives extends AttributeDirectives
Constructor and Description |
---|
HostDirectives() |
Modifier and Type | Method and Description |
---|---|
Route |
extractHost(java.util.function.Function<java.lang.String,Route> inner)
Extracts the hostname part of the Host request header value.
|
Route |
host(java.lang.Iterable<java.lang.String> hostNames,
java.util.function.Supplier<Route> inner)
Rejects all requests with a host name different from the given ones.
|
Route |
host(java.util.regex.Pattern regex,
java.util.function.Function<java.lang.String,Route> inner)
Rejects all requests with a host name that doesn't have a prefix matching the given regular expression.
|
Route |
host(java.util.function.Predicate<java.lang.String> predicate,
java.util.function.Supplier<Route> inner)
Rejects all requests for whose host name the given predicate function returns false.
|
Route |
host(java.lang.String hostName,
java.util.function.Supplier<Route> inner)
Rejects all requests with a host name different from the given one.
|
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 Route extractHost(java.util.function.Function<java.lang.String,Route> inner)
inner
- (undocumented)public Route host(java.lang.Iterable<java.lang.String> hostNames, java.util.function.Supplier<Route> inner)
hostNames
- (undocumented)inner
- (undocumented)public Route host(java.lang.String hostName, java.util.function.Supplier<Route> inner)
hostName
- (undocumented)inner
- (undocumented)public Route host(java.util.function.Predicate<java.lang.String> predicate, java.util.function.Supplier<Route> inner)
predicate
- (undocumented)inner
- (undocumented)public Route host(java.util.regex.Pattern regex, java.util.function.Function<java.lang.String,Route> inner)
regex
- (undocumented)inner
- (undocumented)