net.sf.beep4j.internal
Class DefaultStartSessionRequest
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStartSessionRequest
public DefaultStartSessionRequest(boolean cancellable)
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.