|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The top level interface to an ECHO Processor, which can operate either in server mode, client mode or both.
In server mode, one typically obtains an ECHO request from a stream. Obtain an XMLReader for that stream, perhaps from the Transformation service, and then evaluate the request
| Method Summary | |
ECHORequest |
compile(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource isrc)
|
ECHOContext |
createContext()
create an initial context for a request |
void |
eval(ECHOContext context,
ECHORequest request,
org.xml.sax.ContentHandler responseTarget)
evaluate the request, under the given context, returning the result as a stream of SAX events to responseTarget |
void |
eval(ECHOContext ctx,
org.xml.sax.XMLReader reader,
org.xml.sax.InputSource isrc,
org.xml.sax.ContentHandler responseTarget)
evaluate the request, under the given context, returning the result as a stream of SAX events to responseTarget |
int |
getActiveProcessCount()
returns the number of ECHO processes which are being processed by instances of this class at this moment |
void |
interruptProcess(java.lang.String processName,
java.lang.String processId)
interrupts a running process |
void |
listProcesses(org.xml.sax.ContentHandler ch)
lists the running processes by emitting a SAX event stream to the target ContentHandler |
void |
setThreadProperty(java.lang.String propName,
java.lang.Object value)
record state information for a thread |
| Method Detail |
public ECHOContext createContext()
public void eval(ECHOContext context,
ECHORequest request,
org.xml.sax.ContentHandler responseTarget)
throws java.lang.Exception
responseTarget
java.lang.Exception
public ECHORequest compile(org.xml.sax.XMLReader reader,
org.xml.sax.InputSource isrc)
throws TransformException,
org.xml.sax.SAXException,
java.io.IOException
TransformException
org.xml.sax.SAXException
java.io.IOException
public void eval(ECHOContext ctx,
org.xml.sax.XMLReader reader,
org.xml.sax.InputSource isrc,
org.xml.sax.ContentHandler responseTarget)
throws java.lang.Exception
responseTarget
java.lang.Exceptionpublic int getActiveProcessCount()
public void listProcesses(org.xml.sax.ContentHandler ch)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void interruptProcess(java.lang.String processName,
java.lang.String processId)
throws java.lang.Exception
java.lang.Exception
public void setThreadProperty(java.lang.String propName,
java.lang.Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||