|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.trajano.twiff.internal.webxml.WebXmlAdapter
public final class WebXmlAdapter
This processes the web.xml file. It is used to get the servlet mappings.
| Constructor Summary | |
|---|---|
WebXmlAdapter(InputStream webXml)
Constructs the adapter using the specified web.xml location. |
|
WebXmlAdapter(ServletConfig servletConfig)
Constructs the adapter from the web.xml file in the
servlet context used by the servlet config. |
|
| Method Summary | |
|---|---|
void |
addServlet(String servletName,
String servletClass)
|
void |
addServletMapping(String servletName,
String mapping)
|
String |
getMappingForServlet(Class servletClass)
This gets the first mapping used by a servlet by class. |
List<String> |
getMappingsForServlet(Class servletClass)
This gets the mappings used by a servlet by class. |
List<String> |
getMappingsForServletName(String servletName)
|
List<String> |
getServletNamesForClass(Class servletClass)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebXmlAdapter(ServletConfig servletConfig)
throws IOException,
SAXException
web.xml file in the
servlet context used by the servlet config.
servletConfig -
IOException
SAXException
public WebXmlAdapter(InputStream webXml)
throws IOException,
SAXException
webXml - web.xml input stream
SAXException
IOException| Method Detail |
|---|
public void addServlet(String servletName,
String servletClass)
servletName - servletClass -
public void addServletMapping(String servletName,
String mapping)
servletName - mapping - public List<String> getMappingsForServlet(Class servletClass)
servletClass - name of a servlet class
public String getMappingForServlet(Class servletClass)
servletClass - name of a servlet class
public List<String> getMappingsForServletName(String servletName)
servletName -
public List<String> getServletNamesForClass(Class servletClass)
servletClass -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||