Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.messaging.transport
Interface GeneralHook


public interface GeneralHook

The general hook interface. The general hook is designed for logging, filtering, billing and other general purposes. If the message is modified, the modification should be effective for all related devices, instead just one of them.


Method Summary
 void destroy()
          Destroy the hook.
 void init(java.util.Properties properties)
          Initialize the hook.
 void onMessage(Destination[] devices, SenderInfo[] sis, Message message)
          The multiple-device on-message hook.
 void onMessage(Destination device, SenderInfo si, Message message)
          The single-device on-message hook.

 

Method Detail

destroy

public void destroy()
Destroy the hook.

init

public void init(java.util.Properties properties)
Initialize the hook.
Parameters:
properties - the hook's properties.

onMessage

public void onMessage(Destination[] devices,
                      SenderInfo[] sis,
                      Message message)
The multiple-device on-message hook.
Parameters:
devices - the devices related to the message.
sis - the senders' information.
message - the message.

onMessage

public void onMessage(Destination device,
                      SenderInfo si,
                      Message message)
The single-device on-message hook.
Parameters:
device - the device related to the message.
si - the sender information.
message - the message.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.