dip.net.message
Interface PressChannel


public interface PressChannel

Defines a Channel for sending Press messages.

Before opening a channel, a PressListener should be added, because PressListeners receive error events (e.g., if an error occured while opening a channel).


Method Summary
 void addPressListener(PressListener pressListener)
          Add a Press Listener
 boolean areSendsAcknowledged()
          Returns true if sent press messages are acknowledged.
 void checkNew()
          Explicitly check for new Press
 void close()
          Close a PressChannel.
 PressMessage compose(MID from, MID[] to, java.lang.String subject, java.lang.String body)
          Compose a message (to multiple recipients)
 PressMessage compose(MID from, MID to, java.lang.String subject, java.lang.String body)
          Compose a message (to a single recipient)
 PressMessage composeBroadcast(MID from, java.lang.String subject, java.lang.String body)
          Compose a broadcast message
 PressConfiguration getPressConfiguration()
          Get the current configuration
 void open(PressConfiguration pressConfig)
          Open a PressChannel, configured with the given PressConfiguration object.
 void removePressListener(PressListener pressListener)
          Remove a Press Listener
 void sendPress(PressMessage msg)
          Send Press
 

Method Detail

open

public void open(PressConfiguration pressConfig)
Open a PressChannel, configured with the given PressConfiguration object.


close

public void close()
Close a PressChannel.


getPressConfiguration

public PressConfiguration getPressConfiguration()
Get the current configuration


checkNew

public void checkNew()
Explicitly check for new Press


sendPress

public void sendPress(PressMessage msg)
Send Press


addPressListener

public void addPressListener(PressListener pressListener)
Add a Press Listener


removePressListener

public void removePressListener(PressListener pressListener)
Remove a Press Listener


areSendsAcknowledged

public boolean areSendsAcknowledged()
Returns true if sent press messages are acknowledged.


composeBroadcast

public PressMessage composeBroadcast(MID from,
                                     java.lang.String subject,
                                     java.lang.String body)
Compose a broadcast message


compose

public PressMessage compose(MID from,
                            MID to,
                            java.lang.String subject,
                            java.lang.String body)
Compose a message (to a single recipient)


compose

public PressMessage compose(MID from,
                            MID[] to,
                            java.lang.String subject,
                            java.lang.String body)
Compose a message (to multiple recipients)



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.