org.xmlecho.palomar.core
Class XProcessorHTTPClientImpl

java.lang.Object
  extended byorg.xmlecho.palomar.core.XProcessorImpl
      extended byorg.xmlecho.palomar.core.XProcessorHTTPClientImpl
All Implemented Interfaces:
XProcessor

public class XProcessorHTTPClientImpl
extends XProcessorImpl


Field Summary
 
Fields inherited from class org.xmlecho.palomar.core.XProcessorImpl
_activeProcesses, _db, _doc, _logger, _myElementFactory, _myResponseFactory, _processTable, _request, _urlString
 
Constructor Summary
XProcessorHTTPClientImpl()
           
XProcessorHTTPClientImpl(org.xmlecho.palomar.dom.ElementFactory factory)
           
XProcessorHTTPClientImpl(org.xmlecho.palomar.dom.ElementFactory factory, java.lang.String url)
           
 
Method Summary
 ECHORequest compile(org.xml.sax.XMLReader rdr, org.xml.sax.InputSource src)
           
 void eval(ECHOContext context, org.xml.sax.XMLReader rdr, org.xml.sax.InputSource src, org.xml.sax.ContentHandler responseTarget)
          evaluate the request
 org.w3c.dom.Element evalToResponse(ECHOContext context)
          evaluate the request, constructing a DOM result with the default ElementFactory
 org.w3c.dom.Element evalToResponse(ECHOContext ctx, org.xml.sax.XMLReader reader, org.xml.sax.InputSource src)
          evaluate the request, constructing a DOM result with the default ElementFactory
 
Methods inherited from class org.xmlecho.palomar.core.XProcessorImpl
createContext, eval, evalToResponse, getActiveProcessCount, interruptProcess, listProcesses, setRequestFactory, setResponseFactory, setThreadProperty, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XProcessorHTTPClientImpl

public XProcessorHTTPClientImpl()

XProcessorHTTPClientImpl

public XProcessorHTTPClientImpl(org.xmlecho.palomar.dom.ElementFactory factory)
Parameters:
factory - an Object factory for the ECHO Command objects appropriate to ECHO element names

XProcessorHTTPClientImpl

public XProcessorHTTPClientImpl(org.xmlecho.palomar.dom.ElementFactory factory,
                                java.lang.String url)
Parameters:
factory - an Object factory for the ECHO Command objects appropriate to ECHO element names
url - a String representing the URL of an HTTP ECHO server
Method Detail

compile

public ECHORequest compile(org.xml.sax.XMLReader rdr,
                           org.xml.sax.InputSource src)
Specified by:
compile in interface XProcessor
Overrides:
compile in class XProcessorImpl

evalToResponse

public org.w3c.dom.Element evalToResponse(ECHOContext ctx,
                                          org.xml.sax.XMLReader reader,
                                          org.xml.sax.InputSource src)
                                   throws java.lang.Exception
evaluate the request, constructing a DOM result with the default ElementFactory

Overrides:
evalToResponse in class XProcessorImpl
Throws:
java.lang.Exception

eval

public void eval(ECHOContext context,
                 org.xml.sax.XMLReader rdr,
                 org.xml.sax.InputSource src,
                 org.xml.sax.ContentHandler responseTarget)
          throws java.lang.Exception
evaluate the request

Specified by:
eval in interface XProcessor
Overrides:
eval in class XProcessorImpl
Throws:
java.lang.Exception

evalToResponse

public org.w3c.dom.Element evalToResponse(ECHOContext context)
                                   throws java.lang.Exception
evaluate the request, constructing a DOM result with the default ElementFactory

Throws:
java.lang.Exception