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

All Superinterfaces:
Child<T>

public interface SessionConfigType<T>
extends Child<T>

This interface defines the contract for the session-configType xsd type

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

Method Summary
 String getId()
          Returns the id attribute
 CookieConfigType<SessionConfigType<T>> getOrCreateCookieConfig()
          If not already created, a new cookie-config element with the given value will be created.
 Integer getSessionTimeout()
          Returns the session-timeout element
 TrackingModeType getTrackingMode()
          Returns the tracking-mode element
 String getTrackingModeAsString()
          Returns the tracking-mode element
 SessionConfigType<T> id(String id)
          Sets the id attribute
 SessionConfigType<T> removeCookieConfig()
          Removes the cookie-config element
 SessionConfigType<T> removeId()
          Removes the id attribute
 SessionConfigType<T> removeSessionTimeout()
          Removes the session-timeout element
 SessionConfigType<T> removeTrackingMode()
          Removes the tracking-mode attribute
 SessionConfigType<T> sessionTimeout(Integer sessionTimeout)
          Sets the session-timeout element
 SessionConfigType<T> trackingMode(String trackingMode)
          Sets the tracking-mode element
 SessionConfigType<T> trackingMode(TrackingModeType trackingMode)
          Sets the tracking-mode element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

sessionTimeout

SessionConfigType<T> sessionTimeout(Integer sessionTimeout)
Sets the session-timeout element

Parameters:
sessionTimeout - the value for the element session-timeout
Returns:
the current instance of SessionConfigType

getSessionTimeout

Integer getSessionTimeout()
Returns the session-timeout element

Returns:
the node defined for the element session-timeout

removeSessionTimeout

SessionConfigType<T> removeSessionTimeout()
Removes the session-timeout element

Returns:
the current instance of SessionConfigType

getOrCreateCookieConfig

CookieConfigType<SessionConfigType<T>> getOrCreateCookieConfig()
If not already created, a new cookie-config element with the given value will be created. Otherwise, the existing cookie-config element will be returned.

Returns:
a new or existing instance of CookieConfigType>

removeCookieConfig

SessionConfigType<T> removeCookieConfig()
Removes the cookie-config element

Returns:
the current instance of SessionConfigType

trackingMode

SessionConfigType<T> trackingMode(TrackingModeType trackingMode)
Sets the tracking-mode element

Parameters:
trackingMode - the value for the element tracking-mode
Returns:
the current instance of SessionConfigType

trackingMode

SessionConfigType<T> trackingMode(String trackingMode)
Sets the tracking-mode element

Parameters:
trackingMode - the value for the element tracking-mode
Returns:
the current instance of SessionConfigType

getTrackingMode

TrackingModeType getTrackingMode()
Returns the tracking-mode element

Returns:
the value found for the element tracking-mode

getTrackingModeAsString

String getTrackingModeAsString()
Returns the tracking-mode element

Returns:
the value found for the element tracking-mode

removeTrackingMode

SessionConfigType<T> removeTrackingMode()
Removes the tracking-mode attribute

Returns:
the current instance of SessionConfigType

id

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

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

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

SessionConfigType<T> removeId()
Removes the id attribute

Returns:
the current instance of SessionConfigType


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