xsul.processor.http
Class HttpDynamicInfosetProcessor

java.lang.Object
  extended byxsul.processor.http.HttpDynamicInfosetProcessor
All Implemented Interfaces:
DynamicInfosetProcessor
Direct Known Subclasses:
SoapHttpDynamicInfosetProcessor

public abstract class HttpDynamicInfosetProcessor
extends java.lang.Object
implements DynamicInfosetProcessor

This class allows to send XML to HTTP endpoint. Simply set endpoint location and execute invoke*().

Version:
$Revision: 1.12 $
Author:
Aleksander Slominski

Constructor Summary
HttpDynamicInfosetProcessor()
           
HttpDynamicInfosetProcessor(HttpMiniServer server)
           
HttpDynamicInfosetProcessor(int tcpPort)
           
HttpDynamicInfosetProcessor(ServerSocketFactory serverSocketFactory)
           
 
Method Summary
 HttpMiniServer getServer()
           
 int getServerPort()
           
abstract  XmlDocument processXml(XmlDocument input)
          Take input XML document and get back response.
 void service(HttpServerRequest req, HttpServerResponse res)
           
 void setServer(HttpMiniServer server)
           
 void setServerPort(int tcpPort)
           
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpDynamicInfosetProcessor

public HttpDynamicInfosetProcessor()

HttpDynamicInfosetProcessor

public HttpDynamicInfosetProcessor(int tcpPort)
                            throws DynamicInfosetProcessorException

HttpDynamicInfosetProcessor

public HttpDynamicInfosetProcessor(ServerSocketFactory serverSocketFactory)
                            throws DynamicInfosetProcessorException

HttpDynamicInfosetProcessor

public HttpDynamicInfosetProcessor(HttpMiniServer server)
                            throws DynamicInfosetProcessorException
Method Detail

setServerPort

public void setServerPort(int tcpPort)
                   throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

getServerPort

public int getServerPort()

getServer

public HttpMiniServer getServer()

setServer

public void setServer(HttpMiniServer server)
               throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

start

public void start()
           throws java.io.IOException,
                  DynamicInfosetProcessorException
Throws:
java.io.IOException
DynamicInfosetProcessorException

stop

public void stop()
          throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

shutdown

public void shutdown()
              throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

processXml

public abstract XmlDocument processXml(XmlDocument input)
                                throws DynamicInfosetProcessorException
Description copied from interface: DynamicInfosetProcessor
Take input XML document and get back response. TODO: If response is null it means it is one way message.

Specified by:
processXml in interface DynamicInfosetProcessor
Throws:
DynamicInfosetProcessorException

service

public void service(HttpServerRequest req,
                    HttpServerResponse res)
             throws HttpServerException
Throws:
HttpServerException


IU Extreme! Lab (http://www.extreme.indiana.edu)