org.jboss.shrinkwrap.descriptor.api.webcommon30
Interface ServletMappingType<T>

All Superinterfaces:
Child<T>

public interface ServletMappingType<T>
extends Child<T>

This interface defines the contract for the servlet-mappingType xsd type

Since:
Generation date :2013-01-26T19:26:59.858+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 List<String> getAllUrlPattern()
          Returns all url-pattern elements
 String getId()
          Returns the id attribute
 String getServletName()
          Returns the servlet-name element
 ServletMappingType<T> id(String id)
          Sets the id attribute
 ServletMappingType<T> removeAllUrlPattern()
          Removes the url-pattern element
 ServletMappingType<T> removeId()
          Removes the id attribute
 ServletMappingType<T> removeServletName()
          Removes the servlet-name element
 ServletMappingType<T> servletName(String servletName)
          Sets the servlet-name element
 ServletMappingType<T> urlPattern(String... values)
          Creates for all String objects representing url-pattern elements, a new url-pattern element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

servletName

ServletMappingType<T> servletName(String servletName)
Sets the servlet-name element

Parameters:
servletName - the value for the element servlet-name
Returns:
the current instance of ServletMappingType

getServletName

String getServletName()
Returns the servlet-name element

Returns:
the node defined for the element servlet-name

removeServletName

ServletMappingType<T> removeServletName()
Removes the servlet-name element

Returns:
the current instance of ServletMappingType

urlPattern

ServletMappingType<T> urlPattern(String... values)
Creates for all String objects representing url-pattern elements, a new url-pattern element

Parameters:
values - list of url-pattern objects
Returns:
the current instance of ServletMappingType

getAllUrlPattern

List<String> getAllUrlPattern()
Returns all url-pattern elements

Returns:
list of url-pattern

removeAllUrlPattern

ServletMappingType<T> removeAllUrlPattern()
Removes the url-pattern element

Returns:
the current instance of ServletMappingType

id

ServletMappingType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of ServletMappingType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

ServletMappingType<T> removeId()
Removes the id attribute

Returns:
the current instance of ServletMappingType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.