Oracle Application Server Wireless Java API Reference
B10400-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.

Author:
jxiang

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

init

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

destroy

public void destroy()
Destroy the hook.

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.

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.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.