org.infolayer.soap
Class SoapWriter

java.lang.Object
  extended byorg.infolayer.soap.SoapWriter

public class SoapWriter
extends java.lang.Object

Is a helper class used to serialize the results of an OCL expression to SOAP with attachments. It is possible to restric the details printed our for each class to a desired set of attributes.

Author:
pleumann

Constructor Summary
SoapWriter(UmlModel model)
          Creates a new SOAP Writer for the given UML model.
 
Method Summary
 void execute(SoapOutboundMessage response, java.lang.String namespace, java.lang.String name, java.lang.Object object)
          Writes an HTTP response for the results that this request produced.
 void setDetails(java.lang.String name, java.lang.String[] properties)
          Sets the desired details for a class and all its subclasses.
 void writeResults(java.lang.Object result, XmlSerializer output)
          Writes the complete results to the given XML serializer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapWriter

public SoapWriter(UmlModel model)
Creates a new SOAP Writer for the given UML model.

Method Detail

setDetails

public void setDetails(java.lang.String name,
                       java.lang.String[] properties)
Sets the desired details for a class and all its subclasses.


execute

public void execute(SoapOutboundMessage response,
                    java.lang.String namespace,
                    java.lang.String name,
                    java.lang.Object object)
             throws java.io.IOException
Writes an HTTP response for the results that this request produced.

Throws:
java.io.IOException

writeResults

public void writeResults(java.lang.Object result,
                         XmlSerializer output)
                  throws java.io.IOException
Writes the complete results to the given XML serializer. Assumes that the necessary SOAP header and footer stuff is generated outside this method.

Throws:
java.io.IOException