Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.adapter.http.event
Class HttpAdapterInvokeAdapter

java.lang.Object
  |
  +--oracle.panama.adapter.http.event.HttpAdapterInvokeAdapter
All Implemented Interfaces:
java.util.EventListener, HttpAdapterInvokeListener

public abstract class HttpAdapterInvokeAdapter
extends java.lang.Object
implements HttpAdapterInvokeListener

An abstract adapter class for receiving "HttpAdapterInvoke" events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a HttpAdapterInvokeInvokeEvent listener and override the methods for the events of interest. (If you implement the HttpAdapterInvokeListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

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

Author:
Hristo Tonev
See Also:
HttpAdapterInvokeEvent, HttpAdapterInvokeListener

Constructor Summary
HttpAdapterInvokeAdapter()
           

 

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.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

HttpAdapterInvokeAdapter

public HttpAdapterInvokeAdapter()
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.
Specified by:
invokeBegin in interface HttpAdapterInvokeListener
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.
Specified by:
invokeEnd in interface HttpAdapterInvokeListener
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.
Specified by:
beforeConnect in interface HttpAdapterInvokeListener
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.
Specified by:
afterConnect in interface HttpAdapterInvokeListener
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.
Specified by:
invokeError in interface HttpAdapterInvokeListener
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.