org.objectweb.jonas_web.deployment.xml
Class WebResourceCollection

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.xml.AbsElement
      extended by org.objectweb.jonas_web.deployment.xml.WebResourceCollection
All Implemented Interfaces:
java.io.Serializable, Element

public class WebResourceCollection
extends AbsElement

This class defines the implementation of the element web-resource-collection

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
WebResourceCollection()
          Constructor
 
Method Summary
 void addDescription(java.lang.String description)
          Add a new description element to this object
 void addHttpMethod(java.lang.String httpMethod)
          Add a new http-method element to this object
 void addUrlPattern(java.lang.String urlPattern)
          Add a new url-pattern element to this object
 JLinkedList getDescriptionList()
          Gets the description list
 JLinkedList getHttpMethodList()
          Gets the http-method list
 JLinkedList getUrlPatternList()
          Gets the url-pattern list
 java.lang.String getWebResourceName()
          Gets the web-resource-name
 void setWebResourceName(java.lang.String webResourceName)
          Set the web-resource-name of this object
 java.lang.String toXML(int indent)
          Represents this element by it's XML description.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.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

WebResourceCollection

public WebResourceCollection()
Constructor

Method Detail

setWebResourceName

public void setWebResourceName(java.lang.String webResourceName)
Set the web-resource-name of this object

Parameters:
webResourceName - name of this object

addDescription

public void addDescription(java.lang.String description)
Add a new description element to this object

Parameters:
description - description

addUrlPattern

public void addUrlPattern(java.lang.String urlPattern)
Add a new url-pattern element to this object

Parameters:
urlPattern - url-pattern

addHttpMethod

public void addHttpMethod(java.lang.String httpMethod)
Add a new http-method element to this object

Parameters:
httpMethod - http-method

getWebResourceName

public java.lang.String getWebResourceName()
Gets the web-resource-name

Returns:
the web resource name

getDescriptionList

public JLinkedList getDescriptionList()
Gets the description list

Returns:
the description list

getUrlPatternList

public JLinkedList getUrlPatternList()
Gets the url-pattern list

Returns:
the url-pattern list

getHttpMethodList

public JLinkedList getHttpMethodList()
Gets the http-method list

Returns:
the http-method list

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.