public class HostBasedRegexpVirtualUriMapping extends HostBasedVirtualUriMapping
HostBasedVirtualUriMapping
and RegexpVirtualUriMapping
.HostBasedVirtualUriMapping.HostUriMapping
VirtualUriMapping.Result
Constructor and Description |
---|
HostBasedRegexpVirtualUriMapping() |
Modifier and Type | Method and Description |
---|---|
Optional<VirtualUriMapping.Result> |
mapUri(URI uri)
Choose shortest HostMapping matching request host, with the least number of additional characters.
|
void |
setFromUri(String fromUri) |
getMappings, isValid, setMappings, toString, tryToMapHost
getFromUri, getPattern, getToUri, setInternalFromUri, setToUri
public Optional<VirtualUriMapping.Result> mapUri(URI uri)
HostBasedVirtualUriMapping
mapUri
in interface VirtualUriMapping
mapUri
in class HostBasedVirtualUriMapping
uri
- a relative URI containing only the path and query components.
The path is relative to the magnolia servlet mapping; context path is already stripped.public void setFromUri(String fromUri)
setFromUri
in class DefaultVirtualUriMapping
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.