net.sf.beep4j.internal
Class DefaultStartSessionRequest

java.lang.Object
  extended by net.sf.beep4j.internal.DefaultStartSessionRequest
All Implemented Interfaces:
StartSessionRequest

public class DefaultStartSessionRequest
extends java.lang.Object
implements StartSessionRequest

Default implementation of the StartSessionRequest interface.

Author:
Simon Raess

Constructor Summary
DefaultStartSessionRequest(boolean cancellable)
           
 
Method Summary
 void cancel()
          Cancels the Session by sending an error element in a negative reply.
 java.lang.String getMessage()
           
 java.lang.String[] getProfiles()
           
 int getReplyCode()
           
 boolean isCancellable()
           
 boolean isCancelled()
           
 void registerProfile(java.lang.String profileUri)
          Registers a profile URI, which will be advertised as part of the greeting element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStartSessionRequest

public DefaultStartSessionRequest(boolean cancellable)
Method Detail

isCancellable

public boolean isCancellable()

isCancelled

public boolean isCancelled()

getReplyCode

public int getReplyCode()

getMessage

public java.lang.String getMessage()

getProfiles

public java.lang.String[] getProfiles()

cancel

public void cancel()
Description copied from interface: StartSessionRequest
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'.

Specified by:
cancel in interface StartSessionRequest

registerProfile

public void registerProfile(java.lang.String profileUri)
Description copied from interface: StartSessionRequest
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.

Specified by:
registerProfile in interface StartSessionRequest
Parameters:
profileUri - the profile URI to be advertised


Copyright © 2007 null. All Rights Reserved.