|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.lwclient.LwcMailbox
The LwcMailboxDirectory manages the creation and removal of mailboxes and message management
Field Summary | |
static com.bea.eci.logging.LogOutputStream |
log
|
Constructor Summary | |
LwcMailbox()
Default Constructor |
|
LwcMailbox(java.lang.String mbxName)
Constructor |
Method Summary | |
void |
addMessage(MessageInfo msginfo,
byte[] mesg,
boolean filesharing)
Adds a message to the mailbox. |
void |
createMailbox(java.lang.String name)
Create a mailbox with the specified name. |
void |
expungeMessages()
Deletes all messages from the mailbox. |
static LwcMailbox |
getInstance()
|
byte[] |
getMessage(java.lang.String msgid)
Returns the payload of the message with the specified id. |
int |
getMessageCount()
Returns the number of messages in the mailbox. |
MessageInfo[] |
getMessageInfos()
Returns info about all messages in the mailbox. |
byte[][] |
getNewMessagesContent()
Returns array of new message contents in given mailbox |
java.lang.String |
getSender(java.lang.String messageid)
Returns sender of a particular message in a mailbox |
boolean |
isExistMailbox(java.lang.String name)
Returns a boolean true if the mailbox with the specified name exists. |
void |
listen(java.lang.String outMbox,
java.lang.String url)
Listens for messages coming into the mailbox and sends an XML event to the internal JMS EventQueue. |
void |
removeMailbox(java.lang.String name)
Remove the mailbox with the specified name. |
void |
removeMessage(java.lang.String msgid)
Removes the message with the specified id from the mailbox. |
void |
setMessageStatus(java.lang.String msgid,
int status)
Sets the status of the message to the specified value. |
static void |
start()
This is the entry point for Lwc RMI registry allowing remote File Sharing Client access |
void |
startup(java.lang.String name,
java.util.Hashtable params)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static com.bea.eci.logging.LogOutputStream log
Constructor Detail |
public LwcMailbox()
public LwcMailbox(java.lang.String mbxName) throws LwcMailboxException
mbxName
- Name of the mailbox.Method Detail |
public static LwcMailbox getInstance()
public void createMailbox(java.lang.String name) throws LwcMailboxException, weblogic.rmi.RemoteException
name
- Name of the mailbox to create.public void removeMailbox(java.lang.String name) throws LwcMailboxException, weblogic.rmi.RemoteException
name
- Name of the mailbox to remove.public boolean isExistMailbox(java.lang.String name) throws LwcMailboxException, weblogic.rmi.RemoteException
name
- Name of the mailbox.public void addMessage(MessageInfo msginfo, byte[] mesg, boolean filesharing) throws LwcMailboxException, weblogic.rmi.RemoteException
msginfo
- Metadata info of the message.mesg
- The message payload.filesharing
- If true file sharing client tries to add messagepublic void removeMessage(java.lang.String msgid) throws LwcMailboxException, weblogic.rmi.RemoteException
msgid
- Identifier of the message to be removed.public int getMessageCount() throws LwcMailboxException, weblogic.rmi.RemoteException
public MessageInfo[] getMessageInfos() throws LwcMailboxException, weblogic.rmi.RemoteException
public byte[] getMessage(java.lang.String msgid) throws LwcMailboxException, weblogic.rmi.RemoteException
msgid
- Message id.public void setMessageStatus(java.lang.String msgid, int status) throws LwcMailboxException, weblogic.rmi.RemoteException
msgid
- Message id.status
- Message status.public void expungeMessages() throws LwcMailboxException, weblogic.rmi.RemoteException
public void listen(java.lang.String outMbox, java.lang.String url) throws weblogic.rmi.RemoteException
outMbox
- outgoing mailbox name.url
- Weblogic URL for JNDI context lookup.public java.lang.String getSender(java.lang.String messageid) throws LwcMailboxException, weblogic.rmi.RemoteException
messageid
- Unique Message Identifier.public byte[][] getNewMessagesContent() throws LwcMailboxException, weblogic.rmi.RemoteException
public void startup(java.lang.String name, java.util.Hashtable params) throws java.lang.Exception
public static void start() throws java.lang.Exception
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |