|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.file.WebXmlFile
public class WebXmlFile
A utility class providing helper methods in dealing with web.xml
| Constructor Summary | |
|---|---|
WebXmlFile()
Construct. |
|
| Method Summary | |
|---|---|
String |
getFilterPath(boolean isServlet,
javax.servlet.FilterConfig filterConfig)
Gets Wicket filter path via FilterConfig |
String |
getFilterPath(boolean isServlet,
javax.servlet.ServletContext servletContext,
String filterName)
Gets Wicket filter path via ServletContext and the filter name |
String |
getFilterPath(boolean isServlet,
String filterName,
InputStream is)
Gets Wicket filter path via filter name and InputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebXmlFile()
| Method Detail |
|---|
public final String getFilterPath(boolean isServlet,
javax.servlet.FilterConfig filterConfig)
isServlet - true if Servlet, false if FilterfilterConfig -
public final String getFilterPath(boolean isServlet,
javax.servlet.ServletContext servletContext,
String filterName)
isServlet - true if Servlet, false if FilterservletContext - filterName -
public final String getFilterPath(boolean isServlet,
String filterName,
InputStream is)
throws ParserConfigurationException,
SAXException,
IOException
A typical Wicket web.xml entry looks like:
<filter>
<filter-name>HelloWorldApplication</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>org.apache.wicket.examples.helloworld.HelloWorldApplication</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>HelloWorldApplication</filter-name>
<url-pattern>/helloworld/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
isServlet - true if Servlet, false if FilterfilterName - is - The web.xml file
ParserConfigurationException
IOException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||