org.infolayer.soap
Class Soap_Schema

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

public class Soap_Schema
extends java.lang.Object
implements SoapRequest

This class handles a SOAP Schema request. The result of this request is an XML schema describing the model currently loaded into the Infolayer. This schema can help validating Update requests before sending them to the server. TODO: Nice schema describing model vs. flat schema for updates TODO: Use schema substitution for inheritance TODO: Use (typed?) href/keys for associations TODO: Restrict schema to accessible classes TODO: Provide enumeration types for non-accessible classes (e.g. User in MuSofT) TODO: (MuSofT) DTD for single class? DTDs with namespaces for classes?

Author:
pleumann

Field Summary
static java.lang.String XSD
          Specifies the XML schema namespace.
 
Constructor Summary
Soap_Schema()
           
 
Method Summary
 void execute()
          Handles the interesting part of the SOAP request, that is, the part that contains the "Schema" command.
 void init(SoapHandler handler, SoapInboundMessage inbound, XmlPullParser parser)
          Initializes a new SOAP Schema handler that operates on the given surrounding SoapHandler and reads its input from the given XML parser.
 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
 

Field Detail

XSD

public static final java.lang.String XSD
Specifies the XML schema namespace.

See Also:
Constant Field Values
Constructor Detail

Soap_Schema

public Soap_Schema()
Method Detail

init

public void init(SoapHandler handler,
                 SoapInboundMessage inbound,
                 XmlPullParser parser)
Initializes a new SOAP Schema handler that operates on the given surrounding SoapHandler and reads its input from the given XML parser.

Specified by:
init in interface SoapRequest

execute

public void execute()
             throws java.io.IOException,
                    XmlPullParserException
Handles the interesting part of the SOAP request, that is, the part that contains the "Schema" 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