public class WebXmlFile extends Object
Constructor and Description |
---|
WebXmlFile()
Construct.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getFilterPath(boolean isServlet,
javax.servlet.ServletContext servletContext,
String filterName)
Gets Wicket filter path via ServletContext and the filter name
|
Set<String> |
getFilterPath(boolean isServlet,
String filterName,
InputStream is)
Gets Wicket filter path via filter name and InputStream.
|
String |
getUniqueFilterPath(boolean isServlet,
javax.servlet.FilterConfig filterConfig)
Gets unique Wicket filter path via FilterConfig
|
String |
getUniqueFilterPath(boolean isServlet,
String filterName,
InputStream is)
Gets unique filter path via filter name and InputStream.
|
public final String getUniqueFilterPath(boolean isServlet, javax.servlet.FilterConfig filterConfig)
isServlet
- true if Servlet, false if FilterfilterConfig
- public final Set<String> getFilterPath(boolean isServlet, javax.servlet.ServletContext servletContext, String filterName)
isServlet
- true if Servlet, false if FilterservletContext
- filterName
- public final String getUniqueFilterPath(boolean isServlet, String filterName, InputStream is) throws ParserConfigurationException, SAXException, IOException
isServlet
- true if Servlet, false if FilterfilterName
- is
- The web.xml fileParserConfigurationException
IOException
SAXException
getFilterPath(boolean, String, java.io.InputStream)
public final Set<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 fileParserConfigurationException
IOException
SAXException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.