edu.sdsc.inca.protocol
Class StandardMessageHandler

java.lang.Object
  extended by edu.sdsc.inca.protocol.MessageHandler
      extended by edu.sdsc.inca.protocol.StandardMessageHandler
Direct Known Subclasses:
GetLog, LogConfig, Permit, Ping, Revoke, RevokeAll, VerifyProtocolVersion

public abstract class StandardMessageHandler
extends MessageHandler

Author:
Paul Hoover

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.sdsc.inca.protocol.MessageHandler
MessageHandler.Permittee, MessageHandler.PermitteeGroup
 
Field Summary
 
Fields inherited from class edu.sdsc.inca.protocol.MessageHandler
logger
 
Constructor Summary
StandardMessageHandler()
           
 
Method Summary
 void execute(ProtocolReader reader, java.io.OutputStream output, java.lang.String dn)
          Service an incoming request from a specified client DN, using specified i/o streams.
abstract  void execute(ProtocolReader reader, ProtocolWriter writer, java.lang.String dn)
          Service an incoming request from a specified client DN, using specified i/o streams.
 
Methods inherited from class edu.sdsc.inca.protocol.MessageHandler
errorReply, getAllPermittees, getPermissionsAsXml, getPermittees, getPermittees, grantPeerPermission, grantPermission, isPermitted, resetPermissions, revokeAllPermissions, revokePeerPermission, revokePermission, setPermissionsFromXml, setPermissionsFromXml, setPermissionsPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardMessageHandler

public StandardMessageHandler()
Method Detail

execute

public void execute(ProtocolReader reader,
                    java.io.OutputStream output,
                    java.lang.String dn)
             throws java.lang.Exception
Service an incoming request from a specified client DN, using specified i/o streams. Close the reader and writer to indicate that the client connection should be closed.

Specified by:
execute in class MessageHandler
Parameters:
reader - the reader connected to the client
output - the output stream connected to the client
dn - the DN of the client, null if no authentication
Throws:
java.lang.Exception

execute

public abstract void execute(ProtocolReader reader,
                             ProtocolWriter writer,
                             java.lang.String dn)
                      throws java.lang.Exception
Service an incoming request from a specified client DN, using specified i/o streams. Close the reader and writer to indicate that the client connection should be closed.

Parameters:
reader - the reader connected to the client
writer - the writer connected to the client
dn - the DN of the client, null if no authentication
Throws:
java.lang.Exception