org.elkoserver.server.gatekeeper
Interface ReservationResultHandler


public interface ReservationResultHandler

Interface for an Authorizer object to deliver the results of servicing a client's reservation request.


Method Summary
 void handleFailure(String failure)
          Deliver the results of unsuccessfully processing a reservation request.
 void handleReservation(String actor, String context, String name, String hostport, String auth)
          Deliver the results of successfully processing a reservation request.
 

Method Detail

handleReservation

void handleReservation(String actor,
                       String context,
                       String name,
                       String hostport,
                       String auth)
Deliver the results of successfully processing a reservation request. The various parameters should describe how to connect to the server upon which the reservation was made.

Parameters:
actor - Actor name to connect as or null to indicate that the originally requested ID is appropriate to use.
context - Name of the context to actually enter.
name - Human readable label to present, or null if not applicable.
hostport - String, in the form host:port, identifying the host and port number to connect to.
auth - Authorization code to tender to the indicated host for admission.

handleFailure

void handleFailure(String failure)
Deliver the results of unsuccessfully processing a reservation request.

Parameters:
failure - Error message in the case of failure or null in case of success.