Bees v0.5.0 API

bees.core
Class ProtocolPresentation

java.lang.Object
  |
  +--bees.core.ProtocolPresentation
All Implemented Interfaces:
ExternalCapsuleReceiver, ExternalChannel
Direct Known Subclasses:
ExtendedProtocolPresentation

public abstract class ProtocolPresentation
extends java.lang.Object
implements ExternalCapsuleReceiver, ExternalChannel

A ProtocolPresentation is a base for classes that applications can use when communicating with ProtocolSessions. Basically, a ProtocolPresentation gives the application programmer a friendlier interface to a protocol than manually creating and sending ExternalCapsules.


Constructor Summary
protected ProtocolPresentation()
          Construct an empty ProtocolPresentation.
 
Method Summary
 void disconnected()
           
 java.lang.Object getLocal()
           
 void recycleCapsule(ExternalCapsule ec)
           
protected  void revoke(Capability cap)
           
protected  void revokePermissions(Capability cap, PermissionSet ps)
           
 void sendCapsule(ExternalCapsule ec)
          Send an ExternalCapsule to the other end of this channel.
 void setLocal(java.lang.Object obj)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface bees.core.ExternalCapsuleReceiver
receive
 

Constructor Detail

ProtocolPresentation

protected ProtocolPresentation()
Construct an empty ProtocolPresentation.
Method Detail

setLocal

public void setLocal(java.lang.Object obj)
Specified by:
setLocal in interface ExternalChannel

getLocal

public java.lang.Object getLocal()
Specified by:
getLocal in interface ExternalChannel

sendCapsule

public void sendCapsule(ExternalCapsule ec)
Description copied from interface: ExternalChannel
Send an ExternalCapsule to the other end of this channel.
Specified by:
sendCapsule in interface ExternalChannel
Parameters:
ec - The ExternalCapsule to send to the protocol.

recycleCapsule

public void recycleCapsule(ExternalCapsule ec)
Specified by:
recycleCapsule in interface ExternalChannel

revoke

protected void revoke(Capability cap)

revokePermissions

protected void revokePermissions(Capability cap,
                                 PermissionSet ps)

disconnected

public void disconnected()
Specified by:
disconnected in interface ExternalChannel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/