public class DefaultVirtualUriMapping extends Object implements VirtualUriMapping
UrlPattern
.VirtualUriMapping.Result
Constructor and Description |
---|
DefaultVirtualUriMapping() |
Modifier and Type | Method and Description |
---|---|
String |
getFromUri() |
UrlPattern |
getPattern() |
String |
getToUri() |
boolean |
isValid()
Validate necessary info to check VirtualUriMapping is valid.
|
Optional<VirtualUriMapping.Result> |
mapUri(URI uri)
Maps an incoming URI to a new target URI.
|
void |
setFromUri(String fromUri) |
protected void |
setInternalFromUri(String fromUri) |
void |
setToUri(String toUri) |
String |
toString() |
public Optional<VirtualUriMapping.Result> mapUri(URI uri)
VirtualUriMapping
mapUri
in interface VirtualUriMapping
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 boolean isValid()
VirtualUriMapping
isValid
in interface VirtualUriMapping
public String getFromUri()
public void setFromUri(String fromUri)
protected void setInternalFromUri(String fromUri)
public String getToUri()
public void setToUri(String toUri)
public UrlPattern getPattern()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.