net.sourceforge.apphere
Class Session

java.lang.Object
  extended bynet.sourceforge.apphere.Session
All Implemented Interfaces:
AppHereSession, java.lang.Comparable
Direct Known Subclasses:
WebSession

public class Session
extends java.lang.Object
implements AppHereSession, java.lang.Comparable


Field Summary
static java.lang.String EMAIL
           
static java.lang.String WEB
           
static java.lang.String WORD
           
 
Constructor Summary
Session()
           
Session(int session_id)
           
 
Method Summary
 int compareTo(java.lang.Object anotherSession)
           
 VirtualApplication createApp()
           
 byte[] getContent()
          Returns the content.
 java.lang.String getLocation()
          Returns the location.
 java.lang.String getMetadata()
          Returns the metadata.
 java.lang.String getName()
          Returns the name.
 int getSessID()
          Returns the id.
 java.lang.String getSessType()
          Returns the type.
 void mergeSessions(Session newVals)
           
 java.lang.String readMetadataAttribute(java.lang.String name)
          Method toServerSession.
 org.xml.sax.Attributes readMetadataAttributes()
           
 void setContent(byte[] content)
          Sets the content.
 void setLocation(java.lang.String location)
          Sets the location.
 void setMetadata(java.lang.String metadata)
          Sets the metadata.
 void setName(java.lang.String name)
          Sets the name.
 void setSessID(int id)
          Sets the id.
 void setSessType(java.lang.String type)
          Sets the type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WEB

public static final transient java.lang.String WEB
See Also:
Constant Field Values

EMAIL

public static final transient java.lang.String EMAIL
See Also:
Constant Field Values

WORD

public static final transient java.lang.String WORD
See Also:
Constant Field Values
Constructor Detail

Session

public Session()

Session

public Session(int session_id)
Method Detail

toString

public java.lang.String toString()

getContent

public byte[] getContent()
Returns the content.

Specified by:
getContent in interface AppHereSession
Returns:
Serializable

setLocation

public void setLocation(java.lang.String location)
                 throws AppHereException
Sets the location.

Specified by:
setLocation in interface AppHereSession
Parameters:
location - The location to set
Throws:
AppHereException

getLocation

public java.lang.String getLocation()
Returns the location.

Specified by:
getLocation in interface AppHereSession
Returns:
InetAddress

getName

public java.lang.String getName()
Returns the name.

Specified by:
getName in interface AppHereSession
Returns:
String

setName

public void setName(java.lang.String name)
Sets the name.

Specified by:
setName in interface AppHereSession
Parameters:
name - The name to set

setContent

public void setContent(byte[] content)
Sets the content.

Specified by:
setContent in interface AppHereSession
Parameters:
content - The content to set

getSessType

public java.lang.String getSessType()
Returns the type.

Specified by:
getSessType in interface AppHereSession
Returns:
String

setSessType

public void setSessType(java.lang.String type)
Sets the type.

Specified by:
setSessType in interface AppHereSession
Parameters:
type - The type to set

getMetadata

public java.lang.String getMetadata()
Returns the metadata.

Specified by:
getMetadata in interface AppHereSession
Returns:
Element

setMetadata

public void setMetadata(java.lang.String metadata)
Sets the metadata.

Specified by:
setMetadata in interface AppHereSession
Parameters:
metadata - The metadata to set

getSessID

public int getSessID()
Returns the id.

Specified by:
getSessID in interface AppHereSession
Returns:
int

setSessID

public void setSessID(int id)
Sets the id.

Specified by:
setSessID in interface AppHereSession
Parameters:
id - The id to set

compareTo

public int compareTo(java.lang.Object anotherSession)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

readMetadataAttribute

public java.lang.String readMetadataAttribute(java.lang.String name)
Method toServerSession.

Specified by:
readMetadataAttribute in interface AppHereSession
Returns:
Session

readMetadataAttributes

public org.xml.sax.Attributes readMetadataAttributes()
                                              throws org.xml.sax.SAXException
Specified by:
readMetadataAttributes in interface AppHereSession
Throws:
org.xml.sax.SAXException

mergeSessions

public void mergeSessions(Session newVals)
Specified by:
mergeSessions in interface AppHereSession

createApp

public VirtualApplication createApp()
Specified by:
createApp in interface AppHereSession