|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.epfl.lsr.apex.APEXProfile
The PCApexProfile
handles incoming messages from the
underlying BEEP protocol.
It is responsible for channel creation as well as channel listening.
Field Summary | |
static String |
URI
Profile URI of APEX: http://iana.org/beep/APEX |
Constructor Summary | |
APEXProfile(APEXManager manager,
Object channelID)
Instantiates a APEXProfile with an associated
APEXManager for call backs and a channel identifier
for later message association. |
Method Summary | |
boolean |
advertiseProfile(Session session)
|
void |
closeChannel(Channel channel)
|
static String |
getURI()
Returns the URI of the APEX profile |
StartChannelListener |
init(String uri,
ProfileConfiguration profileConfig)
|
static Hashtable[] |
parseServiceConfigFile(APEXManager manager,
String configConfigurationFile)
Parses the service configuration file an creates ab array of Hashtables (2 elements) to store the service handlers and the service priorities. |
void |
receiveMSG(MessageMSG message)
Is called on incoming messages: parses the MessageMSG to an APEXMessage
calls the manager's handleIncomingMessage method
On a processing error, a error reply APEX.STATUS_GENERAL_SYNTAX_ERROR
is sent to the originator of the incoming message.
|
void |
startChannel(Channel channel,
String encoding,
String data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String URI
Constructor Detail |
public APEXProfile(APEXManager manager, Object channelID)
APEXProfile
with an associated
APEXManager
for call backs and a channel identifier
for later message association.
manager
- The APEXManager
channelID
- A channel identifierMethod Detail |
public StartChannelListener init(String uri, ProfileConfiguration profileConfig) throws BEEPException
init
in interface Profile
BEEPException
Profile.init(java.lang.String, org.beepcore.beep.profile.ProfileConfiguration)
public void receiveMSG(MessageMSG message)
Is called on incoming messages:
MessageMSG
to an APEXMessage
handleIncomingMessage
method
On a processing error, a error reply APEX.STATUS_GENERAL_SYNTAX_ERROR
is sent to the originator of the incoming message.
receiveMSG
in interface RequestHandler
public boolean advertiseProfile(Session session)
advertiseProfile
in interface StartChannelListener
StartChannelListener.advertiseProfile(org.beepcore.beep.core.Session)
public void closeChannel(Channel channel) throws CloseChannelException
closeChannel
in interface StartChannelListener
CloseChannelException
StartChannelListener.closeChannel(org.beepcore.beep.core.Channel)
public void startChannel(Channel channel, String encoding, String data) throws StartChannelException
startChannel
in interface StartChannelListener
StartChannelException
StartChannelListener.startChannel(org.beepcore.beep.core.Channel, java.lang.String, java.lang.String)
public static String getURI()
public static Hashtable[] parseServiceConfigFile(APEXManager manager, String configConfigurationFile)
manager
- The calling managerconfigConfigurationFile
- The configuration file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |