|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.adapter.http.event.HttpAdapterInvokeAdapter
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; } ... }
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 |
public HttpAdapterInvokeAdapter()
Method Detail |
public void afterConnect(HttpAdapterInvokeEvent event)
afterConnect
in interface HttpAdapterInvokeListener
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void beforeConnect(HttpAdapterInvokeEvent event)
beforeConnect
in interface HttpAdapterInvokeListener
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void invokeBegin(HttpAdapterInvokeEvent event)
invokeBegin
in interface HttpAdapterInvokeListener
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void invokeEnd(HttpAdapterInvokeEvent event)
invokeEnd
in interface HttpAdapterInvokeListener
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void invokeError(HttpAdapterInvokeEvent event)
invokeError
in interface HttpAdapterInvokeListener
event
- An HttpAdapterInvokeEvent object describing the current status of the method execution
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |