|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.impl.DefaultPageNormalizer
public class DefaultPageNormalizer
The default implementation of PageNormalizer attempts to read from
WEB-INF/web.xml
to find a welcome-files
element,
and uses a default of removing "index.html
" and
"index.jsp
" if this proceedure fails.
Field Summary | |
---|---|
protected static javax.xml.parsers.DocumentBuilderFactory |
buildFactory
How we create new documents |
protected static java.lang.Object |
initLock
The lock to prevent 2 things from calling init at the same time |
protected boolean |
normalizeIncludesQueryString
Does the page normalizer include query strings in it's definition of pages? |
protected ServletContext |
servletContext
We need one of these to do the init process. |
protected java.util.List |
welcomeFiles
The list of filename components to strip to normalize a filename |
Constructor Summary | |
---|---|
DefaultPageNormalizer()
|
Method Summary | |
---|---|
protected static java.util.List |
getDefaultWelcomeFileList()
Use the default list of components to strip to normalize a filename |
protected static java.util.List |
getWebXmlWelcomeFileList(ServletContext context)
Accessor for the list of components to strip to normalize a filename |
java.lang.String |
normalizePage(java.lang.String unnormalized)
Take an un-normalized URL and turn it into the canonical form for that URL. |
void |
setNormalizeIncludesQueryString(boolean normalizeIncludesQueryString)
Does the page normalizer include query strings in it's definition of pages? |
void |
setServletContext(ServletContext servletContext)
|
void |
setWelcomeFileList(java.util.List welcomeFiles)
Accessor for the list of components to strip to normalize a filename |
void |
setWelcomeFiles(java.lang.String welcomeFileNames)
Accessor for the list of components to strip to normalize a filename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ServletContext servletContext
protected boolean normalizeIncludesQueryString
protected static javax.xml.parsers.DocumentBuilderFactory buildFactory
protected static final java.lang.Object initLock
protected java.util.List welcomeFiles
Constructor Detail |
---|
public DefaultPageNormalizer()
Method Detail |
---|
public java.lang.String normalizePage(java.lang.String unnormalized)
PageNormalizer
index.html
rather than adding them in.
normalizePage
in interface PageNormalizer
unnormalized
- The raw string from the browser
protected static java.util.List getWebXmlWelcomeFileList(ServletContext context)
context
- Our route to reading web.xml
protected static java.util.List getDefaultWelcomeFileList()
public void setWelcomeFileList(java.util.List welcomeFiles)
welcomeFiles
- the welcomeFiles to setpublic void setWelcomeFiles(java.lang.String welcomeFileNames)
welcomeFileNames
- the welcomeFiles to set as a comma or newline
separated list.public void setNormalizeIncludesQueryString(boolean normalizeIncludesQueryString)
normalizeIncludesQueryString
- The new valuepublic void setServletContext(ServletContext servletContext)
servletContext
- the servletContext to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |