public abstract class SapFunctionFacade extends Object implements ISapFunctionFacade
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
log |
| Constructor and Description |
|---|
SapFunctionFacade() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateStaticFieldIndices(com.sap.conn.jco.JCoFunctionTemplate ft)
This method must be called from configure().
|
void |
closeFacade() |
void |
configure() |
protected int |
findFieldIndex(com.sap.conn.jco.JCoParameterList params,
int index,
String name)
Calculate the index of the field that corresponds with the message as a whole.
|
Message |
functionCall2message(com.sap.conn.jco.JCoFunction function) |
Message |
functionResult2message(com.sap.conn.jco.JCoFunction function) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
ClassLoader |
getConfigurationClassLoader() |
int |
getCorrelationIdFieldIndex() |
String |
getCorrelationIdFieldName() |
String |
getCorrelationIdFromField(com.sap.conn.jco.JCoFunction function) |
String |
getDomain() |
protected abstract String |
getFunctionName()
Listeners and IdocSenders don't use a functionName
|
protected com.sap.conn.jco.JCoFunctionTemplate |
getFunctionTemplate() |
protected com.sap.conn.jco.JCoFunctionTemplate |
getFunctionTemplate(SapSystemImpl sapSystem,
String functionName) |
protected String |
getLogPrefix() |
String |
getName() |
String |
getPhysicalDestinationName() |
int |
getReplyFieldIndex() |
String |
getReplyFieldName() |
int |
getRequestFieldIndex() |
String |
getRequestFieldName() |
SapSystemImpl |
getSapSystem() |
SapSystemImpl |
getSapSystem(String systemName) |
String |
getSapSystemName() |
void |
message2FunctionCall(com.sap.conn.jco.JCoFunction function,
String request,
String correlationId,
ParameterValueList pvl) |
void |
message2FunctionResult(com.sap.conn.jco.JCoFunction function,
String result) |
void |
openFacade() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCorrelationIdFieldIndex(int i) |
void |
setCorrelationIdFieldName(String string) |
void |
setName(String string) |
protected static void |
setParameters(com.sap.conn.jco.JCoParameterList inputOrOutputParameterList,
com.sap.conn.jco.JCoParameterList tableParameterList,
String message,
int fieldIndex) |
void |
setReplyFieldIndex(int i) |
void |
setReplyFieldName(String string) |
void |
setRequestFieldIndex(int i) |
void |
setRequestFieldName(String string) |
void |
setSapSystemName(String string) |
protected String getLogPrefix()
public void configure()
throws ConfigurationException
configure in interface IConfigurableConfigurationExceptionpublic void openFacade()
throws SapException
SapExceptionpublic void closeFacade()
public String getPhysicalDestinationName()
getPhysicalDestinationName in interface HasPhysicalDestinationprotected static void setParameters(com.sap.conn.jco.JCoParameterList inputOrOutputParameterList,
com.sap.conn.jco.JCoParameterList tableParameterList,
String message,
int fieldIndex)
throws SapException
SapExceptionprotected void calculateStaticFieldIndices(com.sap.conn.jco.JCoFunctionTemplate ft)
ft - protected int findFieldIndex(com.sap.conn.jco.JCoParameterList params,
int index,
String name)
public String getCorrelationIdFromField(com.sap.conn.jco.JCoFunction function)
public Message functionCall2message(com.sap.conn.jco.JCoFunction function)
public Message functionResult2message(com.sap.conn.jco.JCoFunction function)
public void message2FunctionCall(com.sap.conn.jco.JCoFunction function,
String request,
String correlationId,
ParameterValueList pvl)
throws SapException
SapExceptionpublic void message2FunctionResult(com.sap.conn.jco.JCoFunction function,
String result)
throws SapException
SapExceptionpublic SapSystemImpl getSapSystem() throws SapException
SapExceptionpublic SapSystemImpl getSapSystem(String systemName) throws SapException
SapExceptionprotected com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate()
throws SapException
SapExceptionprotected com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate(SapSystemImpl sapSystem, String functionName) throws SapException
SapException@IbisDoc(value={"1","Name of the Ibis-object",""}) public void setName(String string)
setName in interface INamedObject@IbisDoc(value={"2","name of the {@link SapSystem} used by this object",""}) public void setSapSystemName(String string)
setSapSystemName in interface ISapFunctionFacade@IbisDoc(value={"3","Index of the field in the ImportParameterList of the RFC function that contains the correlationId","0"}) public void setCorrelationIdFieldIndex(int i)
setCorrelationIdFieldIndex in interface ISapFunctionFacade@IbisDoc(value={"4","Name of the field in the ImportParameterList of the RFC function that contains the correlationId",""}) public void setCorrelationIdFieldName(String string)
setCorrelationIdFieldName in interface ISapFunctionFacade@IbisDoc(value={"5","Index of the field in the ImportParameterList of the RFC function that contains the whole request message contents","0"}) public void setRequestFieldIndex(int i)
setRequestFieldIndex in interface ISapFunctionFacade@IbisDoc(value={"6","Name of the field in the ImportParameterList of the RFC function that contains the whole request message contents",""}) public void setRequestFieldName(String string)
setRequestFieldName in interface ISapFunctionFacade@IbisDoc(value={"7","Index of the field in the ExportParameterList of the RFC function that contains the whole reply message contents","0"}) public void setReplyFieldIndex(int i)
setReplyFieldIndex in interface ISapFunctionFacade@IbisDoc(value={"8","Name of the field in the ExportParameterList of the RFC function that contains the whole reply message contents",""}) public void setReplyFieldName(String string)
setReplyFieldName in interface ISapFunctionFacadeprotected abstract String getFunctionName()
public String getDomain()
getDomain in interface HasPhysicalDestinationpublic ClassLoader getConfigurationClassLoader()
getConfigurationClassLoader in interface IScopeProviderpublic org.springframework.context.ApplicationContext getApplicationContext()
getApplicationContext in interface IConfigurationAwarepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic String getName()
getName in interface IConfigurationAwaregetName in interface INamedObjectpublic String getSapSystemName()
public int getCorrelationIdFieldIndex()
public String getCorrelationIdFieldName()
public int getRequestFieldIndex()
public String getRequestFieldName()
public int getReplyFieldIndex()
public String getReplyFieldName()
Copyright © 2023 Frank!Framework. All rights reserved.