net.sf.beep4j
Interface StartSessionRequest

All Known Implementing Classes:
DefaultStartSessionRequest

public interface StartSessionRequest

The StartSessionRequest is used when establishing a session to register profiles or to cancel the session.

Author:
Simon Raess

Method Summary
 void cancel()
          Cancels the Session by sending an error element in a negative reply.
 void registerProfile(java.lang.String profileUri)
          Registers a profile URI, which will be advertised as part of the greeting element.
 

Method Detail

registerProfile

void registerProfile(java.lang.String profileUri)
Registers a profile URI, which will be advertised as part of the greeting element. This method may be called zero or more times, depending on how many profiles the peer wants to advertise.

Parameters:
profileUri - the profile URI to be advertised

cancel

void cancel()
Cancels the Session by sending an error element in a negative reply. The error code is 421. The meaning of this code is 'service not available'.



Copyright © 2007 null. All Rights Reserved.