xsul.processor.soap_over_http
Class SoapHttpDynamicInfosetProcessor

java.lang.Object
  extended byxsul.processor.http.HttpDynamicInfosetProcessor
      extended byxsul.processor.soap_over_http.SoapHttpDynamicInfosetProcessor
All Implemented Interfaces:
DynamicInfosetProcessor, MessageProcessor
Direct Known Subclasses:
CapabilityProcessor, PasswordProcessor, SecurityRequestorProcessor, SignatureProcessor

public abstract class SoapHttpDynamicInfosetProcessor
extends HttpDynamicInfosetProcessor
implements MessageProcessor

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

Version:
$Revision: 1.7 $
Author:
Aleksander Slominski

Constructor Summary
SoapHttpDynamicInfosetProcessor()
           
SoapHttpDynamicInfosetProcessor(int tcpPort)
           
 
Method Summary
 SoapUtil[] getSupportedSoapFragrances()
           
abstract  XmlElement processMessage(XmlElement message)
           
 XmlDocument processSoapEnvelope(XmlElement envelope, SoapUtil soapFragrance)
           
 XmlDocument processUnknownXml(XmlDocument input)
           
 XmlDocument processXml(XmlDocument input)
          Take input XML document and get back response.
 void setSupportedSoapFragrances(SoapUtil[] soapFragrances)
          Set the list of supported SOAP fragrances.
 
Methods inherited from class xsul.processor.http.HttpDynamicInfosetProcessor
getServer, getServerPort, service, setServer, setServerPort, shutdown, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapHttpDynamicInfosetProcessor

public SoapHttpDynamicInfosetProcessor()

SoapHttpDynamicInfosetProcessor

public SoapHttpDynamicInfosetProcessor(int tcpPort)
                                throws DynamicInfosetProcessorException
Method Detail

setSupportedSoapFragrances

public void setSupportedSoapFragrances(SoapUtil[] soapFragrances)
Set the list of supported SOAP fragrances.


getSupportedSoapFragrances

public SoapUtil[] getSupportedSoapFragrances()

processXml

public 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
Specified by:
processXml in class HttpDynamicInfosetProcessor
Throws:
DynamicInfosetProcessorException

processUnknownXml

public XmlDocument processUnknownXml(XmlDocument input)
                              throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

processSoapEnvelope

public XmlDocument processSoapEnvelope(XmlElement envelope,
                                       SoapUtil soapFragrance)
                                throws DynamicInfosetProcessorException
Throws:
DynamicInfosetProcessorException

processMessage

public abstract XmlElement processMessage(XmlElement message)
                                   throws DynamicInfosetProcessorException
Specified by:
processMessage in interface MessageProcessor
Throws:
DynamicInfosetProcessorException


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