org.objectweb.jonas_web.deployment.xml
Class ServletMapping
java.lang.Object
org.objectweb.jonas_lib.deployment.xml.AbsElement
org.objectweb.jonas_web.deployment.xml.ServletMapping
- All Implemented Interfaces:
- java.io.Serializable, Element
public class ServletMapping
- extends AbsElement
This class defines the implementation of the element servlet-mapping
- Author:
- Florent Benoit
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getServletName()
|
java.lang.String |
getUrlPattern()
|
void |
setServletName(java.lang.String servletName)
Sets the name of the servlet |
void |
setUrlPattern(java.lang.String urlPattern)
Sets the url-pattern of the servlet |
java.lang.String |
toXML(int indent)
Represents this element by it's XML description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServletMapping
public ServletMapping()
setServletName
public void setServletName(java.lang.String servletName)
- Sets the name of the servlet
- Parameters:
servletName
- name of the servlet
setUrlPattern
public void setUrlPattern(java.lang.String urlPattern)
- Sets the url-pattern of the servlet
- Parameters:
urlPattern
- url-pattern of the servlet
getServletName
public java.lang.String getServletName()
- Returns:
- the name of the servlet of the servlet-mapping
getUrlPattern
public java.lang.String getUrlPattern()
- Returns:
- the url of the servlet of the servlet-mapping
toXML
public java.lang.String toXML(int indent)
- Represents this element by it's XML description.
- Specified by:
toXML
in interface Element
- Specified by:
toXML
in class AbsElement
- Parameters:
indent
- use this indent for prexifing XML representation.
- Returns:
- the XML description of this object.