|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.xbd.extension.JCOStreamService
Provides a stream interface for the SAP Java Connector (JCO). As client, a XML stream can call a RFC enabled function and the result is serialised into an XML stream. As server, a XML stream is received, the stream is forwarded to HTTP POST service and the result will send back.
Field Summary | |
protected CacheController |
handles
Caches and controlls connection handles |
protected boolean |
isTracing
Flag for next tracing |
protected Logger |
logger
Writes log information to this logger; |
Constructor Summary | |
JCOStreamService()
|
Method Summary | |
java.io.InputStream |
call(java.lang.String connectionContext,
org.w3c.dom.Document request)
|
java.io.InputStream |
call(java.lang.String connectionContext,
java.io.InputStream request)
|
void |
call(java.lang.String connectionContext,
java.io.InputStream request,
java.io.OutputStream result)
|
void |
closeClient(java.lang.String connectionContext)
Close and release all connection handles from this client connectionContext . |
java.lang.String |
connectClient(java.lang.String client,
java.lang.String userID,
java.lang.String password,
java.lang.String language,
java.lang.String host,
java.lang.String systemNumber)
|
java.lang.String |
connectClientWithLoadBalancing(java.lang.String client,
java.lang.String userID,
java.lang.String password,
java.lang.String language,
java.lang.String mshost,
java.lang.String r3name,
java.lang.String group)
|
java.lang.String |
connectServer(java.lang.String gwhost,
java.lang.String gwserv,
java.lang.String programID,
ServerDispatcher dispatcher,
java.io.InputStream repositoryInput,
java.util.Properties properties)
|
protected static void |
doWrite(org.w3c.dom.Element node,
java.io.OutputStream output)
|
protected static void |
doWrite(org.w3c.dom.Element node,
java.io.Writer output)
|
boolean |
existServer(java.lang.String connectionContext)
|
java.io.InputStream |
getFunctionTemplate(java.lang.String connectionContext,
java.lang.String function)
|
void |
getFunctionTemplate(java.lang.String connectionContext,
java.lang.String function,
java.io.OutputStream result)
|
protected void |
getRequestFieldsFor(com.sap.mw.jco.JCO.Function jcoFunction,
org.w3c.dom.Document request,
boolean importParm,
boolean exportParm,
boolean tableParm)
Parses the document request , reads the parameter and
fills the values into jcoFunction . |
protected void |
getRequestFieldsFor(com.sap.mw.jco.JCO.Function jcoFunction,
java.io.InputStream request,
boolean importParm,
boolean exportParm,
boolean tableParm)
|
protected void |
getResultFor(com.sap.mw.jco.IFunctionTemplate jcoFunction,
java.io.Writer writer,
boolean importParm,
boolean exportParm,
boolean tableParm)
|
protected void |
getResultFor(com.sap.mw.jco.JCO.Function jcoFunction,
java.io.OutputStream output,
boolean importParm,
boolean exportParm,
boolean tableParm)
|
protected void |
getResultFor(com.sap.mw.jco.JCO.Function jcoFunction,
java.io.Writer writer,
boolean importParm,
boolean exportParm,
boolean tableParm)
|
static java.lang.String |
getRevision()
Returns CVS revision. |
java.lang.String |
getServerConnectionContext(java.lang.String gwhost,
java.lang.String gwserv,
java.lang.String programID)
|
protected boolean |
isElement(org.w3c.dom.Node node)
|
static void |
main(java.lang.String[] args)
|
void |
notifyNonActivityTimeout(java.lang.Object key,
java.lang.Object value)
Notify timeouts for handles |
protected void |
registerFunction(com.sap.mw.jco.IRepository repository,
org.w3c.dom.Element functionTemplate,
boolean unicode)
|
void |
registerFunction(java.lang.String connectionContext,
java.io.InputStream request,
boolean unicode)
|
protected void |
registerParameter(com.sap.mw.jco.IRepository repository,
org.w3c.dom.Element param,
com.sap.mw.jco.JCO.MetaData fmeta,
boolean unicode)
|
void |
resetClientRepository(java.lang.String connectionContext)
|
protected void |
resetRepository(com.sap.mw.jco.IRepository repository)
|
void |
setTrace(boolean value)
Set trace or stop trace for next connect request. |
void |
setTraceDirectory(java.lang.String directory)
Set the target directory for trace files. |
void |
startServer(java.lang.String connectionContext,
int workers)
|
void |
stopServer(java.lang.String connectionContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CacheController handles
protected boolean isTracing
protected Logger logger
Constructor Detail |
public JCOStreamService()
Method Detail |
public static java.lang.String getRevision()
public java.lang.String connectClient(java.lang.String client, java.lang.String userID, java.lang.String password, java.lang.String language, java.lang.String host, java.lang.String systemNumber) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String connectClientWithLoadBalancing(java.lang.String client, java.lang.String userID, java.lang.String password, java.lang.String language, java.lang.String mshost, java.lang.String r3name, java.lang.String group) throws java.lang.Throwable
java.lang.Throwable
public void call(java.lang.String connectionContext, java.io.InputStream request, java.io.OutputStream result) throws java.lang.Throwable
java.lang.Throwable
public java.io.InputStream call(java.lang.String connectionContext, java.io.InputStream request) throws java.lang.Throwable
java.lang.Throwable
public java.io.InputStream call(java.lang.String connectionContext, org.w3c.dom.Document request) throws java.lang.Throwable
java.lang.Throwable
public void closeClient(java.lang.String connectionContext)
connectionContext
.
connectionContext
- public java.io.InputStream getFunctionTemplate(java.lang.String connectionContext, java.lang.String function) throws java.lang.Throwable
java.lang.Throwable
public void getFunctionTemplate(java.lang.String connectionContext, java.lang.String function, java.io.OutputStream result) throws java.lang.Throwable
java.lang.Throwable
protected void getResultFor(com.sap.mw.jco.JCO.Function jcoFunction, java.io.OutputStream output, boolean importParm, boolean exportParm, boolean tableParm) throws java.lang.Throwable
java.lang.Throwable
protected void getResultFor(com.sap.mw.jco.JCO.Function jcoFunction, java.io.Writer writer, boolean importParm, boolean exportParm, boolean tableParm) throws java.lang.Throwable
java.lang.Throwable
protected void getResultFor(com.sap.mw.jco.IFunctionTemplate jcoFunction, java.io.Writer writer, boolean importParm, boolean exportParm, boolean tableParm) throws java.lang.Throwable
java.lang.Throwable
protected void getRequestFieldsFor(com.sap.mw.jco.JCO.Function jcoFunction, java.io.InputStream request, boolean importParm, boolean exportParm, boolean tableParm) throws java.lang.Throwable
java.lang.Throwable
protected void getRequestFieldsFor(com.sap.mw.jco.JCO.Function jcoFunction, org.w3c.dom.Document request, boolean importParm, boolean exportParm, boolean tableParm) throws java.lang.Throwable
request
, reads the parameter and
fills the values into jcoFunction
.
jcoFunction
- Fill with parameter valuesrequest
- Source document
java.lang.Throwable
protected static void doWrite(org.w3c.dom.Element node, java.io.OutputStream output) throws java.io.IOException
java.io.IOException
protected static void doWrite(org.w3c.dom.Element node, java.io.Writer output) throws java.io.IOException
java.io.IOException
public void registerFunction(java.lang.String connectionContext, java.io.InputStream request, boolean unicode) throws java.lang.Throwable
java.lang.Throwable
protected void registerFunction(com.sap.mw.jco.IRepository repository, org.w3c.dom.Element functionTemplate, boolean unicode) throws java.lang.Throwable
java.lang.Throwable
protected boolean isElement(org.w3c.dom.Node node)
protected void registerParameter(com.sap.mw.jco.IRepository repository, org.w3c.dom.Element param, com.sap.mw.jco.JCO.MetaData fmeta, boolean unicode) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String connectServer(java.lang.String gwhost, java.lang.String gwserv, java.lang.String programID, ServerDispatcher dispatcher, java.io.InputStream repositoryInput, java.util.Properties properties) throws java.lang.Throwable
java.lang.Throwable
public void startServer(java.lang.String connectionContext, int workers) throws java.lang.Throwable
java.lang.Throwable
public void stopServer(java.lang.String connectionContext) throws java.lang.Throwable
java.lang.Throwable
public java.lang.String getServerConnectionContext(java.lang.String gwhost, java.lang.String gwserv, java.lang.String programID)
public boolean existServer(java.lang.String connectionContext)
public void setTrace(boolean value)
value
- Set trace optionpublic void setTraceDirectory(java.lang.String directory)
directory
- Namepublic void notifyNonActivityTimeout(java.lang.Object key, java.lang.Object value)
notifyNonActivityTimeout
in interface CacheController.Interface
key
- value
- public void resetClientRepository(java.lang.String connectionContext) throws java.lang.Throwable
java.lang.Throwable
protected void resetRepository(com.sap.mw.jco.IRepository repository)
public static void main(java.lang.String[] args) throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |