java.lang.Objectcom.collabnet.tracker.ws.handler.GetArtifactByIdHandler
public class GetArtifactByIdHandler
Handler for getArtifactById type requests
The request document looks like:
<getArtifactById xmlns="urn:ws.tracker.collabnet.com">
<id>{unique id, like SC1}</id>
<id>...</id>
</getArtifactById>
The result document is an artifactList document; see
ArtifactListXMLHelper. Note, the artifactList returned by
this handler does not contain paging information, because the list
is not the result of a query.
| Constructor Summary | |
|---|---|
GetArtifactByIdHandler()
|
|
| Method Summary | |
|---|---|
DocumentType[] |
getHandledDocumentTypes()
Returns the DocumentType representing the get artifact by id handler. |
java.util.List |
getSchemaReferences(Callcontext context,
XMLRequest request)
(non-Javadoc) |
void |
handle(Callcontext context,
XMLRequest request,
XMLResponse response)
Handles "getArtifactById" requests. |
void |
produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
(non-Javadoc) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GetArtifactByIdHandler()
| Method Detail |
|---|
public void handle(Callcontext context,
XMLRequest request,
XMLResponse response)
throws java.lang.Exception
handle in interface DocumentHandlercontext - the context of the current requestrequest - the request 'document'response - the response
java.lang.ExceptionDocumentHandler.handle(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest,
com.collabnet.core.ws.dispatcher.XMLResponse)
public java.util.List getSchemaReferences(Callcontext context,
XMLRequest request)
throws SchemaReferenceException
getSchemaReferences in interface DocumentHandlerSchemaReferenceExceptionDocumentHandler.getSchemaReferences(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest)public DocumentType[] getHandledDocumentTypes()
getHandledDocumentTypes in interface DocumentHandlerDocumentHandler.getHandledDocumentTypes()
public void produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
throws SchemaGenerationException
produceSchema in interface DocumentHandlerSchemaGenerationExceptionDocumentHandler.produceSchema(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest,
com.collabnet.core.xml.SchemaVisitor)