net.sf.tm
Class WebContext

java.lang.Object
  extended bynet.sf.tm.WebContext

public class WebContext
extends Object

Class holds the status of current state of a web context.

Version:
$Id: WebContext.java,v 1.5 2004/02/10 20:05:38 apataki Exp $
Author:
Andreas Pataki

Constructor Summary
WebContext()
           
 
Method Summary
 boolean equals(Object obj)
          Overwritten to ensure that a refreshed context object is the same as the old one in the tree.
 int getActiveSessions()
           
 String getDocPath()
           
 String getPath()
           
 WebContextStatus getStatus()
           
 int hashCode()
          Overwritten to provide the hash for the same fields used in the equals method.
 void setActiveSessions(int count)
           
 void setDocPath(String string)
           
 void setPath(String string)
           
 void setStatus(WebContextStatus i)
           
 String toString()
          Overwriten for debuging purposes only.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebContext

public WebContext()
Method Detail

getDocPath

public String getDocPath()
Returns:
The doc path of the context.

getPath

public String getPath()
Returns:
The context path

getStatus

public WebContextStatus getStatus()
Returns:
The status. See the constant definitions in this class for the values.

setDocPath

public void setDocPath(String string)
Parameters:
string - new doc path

setPath

public void setPath(String string)
Parameters:
string - new path

setStatus

public void setStatus(WebContextStatus i)
Parameters:
i - New status. Must be one of the constants defined in this class.

getActiveSessions

public int getActiveSessions()
Returns:
The session count

setActiveSessions

public void setActiveSessions(int count)
Parameters:
count - Session count

equals

public boolean equals(Object obj)
Overwritten to ensure that a refreshed context object is the same as the old one in the tree. Only this way the selection in the tree will get preserved.

See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overwritten to provide the hash for the same fields used in the equals method.

See Also:
Object.hashCode()

toString

public String toString()
Overwriten for debuging purposes only.

See Also:
Object.toString()


Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.