@Deprecated public class DefaultVirtualURIMapping extends Object implements VirtualURIMapping
UrlPattern
.VirtualURIMapping.MappingResult
Modifier and Type | Field and Description |
---|---|
protected String |
fromURI
Deprecated.
|
protected UrlPattern |
pattern
Deprecated.
|
protected String |
toURI
Deprecated.
|
Constructor and Description |
---|
DefaultVirtualURIMapping()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getFromURI()
Deprecated.
|
String |
getToURI()
Deprecated.
|
boolean |
isValid()
Deprecated.
Validate necessary info to check VirtualUriMapping is valid.
|
VirtualURIMapping.MappingResult |
mapURI(String uri)
Deprecated.
Maps an incoming URI to a new target URI.
|
void |
setFromURI(String fromURI)
Deprecated.
|
void |
setToURI(String toURI)
Deprecated.
|
String |
toString()
Deprecated.
|
protected String fromURI
protected String toURI
protected UrlPattern pattern
public VirtualURIMapping.MappingResult mapURI(String uri)
VirtualURIMapping
VirtualURIMapping.MappingResult
describing the new
URI and the level of match. The new URI can be prefixed with "redirect:", "permanent:" or "forward:" to trigger
either a temporary redirect, a permanent redirect or a forward respectively. For redirects the URI can be
absolute or relative within the web application (the context path is added automatically). If the mapping does
not apply to the input URI this method returns null.mapURI
in interface VirtualURIMapping
uri
- the URI of the current request, decoded and without the context pathVirtualURIMapping.MappingResult
with the target URI and level or null if the mapping doesn't applypublic String getFromURI()
public void setFromURI(String fromURI)
public String getToURI()
public void setToURI(String toURI)
public boolean isValid()
VirtualURIMapping
isValid
in interface VirtualURIMapping
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.