org.apache.wicket.examples.stateless
Class SessionModel

java.lang.Object
  extended by org.apache.wicket.model.AbstractReadOnlyModel<java.lang.String>
      extended by org.apache.wicket.examples.stateless.SessionModel
All Implemented Interfaces:
java.io.Serializable, IClusterable, IDetachable, IModel<java.lang.String>

public class SessionModel
extends AbstractReadOnlyModel<java.lang.String>

Model that displays whether a session was created yet, and if it was, prints the session id.

Author:
Eelco Hillenius
See Also:
Serialized Form

Constructor Summary
SessionModel()
           
 
Method Summary
 java.lang.String getObject()
          Gets the model object.
 
Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel
detach, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionModel

public SessionModel()
Method Detail

getObject

public java.lang.String getObject()
Description copied from interface: IModel
Gets the model object.

Specified by:
getObject in interface IModel<java.lang.String>
Specified by:
getObject in class AbstractReadOnlyModel<java.lang.String>
Returns:
The model object
See Also:
AbstractReadOnlyModel.getObject()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.