org.apache.commons.latka.jelly
Class SessionTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.latka.jelly.SessionTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SessionTag
extends org.apache.commons.jelly.TagSupport

Author:
Morgan Delagrange

Field Summary
protected  String _label
           
protected  Session _session
           
protected  String _sessionId
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SessionTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           
protected  Session findSession(String sessionId)
           
 Session getSession()
           
 void setLabel(String label)
          Set the label for this session
 void setSessionId(String sessionId)
          Optionally sets the session id.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sessionId

protected String _sessionId

_label

protected String _label

_session

protected Session _session
Constructor Detail

SessionTag

public SessionTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           throws org.apache.commons.jelly.JellyTagException
Parameters:
xmlOutput - a place to write output
Throws:
org.apache.commons.jelly.JellyTagException - if the tag body could not be invoked

getSession

public Session getSession()

findSession

protected Session findSession(String sessionId)

setSessionId

public void setSessionId(String sessionId)
Optionally sets the session id. If a session id is specified, state information (cookies, etc.) will be shared by any session with the same id.

Parameters:
sessionId - arbitrary session id, specified by the user in the Latka script

setLabel

public void setLabel(String label)
Set the label for this session

Parameters:
label - session label


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.