org.jboss.shrinkwrap.descriptor.api.jbossweb60
Interface ServletType<T>

All Superinterfaces:
Child<T>

public interface ServletType<T>
extends Child<T>

This interface defines the contract for the servletType xsd type

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

Method Summary
 ServletSecurityType<ServletType<T>> getOrCreateServletSecurity()
          If not already created, a new servlet-security element with the given value will be created.
 String getRunAsPrincipal()
          Returns the run-as-principal element
 String getServletName()
          Returns the servlet-name element
 ServletType<T> removeRunAsPrincipal()
          Removes the run-as-principal element
 ServletType<T> removeServletName()
          Removes the servlet-name element
 ServletType<T> removeServletSecurity()
          Removes the servlet-security element
 ServletType<T> runAsPrincipal(String runAsPrincipal)
          Sets the run-as-principal element
 ServletType<T> servletName(String servletName)
          Sets the servlet-name element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

servletName

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

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

getServletName

String getServletName()
Returns the servlet-name element

Returns:
the node defined for the element servlet-name

removeServletName

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

Returns:
the current instance of ServletType

runAsPrincipal

ServletType<T> runAsPrincipal(String runAsPrincipal)
Sets the run-as-principal element

Parameters:
runAsPrincipal - the value for the element run-as-principal
Returns:
the current instance of ServletType

getRunAsPrincipal

String getRunAsPrincipal()
Returns the run-as-principal element

Returns:
the node defined for the element run-as-principal

removeRunAsPrincipal

ServletType<T> removeRunAsPrincipal()
Removes the run-as-principal element

Returns:
the current instance of ServletType

getOrCreateServletSecurity

ServletSecurityType<ServletType<T>> getOrCreateServletSecurity()
If not already created, a new servlet-security element with the given value will be created. Otherwise, the existing servlet-security element will be returned.

Returns:
a new or existing instance of ServletSecurityType>

removeServletSecurity

ServletType<T> removeServletSecurity()
Removes the servlet-security element

Returns:
the current instance of ServletType


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