org.infolayer.soap
Class Soap_Update

java.lang.Object
  extended byorg.infolayer.soap.Soap_Update
All Implemented Interfaces:
SoapRequest

public class Soap_Update
extends java.lang.Object
implements SoapRequest

This class handles a single SOAP Update request. Updates are used to add new objects to the database. More features (modify and delete) will be added later.

Author:
pleumann

Constructor Summary
Soap_Update()
           
 
Method Summary
 void execute()
          Handles the interesting part of the SOAP request, that is, the part that contains the "Update" command.
 void init(SoapHandler handler, SoapInboundMessage inbound, XmlPullParser parser)
          Initializes a new SOAP Update handler.
 void processObject()
          Processes a single object in a SOAP request.
 void processProperty(UmlClassifier type, UmlObject object)
          Processes a single property for the current object in a SOAP request.
 java.lang.Object readValue(UmlProperty property, UmlClassifier type)
          Reads a value from the SOAP request.
 void writeResponse(SoapOutboundMessage response)
          Writes an HTTP response for the results that this request produced.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Soap_Update

public Soap_Update()
Method Detail

init

public void init(SoapHandler handler,
                 SoapInboundMessage inbound,
                 XmlPullParser parser)
Initializes a new SOAP Update handler.

Specified by:
init in interface SoapRequest
Parameters:
handler - The main SOAP handler that processes the request.
parser - The XML parser used to examine the request.

execute

public void execute()
             throws java.io.IOException,
                    XmlPullParserException
Handles the interesting part of the SOAP request, that is, the part that contains the "Update" command.

Specified by:
execute in interface SoapRequest
Throws:
java.io.IOException
XmlPullParserException

writeResponse

public void writeResponse(SoapOutboundMessage response)
                   throws java.io.IOException
Writes an HTTP response for the results that this request produced.

Specified by:
writeResponse in interface SoapRequest
Throws:
java.io.IOException

readValue

public java.lang.Object readValue(UmlProperty property,
                                  UmlClassifier type)
                           throws XmlPullParserException,
                                  java.io.IOException
Reads a value from the SOAP request. The type specifies the classifier of the property that we want to assign the value to.

Throws:
XmlPullParserException
java.io.IOException

processProperty

public void processProperty(UmlClassifier type,
                            UmlObject object)
                     throws XmlPullParserException,
                            java.io.IOException
Processes a single property for the current object in a SOAP request. The type specifies the class of the current object.

Throws:
XmlPullParserException
java.io.IOException

processObject

public void processObject()
                   throws XmlPullParserException,
                          java.io.IOException
Processes a single object in a SOAP request.

Throws:
XmlPullParserException
java.io.IOException