com.resilientedge.jockey.peerbridge
Class SimpSockApplication

java.lang.Object
  |
  +--com.resilientedge.jockey.peerbridge.SimpSockApplication
All Implemented Interfaces:
java.lang.Comparable, PBApplication, java.io.Serializable

public class SimpSockApplication
extends java.lang.Object
implements PBApplication, java.io.Serializable

Represents a Application on the network

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner
See Also:
Serialized Form

Field Summary
protected static int nextAppId_
           
protected static int NO_APPLICATION_ID
           
 
Method Summary
 int compareTo(java.lang.Object other)
          Returns zero if the other app is the same as this app.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this application.
 AppDescriptor getAppDescriptor()
          Return the application descriptor.
 java.lang.String getAppId()
          Return the application id.
 Authority[] getAuthorities()
          Return the authorities given to this application by the creator.
 void setAppId(java.lang.String id)
          Set the id for this application.
 AppToken toAppToken()
          Return a copy of this object translated to a client side token.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_APPLICATION_ID

protected static final int NO_APPLICATION_ID

nextAppId_

protected static int nextAppId_
Method Detail

getAppId

public java.lang.String getAppId()
Return the application id.
Specified by:
getAppId in interface PBApplication
Returns:
application id

setAppId

public void setAppId(java.lang.String id)
Set the id for this application.
Specified by:
setAppId in interface PBApplication
Parameters:
id - the application id

getAppDescriptor

public AppDescriptor getAppDescriptor()
Return the application descriptor.
Specified by:
getAppDescriptor in interface PBApplication
Returns:
application descriptor

getAuthorities

public Authority[] getAuthorities()
Return the authorities given to this application by the creator.
Specified by:
getAuthorities in interface PBApplication
Returns:
array of authorities

toAppToken

public AppToken toAppToken()
Return a copy of this object translated to a client side token.
Specified by:
toAppToken in interface PBApplication
Returns:
a PI AppToken

compareTo

public int compareTo(java.lang.Object other)
Returns zero if the other app is the same as this app.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other - app to compare
Returns:
a positive or negative integer, or zero

equals

public boolean equals(java.lang.Object other)
Indicates whether some other object is "equal to" this application.
Overrides:
equals in class java.lang.Object
Parameters:
other - object to compare
Returns:
true if equal


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.