|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.mw.jco.JCO.Connection
com.sap.mw.jco.JCO.Server
com.sap.mw.idoc.jco.JCoIDoc.Server
com.waveset.adapter.SAPHRActiveSyncAdapter.AdapterIDocServer
Class MyIDocServer is for receiving IDocs and function requests. The reason for implementing the class as an inner class of the adapter is only to keep all the source code within one file.
Field Summary |
Fields inherited from class com.sap.mw.jco.JCO.Server |
AUTHORIZATION_MODE_BASIC, AUTHORIZATION_MODE_SNC, FUNCTION_MODEL, m_middleware, REQUEST_RESPONSE_MODEL |
Fields inherited from class com.sap.mw.jco.JCO.Connection |
attributes, codepage_converter, conn_object, conn_params, connection_cpc_mode, dsr_monitor, jarm_monitor, last_active_timestamp, num_received_bytes, num_sent_bytes, passport_bytes, pool, properties, rfc_handle, rfm_name, start_time, state, throughput, time_handle_request, time_middleware, time_total |
Constructor Summary | |
SAPHRActiveSyncAdapter.AdapterIDocServer(java.util.Properties properties,
com.sap.mw.jco.IRepository jcoRepository,
com.sap.mw.idoc.IDoc.Repository idocRepository)
Overridden constructor of JCoIDoc.Server. |
|
SAPHRActiveSyncAdapter.AdapterIDocServer(java.lang.String gwhost,
java.lang.String gwserv,
java.lang.String progid,
com.sap.mw.jco.IRepository jcoRepository,
com.sap.mw.idoc.IDoc.Repository idocRepository)
Overridden constructor of JCoIDoc.Server. |
Method Summary | |
protected void |
getPath(com.sap.mw.idoc.IDoc.Segment seg,
java.lang.StringBuffer sb)
Recurse up the tree, put the segment names in the string buffer as the recursion unwinds. |
protected void |
handleRequest(com.sap.mw.idoc.IDoc.DocumentList documentList)
Overridden method of JCoIDoc.Server. |
protected void |
handleRequest(com.sap.mw.jco.JCO.Function function)
Overridden method of JCoIDoc.Server. |
protected boolean |
onCheckTID(java.lang.String tid)
This function will be invoked when a transactional RFC is being called from a SAP R/3 system. |
protected void |
onCommit(java.lang.String tid)
This function will be called after all RFC functions belonging to a certain transaction have been successfully completed. |
protected void |
onConfirmTID(java.lang.String tid)
This function will be called after the local transaction has been completed. |
protected void |
onRollback(java.lang.String tid)
This function will be called if an error in one of the RFC functions belonging to a certain transaction has occurred. |
protected SAPHRActiveSyncAdapter.IDOC_Segment |
processRecord(com.sap.mw.idoc.IDoc.Segment seg,
java.util.Set infotypeFilter)
Read the IDOC record and convert it to a Map. |
Methods inherited from class com.sap.mw.idoc.jco.JCoIDoc.Server |
dispatchRequest, getFunction, getIDocRepository, setIDocRepository |
Methods inherited from class com.sap.mw.jco.JCO.Server |
abort, beginCall, checkAuthorization, disconnect, endCall, getAttributes, getCallModel, getDsrPassport, getGWHost, getGWServ, getMiddlewareImplementation, getProgID, getPropertyInfo, getRepository, getServerInterface, getState, getThread, getTrace, handleRequest, isAlive, listen, run, setCallModel, setProperty, setRepository, setState, setThread, setTrace, start, stop, suspend |
Methods inherited from class com.sap.mw.jco.JCO.Connection |
checkProperties, clone, finalize, getConnectionHandle, getProperties, getProperty, getThroughput, isValid, setThroughput |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SAPHRActiveSyncAdapter.AdapterIDocServer(java.lang.String gwhost, java.lang.String gwserv, java.lang.String progid, com.sap.mw.jco.IRepository jcoRepository, com.sap.mw.idoc.IDoc.Repository idocRepository)
public SAPHRActiveSyncAdapter.AdapterIDocServer(java.util.Properties properties, com.sap.mw.jco.IRepository jcoRepository, com.sap.mw.idoc.IDoc.Repository idocRepository)
Method Detail |
protected void handleRequest(com.sap.mw.jco.JCO.Function function)
protected void handleRequest(com.sap.mw.idoc.IDoc.DocumentList documentList)
protected void getPath(com.sap.mw.idoc.IDoc.Segment seg, java.lang.StringBuffer sb)
protected SAPHRActiveSyncAdapter.IDOC_Segment processRecord(com.sap.mw.idoc.IDoc.Segment seg, java.util.Set infotypeFilter)
seg
- - the IDoc.segment to processinfotypeFilter
- - the infotype filter resource attribute.
protected boolean onCheckTID(java.lang.String tid)
true
. The method has to
return false
if the a transaction with this ID has
already been processed. Throw an exception if anything goes wrong. The
transaction processing will be aborted thereafter. Derived
servers must override this method to actually implement the
transaction ID management.
tid
- the transaction ID
true
if the ID is valid and not in use
otherwise, false
otherwiseprotected void onConfirmTID(java.lang.String tid)
tid
- the transaction IDprotected void onCommit(java.lang.String tid)
tid
- the transaction IDprotected void onRollback(java.lang.String tid)
tid
- the transaction ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |