|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MailboxHandler
The MailboxHandler is responsible for creating a logical connection to the client. It may modify the MailboxAddress that the client will use for future messages, and it may create and manage custom state for that logical connection.
| Method Summary | |
|---|---|
AddressClosedException |
handleClose(MailboxAddress address)
Called after a client closes a logical connection. |
MailboxAddress |
handleOpen(Mailbox originalMailbox,
MailboxAddress originalAddress,
MailboxAddress replyAddress)
Called when a client looks up a MailboxAddress. |
| Method Detail |
|---|
MailboxAddress handleOpen(Mailbox originalMailbox,
MailboxAddress originalAddress,
MailboxAddress replyAddress)
originalMailbox - the original Mailbox connected to.originalAddress - a new private MailboxAddress created by the system for the client to use
communicate with Mailbox.replyAddress - the address to reply to.
originalAddress is often returned, but a MailboxHandler can create a new
new private Mailbox and return a MailboxAddress to this newAddressClosedException handleClose(MailboxAddress address)
address - the closed MailboxAddress.
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||