|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.mobile.MobileAdapter
public class MobileAdapter
The implementation class that implements the DataAdapter interface. There are two kinds of the invocation, one is passing the serializable JavaBean. Another is passing the Map object.
Constructor Summary | |
---|---|
MobileAdapter()
|
Method Summary | |
---|---|
boolean |
establishSession()
Create the session with the server side |
java.io.Serializable |
invoke(java.lang.String operationName,
java.util.Map param,
java.lang.String responseDataId)
Invoke server side operation and return the processing result. |
java.io.Serializable |
invoke(java.lang.String operationName,
java.io.Serializable param)
Invoke server side operation and return the processing result If the passed java bean and returned result are the same, use this API to invoke server side operation. |
protected java.io.Serializable |
processResponse(HttpConnection connection)
processing the response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MobileAdapter()
Method Detail |
---|
protected java.io.Serializable processResponse(HttpConnection connection) throws java.io.IOException, ErrorResponseException, MobileException
connection
- the HTTP connection used to connect to the server
java.io.IOException
- error occurs during processing response
ErrorResponseException
MobileException
public boolean establishSession() throws ErrorResponseException, java.io.IOException, MobileException
DataAdapter
establishSession
in interface DataAdapter
ErrorResponseException
- if the response code isn't OK
java.io.IOException
- error occurs during connecting to the server
MobileException
- if exception occursDataAdapter.establishSession()
public java.io.Serializable invoke(java.lang.String operationName, java.io.Serializable param) throws ErrorResponseException, java.io.IOException, MobileException
DataAdapter
invoke
in interface DataAdapter
param
- the Serializable JavaBean passed to server side
ErrorResponseException
- if the response code isn't OK
java.io.IOException
- error occurs during connecting to the server
MobileException
- if exception occursDataAdapter.invoke(String, Serializable)
public java.io.Serializable invoke(java.lang.String operationName, java.util.Map param, java.lang.String responseDataId) throws ErrorResponseException, java.io.IOException, MobileException
DataAdapter
invoke
in interface DataAdapter
operationName
- the operation nameparam
- The Map contains the JavaBean or Simple Java Object passed to the server side.
The key is the data id defined in the server side operation context definitionresponseDataId
- the response data id defined in the server side operation context
ErrorResponseException
- if the response code isn't OK
java.io.IOException
- error occurs during connecting to the server
MobileException
- if exception occursDataAdapter.invoke(String, Map, String)
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |