com.collabnet.tracker.ws.handler
Class LoadMetadataHandler

java.lang.Object
  extended by com.collabnet.tracker.ws.handler.LoadMetadataHandler
All Implemented Interfaces:
DocumentHandler

public class LoadMetadataHandler
extends java.lang.Object
implements DocumentHandler

Handler for [XMLConstants.NAMESPACE]loadMetadata documents

Author:
sszego

Field Summary
static java.lang.String REQUEST_ROOT_ELEMENT_NAME
          The root element of the updateArtifactList document
static java.lang.String RESPONSE_ROOT_ELEMENT_NAME
          The name of the response document tag
 
Constructor Summary
LoadMetadataHandler()
           
 
Method Summary
 DocumentType[] getHandledDocumentTypes()
          Returns the [XMLConstants.NAMESPACE]saveMetadata DocumentType (non-Javadoc)
 java.util.List getSchemaReferences(Callcontext context, XMLRequest request)
          Returns the references to the schemas used by artifactList and updateArtifactList documents.
 void handle(Callcontext context, XMLRequest request, XMLResponse response)
          Handles {XMLConstants.NAMESPACE}loadMetadata documents.
 void produceSchema(Callcontext context, XMLRequest request, SchemaVisitor visitor)
          Generates the schema for updateArtifactList and artifactList documents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_ROOT_ELEMENT_NAME

public static final java.lang.String REQUEST_ROOT_ELEMENT_NAME
The root element of the updateArtifactList document

See Also:
Constant Field Values

RESPONSE_ROOT_ELEMENT_NAME

public static final java.lang.String RESPONSE_ROOT_ELEMENT_NAME
The name of the response document tag

See Also:
Constant Field Values
Constructor Detail

LoadMetadataHandler

public LoadMetadataHandler()
Method Detail

handle

public void handle(Callcontext context,
                   XMLRequest request,
                   XMLResponse response)
            throws java.lang.Exception
Handles {XMLConstants.NAMESPACE}loadMetadata documents. (non-Javadoc)

Specified by:
handle in interface DocumentHandler
Throws:
java.lang.Exception
See Also:
DocumentHandler.handle(Callcontext, XMLRequest, XMLResponse)

getSchemaReferences

public java.util.List getSchemaReferences(Callcontext context,
                                          XMLRequest request)
                                   throws SchemaReferenceException
Returns the references to the schemas used by artifactList and updateArtifactList documents. (non-Javadoc)

Specified by:
getSchemaReferences in interface DocumentHandler
Throws:
SchemaReferenceException
See Also:
DocumentHandler.getSchemaReferences(Callcontext, XMLRequest)

getHandledDocumentTypes

public DocumentType[] getHandledDocumentTypes()
Returns the [XMLConstants.NAMESPACE]saveMetadata DocumentType (non-Javadoc)

Specified by:
getHandledDocumentTypes in interface DocumentHandler
See Also:
DocumentHandler.getHandledDocumentTypes()

produceSchema

public void produceSchema(Callcontext context,
                          XMLRequest request,
                          SchemaVisitor visitor)
                   throws SchemaGenerationException
Generates the schema for updateArtifactList and artifactList documents. (non-Javadoc)

Specified by:
produceSchema in interface DocumentHandler
Throws:
SchemaGenerationException
See Also:
DocumentHandler.produceSchema(Callcontext, XMLRequest, SchemaVisitor)