xsul.message_router_over_http
Class HttpMessageRouter

java.lang.Object
  extended byxsul.message_router_over_http.HttpMessageRouter
All Implemented Interfaces:
MessageProcessingNode, MessageRouter

public abstract class HttpMessageRouter
extends java.lang.Object
implements MessageRouter

Select processor for incoming mesage essentially converts XML document (DynamicInfosetProcessor) into XML message that can be consumed by chained MessageRouter.

Version:
$Revision: 1.6 $
Author:
Aleksander Slominski

Constructor Summary
HttpMessageRouter()
           
HttpMessageRouter(int tcpPort)
           
 
Method Summary
 HttpMiniServer getHttpServer()
           
abstract  boolean process(MessageContext context)
          Return true to indicate that processingis should be finished (no more links in chain will be called).
 void service(HttpServerRequest req, HttpServerResponse res)
           
 void shutdownService()
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMessageRouter

public HttpMessageRouter()

HttpMessageRouter

public HttpMessageRouter(int tcpPort)
                  throws MessageRouterException
Method Detail

process

public abstract boolean process(MessageContext context)
                         throws MessageProcessingException
Description copied from interface: MessageProcessingNode
Return true to indicate that processingis should be finished (no more links in chain will be called).

Specified by:
process in interface MessageProcessingNode
Throws:
MessageProcessingException

getHttpServer

public HttpMiniServer getHttpServer()

startService

public void startService()
                  throws MessageRouterException
Specified by:
startService in interface MessageRouter
Throws:
MessageRouterException

stopService

public void stopService()
                 throws MessageRouterException
Specified by:
stopService in interface MessageRouter
Throws:
MessageRouterException

shutdownService

public void shutdownService()
                     throws MessageRouterException
Specified by:
shutdownService in interface MessageRouter
Throws:
MessageRouterException

service

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


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