public class PrettyConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_REQUEST_KEY |
| Constructor and Description |
|---|
PrettyConfig()
Creates an empty
PrettyConfig object |
| Modifier and Type | Method and Description |
|---|---|
String |
getDynaviewId()
Get the current DynaView ID.
|
List<RewriteRule> |
getGlobalRewriteRules()
Return the currently configured List of
RewriteRule as an unmodifiable collection. |
UrlMapping |
getMappingById(String id)
Get the
UrlMapping corresponding with the given mapping id. |
UrlMapping |
getMappingForUrl(URL url)
Search through all currently configured
UrlMapping objects for the first one that matches the given URL. |
List<UrlMapping> |
getMappings()
Get the currently configured list of
UrlMapping as an unmodifiable List |
boolean |
isMappingId(String id)
Discover if the given id is a
UrlMapping id specified in the current configuration. |
boolean |
isURLMapped(URL url)
Discover if the given URL is mapped by any
UrlMapping specified in the current configuration. |
boolean |
isUseEncodeUrlForRedirects() |
boolean |
isViewMapped(String viewId)
Discover if the given ViewId is mapped by any
UrlMapping specified in the current configuration. |
void |
setDynaviewId(String facesDynaViewId)
Set the current DynaView ID.
|
void |
setGlobalRewriteRules(List<RewriteRule> rules)
Set the current list of
RewriteRule objects. |
void |
setMappings(List<UrlMapping> mappings)
Set the currently configured list of
UrlMapping |
void |
setUseEncodeUrlForRedirects(boolean useEncodeUrlForRedirects) |
String |
toString() |
public static final String CONFIG_REQUEST_KEY
public PrettyConfig()
PrettyConfig objectpublic void setDynaviewId(String facesDynaViewId)
public String getDynaviewId()
PrettyFilter will issue a servlet forward when
the developer has requested a dynamic view-id in a url-mapping.public List<RewriteRule> getGlobalRewriteRules()
RewriteRule as an unmodifiable collection.public void setGlobalRewriteRules(List<RewriteRule> rules)
RewriteRule objects.public List<UrlMapping> getMappings()
UrlMapping as an unmodifiable Listpublic void setMappings(List<UrlMapping> mappings)
UrlMappingpublic UrlMapping getMappingForUrl(URL url)
UrlMapping objects for the first one that matches the given URL.UrlMapping for a given URL.public boolean isMappingId(String id)
UrlMapping id specified in the current configuration.public boolean isURLMapped(URL url)
UrlMapping specified in the current configuration.public boolean isViewMapped(String viewId)
UrlMapping specified in the current configuration.
Note:This will not match if a #{dynamicView.id} method is configured.
public UrlMapping getMappingById(String id)
UrlMapping corresponding with the given mapping id.id - Mapping idpublic boolean isUseEncodeUrlForRedirects()
public void setUseEncodeUrlForRedirects(boolean useEncodeUrlForRedirects)
Copyright © 2014 OCPsoft. All Rights Reserved.