java.lang.Objectcom.collabnet.tracker.ws.handler.GetNextPageHandler
public class GetNextPageHandler
Handles getNextPage requests. The request document looks like:
<getNextPage>
<pageInfo>
[paging information], see
PageInfoXMLHelper
</pageInfo>
</getNextPage>
Returns a <artifactList> document (see ArtifactListXMLHelper
The typical use case is the following:
GetArtifactListHandler.
| Field Summary | |
|---|---|
static java.lang.String |
REQUEST_ROOT_ELEMENT_NAME
The name of the root element: the string "getNextPage" |
| Constructor Summary | |
|---|---|
GetNextPageHandler()
|
|
| Method Summary | |
|---|---|
DocumentType[] |
getHandledDocumentTypes()
Returns the following DocumentType: |
java.util.List |
getSchemaReferences(Callcontext context,
XMLRequest request)
(non-Javadoc) |
void |
handle(Callcontext context,
XMLRequest request,
XMLResponse response)
Expects the following document: |
void |
produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
Returns the schema for artifactList and for the getNextPage
document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REQUEST_ROOT_ELEMENT_NAME
| Constructor Detail |
|---|
public GetNextPageHandler()
| Method Detail |
|---|
public void handle(Callcontext context,
XMLRequest request,
XMLResponse response)
throws java.lang.Exception
<getNextPage>
<pageInfo>
[paging information], see PageInfoXMLHelper
</pageInfo>
</getNextPage>
Returns a <artifactList> document.
(non-Javadoc)
handle in interface DocumentHandlerjava.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()
namespace: XMLConstants.NAMESPACE
tag: REQUEST_ROOT_ELEMENT_NAME
(non-Javadoc)
getHandledDocumentTypes in interface DocumentHandlerDocumentHandler.getHandledDocumentTypes()
public void produceSchema(Callcontext context,
XMLRequest request,
SchemaVisitor visitor)
throws SchemaGenerationException
artifactList and for the getNextPage
document.
produceSchema in interface DocumentHandlerSchemaGenerationExceptionArtifactListXMLHelper.produceSchema(com.collabnet.core.ws.services.Callcontext, com.collabnet.core.ws.dispatcher.XMLRequest, com.collabnet.core.xml.SchemaVisitor),
QueryXMLHelper.acceptSchemaVisitor(SchemaVisitor),
DocumentHandler.produceSchema(com.collabnet.core.ws.services.Callcontext,
com.collabnet.core.ws.dispatcher.XMLRequest,
com.collabnet.core.xml.SchemaVisitor)