com.partnersoft.net.soap
Class SoapDaemon

java.lang.Object
  extended by com.partnersoft.net.TcpSocketDaemon
      extended by com.partnersoft.net.http.HttpDaemon
          extended by com.partnersoft.net.soap.SoapDaemon
All Implemented Interfaces:
Daemon

public abstract class SoapDaemon
extends HttpDaemon

A minimalist HTTP SOAP server. Subsists on text exchanges; you get the fun of parsing and generating the XML your own self.

Copyright 2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
SoapDaemon(java.lang.String name, int port)
           
 
Method Summary
protected abstract  java.lang.String handleExchange(java.lang.String xmlRequest)
           
protected  HttpResponse handleRequest(HttpRequest request)
          Subclasses must implement this.
 
Methods inherited from class com.partnersoft.net.http.HttpDaemon
handleConnection
 
Methods inherited from class com.partnersoft.net.TcpSocketDaemon
runImp, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapDaemon

public SoapDaemon(java.lang.String name,
                  int port)
Method Detail

handleExchange

protected abstract java.lang.String handleExchange(java.lang.String xmlRequest)

handleRequest

protected HttpResponse handleRequest(HttpRequest request)
                              throws java.lang.Exception
Description copied from class: HttpDaemon
Subclasses must implement this. HttpDaemon takes care of reading and parsing the request, and then takes care of sending the response. Subclasses must construct the appropriate response for the given request.

Specified by:
handleRequest in class HttpDaemon
Throws:
java.lang.Exception