|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.multisite.URLPatternMatchingRuleFilter
public class URLPatternMatchingRuleFilter
The URLPatternMatchingRuleFilter firsts checks its URL map for a match, or a "startsWith" match against the current request's URL. If no match is found, then we ask the SiteURLManager for a match against the current request's URL.
Nested Class Summary | |
---|---|
class |
URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterAdminServlet
admin servlet class |
static interface |
URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterRegistrar
An interface for registering a URLPatternMatchingRuleFilter an another service when URLPatternMatchingRuleFilter comes up. |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
URLPatternMatchingRuleFilter()
Constructs an instanceof URLPatternMatchingRuleFilter |
Method Summary | |
---|---|
protected javax.servlet.Servlet |
createAdminServlet()
create the admin servlet |
protected boolean |
disabledViaWebapp(DynamoHttpServletRequest pRequest)
check to see if the associated web app for this request is configured to disable the pattern matching rule filter |
void |
doStartService()
start the service |
java.lang.String |
filter(DynamoHttpServletRequest pRequest,
SiteSessionManager pSiteSessionManager)
get the URI from the request. |
javax.servlet.Servlet |
getAdminServlet()
get the admin servlet |
java.lang.String |
getContextParamEnableFlagName()
get ContextParamEnableFlagName |
SiteURLManager.OrderedSiteURLInfo |
getOrderedSiteURLInfo()
get the ordered site url info |
java.lang.String |
getPatternMatchingURLForRequest(DynamoHttpServletRequest pRequest)
get a URL for the request that is appropriate for use in the pattern matching algorithm |
URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterRegistrar[] |
getRuleFilterRegistrars()
Returns property ruleFilterRegistrars. |
java.lang.String |
getSiteIdForURL(java.lang.String pURL)
get the site Id corresponding to the url |
SiteURLManager |
getSiteURLManager()
get SiteURLManager |
java.util.Map<java.lang.String,java.lang.String> |
getURLs()
get URLs |
boolean |
isEnabled()
get Enabled |
boolean |
isEnableSimpleAlgorithm()
get EnableSimpleAlgorithm |
boolean |
isEnableSiteURLManagerAlgorithm()
get EnableSiteURLManagerAlgorithm |
protected void |
registerWithRegistrars()
register ourselves with the SiteURLManagerAdminServlet |
void |
setContextParamEnableFlagName(java.lang.String pContextParamEnableFlagName)
set ContextParamEnableFlagName |
void |
setEnabled(boolean pEnabled)
set Enabled |
void |
setEnableSimpleAlgorithm(boolean pEnableSimpleAlgorithm)
set EnableSimpleAlgorithm |
void |
setEnableSiteURLManagerAlgorithm(boolean pEnableSiteURLManagerAlgorithm)
set EnableSiteURLManagerAlgorithm |
void |
setRuleFilterRegistrars(URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterRegistrar[] pRuleFilterRegistrars)
Sets property ruleFilterRegistrars. |
void |
setSiteURLManager(SiteURLManager pSiteURLManager)
set SiteURLManager |
void |
setURLs(java.util.Map<java.lang.String,java.lang.String> pURLs)
set URLs, also update the admin servlet |
protected void |
updateOrderedURLs()
update the url map on the admin servlet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public URLPatternMatchingRuleFilter()
Method Detail |
---|
public void setURLs(java.util.Map<java.lang.String,java.lang.String> pURLs)
pURLs
- the URLspublic java.util.Map<java.lang.String,java.lang.String> getURLs()
public void setEnabled(boolean pEnabled)
pEnabled
- the Enabledpublic boolean isEnabled()
public void setSiteURLManager(SiteURLManager pSiteURLManager)
pSiteURLManager
- the SiteURLManagerpublic SiteURLManager getSiteURLManager()
public void setContextParamEnableFlagName(java.lang.String pContextParamEnableFlagName)
pContextParamEnableFlagName
- the ContextParamEnableFlagNamepublic java.lang.String getContextParamEnableFlagName()
public void setEnableSimpleAlgorithm(boolean pEnableSimpleAlgorithm)
pEnableSimpleAlgorithm
- the EnableSimpleAlgorithmpublic boolean isEnableSimpleAlgorithm()
public void setEnableSiteURLManagerAlgorithm(boolean pEnableSiteURLManagerAlgorithm)
pEnableSiteURLManagerAlgorithm
- the EnableSiteURLManagerAlgorithmpublic boolean isEnableSiteURLManagerAlgorithm()
public void setRuleFilterRegistrars(URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterRegistrar[] pRuleFilterRegistrars)
public URLPatternMatchingRuleFilter.URLPatternMatchingRuleFilterRegistrar[] getRuleFilterRegistrars()
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting upprotected void registerWithRegistrars()
protected void updateOrderedURLs()
public SiteURLManager.OrderedSiteURLInfo getOrderedSiteURLInfo()
public java.lang.String filter(DynamoHttpServletRequest pRequest, SiteSessionManager pSiteSessionManager)
filter
in interface SiteContextRuleFilter
pRequest
- the request objectpSiteSessionManager
- the site session manager for the current session
public java.lang.String getPatternMatchingURLForRequest(DynamoHttpServletRequest pRequest)
pRequest
- the dynamo request
public java.lang.String getSiteIdForURL(java.lang.String pURL)
pURL
- the url
protected boolean disabledViaWebapp(DynamoHttpServletRequest pRequest)
pRequest
- the dynamo HttpServletRequest
public javax.servlet.Servlet getAdminServlet()
getAdminServlet
in interface AdminableService
getAdminServlet
in class GenericService
GenericService.createAdminServlet()
protected javax.servlet.Servlet createAdminServlet()
createAdminServlet
in class GenericService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |