org.ow2.jonas.deployment.web.xml
Class ServletMapping

java.lang.Object
  extended by org.ow2.jonas.deployment.common.xml.AbsElement
      extended by 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

Constructor Summary
ServletMapping()
           
 
Method Summary
 String getServletName()
           
 String getUrlPattern()
           
 void setServletName(String servletName)
          Sets the name of the servlet
 void setUrlPattern(String urlPattern)
          Sets the url-pattern of the servlet
 String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.ow2.jonas.deployment.common.xml.AbsElement
indent, toString, toXML, xmlAttribute, xmlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletMapping

public ServletMapping()
Method Detail

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.