|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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; } ... }
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 |
public void invokeBegin(HttpAdapterInvokeEvent event)
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void invokeEnd(HttpAdapterInvokeEvent event)
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void beforeConnect(HttpAdapterInvokeEvent event)
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void afterConnect(HttpAdapterInvokeEvent event)
event
- An HttpAdapterInvokeEvent object describing the current status of the method executionpublic void invokeError(HttpAdapterInvokeEvent event)
event
- An HttpAdapterInvokeEvent object describing the current status of the method execution
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |