Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.adapter.http.event
Interface HttpAdapterInvokeListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
HttpAdapterInvokeAdapter

public interface HttpAdapterInvokeListener
extends java.util.EventListener

An "HttpAdapter" event gets fired during the execution of the invoke method of the HttpAdapter. You can register an HttpAdapterInvokeListener with an instace of the HttpAdapter by specifying the listener implementation full class name as an init argument.

The implementations must implement the Singleton design pattern and define a method getInstance. Here is an example public class HttpAdapterInvokeListenerImpl implements HttpAdapterInvokeListener { private static HttpAdapterInvokeListener instance; public static synchronized HttpAdapterInvokeListener getInstance() { if (instance == null) { instance = new HttpAdapterInvokeListenerImpl(); } return instance; } ... }

Author:
Hristo Tonev
See Also:
RuntimeAdapter, HttpAdapter

Method Summary
 void afterConnect(HttpAdapterInvokeEvent event)
          This method gets called just after the adapter fetched content from the back end server.
 void beforeConnect(HttpAdapterInvokeEvent event)
          This method gets called just before a connection to the back end server is opened.
 void invokeBegin(HttpAdapterInvokeEvent event)
          This method gets called in the very beginning of the invoke method before anything has been done.
 void invokeEnd(HttpAdapterInvokeEvent event)
          This method gets called in the very end of the invoke method just before it returns.
 void invokeError(HttpAdapterInvokeEvent event)
          This method gets called just after the adapter fetched content from the back end server.

 

Method Detail

invokeBegin

public void invokeBegin(HttpAdapterInvokeEvent event)
This method gets called in the very beginning of the invoke method before anything has been done.
Parameters:
event - An HttpAdapterInvokeEvent object describing the current status of the method execution

invokeEnd

public void invokeEnd(HttpAdapterInvokeEvent event)
This method gets called in the very end of the invoke method just before it returns.
Parameters:
event - An HttpAdapterInvokeEvent object describing the current status of the method execution

beforeConnect

public void beforeConnect(HttpAdapterInvokeEvent event)
This method gets called just before a connection to the back end server is opened.
Parameters:
event - An HttpAdapterInvokeEvent object describing the current status of the method execution

afterConnect

public void afterConnect(HttpAdapterInvokeEvent event)
This method gets called just after the adapter fetched content from the back end server.
Parameters:
event - An HttpAdapterInvokeEvent object describing the current status of the method execution

invokeError

public void invokeError(HttpAdapterInvokeEvent event)
This method gets called just after the adapter fetched content from the back end server.
Parameters:
event - An HttpAdapterInvokeEvent object describing the current status of the method execution

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.