org.ow2.jonas.deployment.web.xml
Class ServletMapping
java.lang.Object
org.ow2.jonas.deployment.common.xml.AbsElement
org.ow2.jonas.deployment.web.xml.ServletMapping
- All Implemented Interfaces:
- Serializable, Element
public class ServletMapping
- extends AbsElement
This class defines the implementation of the element servlet-mapping
- Author:
- Florent Benoit
- See Also:
- Serialized Form
ServletMapping
public ServletMapping()
setServletName
public void setServletName(String servletName)
- Sets the name of the servlet
- Parameters:
servletName
- name of the servlet
setUrlPattern
public void setUrlPattern(String urlPattern)
- Sets the url-pattern of the servlet
- Parameters:
urlPattern
- url-pattern of the servlet
getServletName
public String getServletName()
- Returns:
- the name of the servlet of the servlet-mapping
getUrlPattern
public String getUrlPattern()
- Returns:
- the url of the servlet of the servlet-mapping
toXML
public 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.
Copyright © 2010 OW2 Consortium. All Rights Reserved.