Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class GetDocumentRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.ImsRequest
      extended by com.esri.gpt.catalog.arcims.PublishServiceRequest
          extended by com.esri.gpt.catalog.arcims.GetDocumentRequest

public class GetDocumentRequest
extends PublishServiceRequest

Retrieves a document executing a request against an ArcIMS metadata publish service.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcims.ImsRequest
ACTION_STATUS_ERROR, ACTION_STATUS_NONE, ACTION_STATUS_OK, ACTION_STATUS_REPLACED, ACTION_STATUS_UNKNOWN
 
Constructor Summary
GetDocumentRequest()
          Default constructor.
GetDocumentRequest(RequestContext requestContext, Publisher publisher)
          Constructs with an associated request context and publisher.
 
Method Summary
 void executeGet(String docUuid)
          Executes a GET_METADATA_DOCUMENT request against an ArcIMS metadata publish service.
 Timestamp getUpdateDate()
          Gets the update date.
 String getUuid()
          Gets the document uuid.
 String getXml()
          Gets the document xml.
protected  void onStartSaxElement(String lowerCaseTagName, Attributes attributes)
          Triggered when a SAX element is started during the parsing of an axl response.
 void reset()
          Resets the request.
protected  void setUpdateTimestamp(Timestamp updateDate)
          Sets the update date.
protected  void setXml(String xml)
          Sets the document xml.
 
Methods inherited from class com.esri.gpt.catalog.arcims.PublishServiceRequest
executeRequest, getPublisher, getRequestContext, setPublisher, setRequestContext
 
Methods inherited from class com.esri.gpt.catalog.arcims.ImsRequest
executeRequest, getActionStatus, getAxlRequest, getAxlResponse, getCredentials, getService, makeClient, onEndSaxElement, setActionStatus, setAxlRequest, setAxlResponse, setCredentials, setService, wasActionOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetDocumentRequest

public GetDocumentRequest()
Default constructor.


GetDocumentRequest

public GetDocumentRequest(RequestContext requestContext,
                          Publisher publisher)
Constructs with an associated request context and publisher.

Parameters:
requestContext - the request context
publisher - the publisher
Method Detail

getUpdateDate

public Timestamp getUpdateDate()
Gets the update date.

Returns:
the update date

setUpdateTimestamp

protected void setUpdateTimestamp(Timestamp updateDate)
Sets the update date.

Parameters:
updateDate - the update date

getUuid

public String getUuid()
Gets the document uuid.

Returns:
the document uuid

getXml

public String getXml()
Gets the document xml.

Returns:
the document xml

setXml

protected void setXml(String xml)
Sets the document xml.

Parameters:
xml - the document xml

executeGet

public void executeGet(String docUuid)
                throws ImsServiceException,
                       TransformerException
Executes a GET_METADATA_DOCUMENT request against an ArcIMS metadata publish service.

Parameters:
docUuid - the metatata document uuid of the record to load
Throws:
PublishServiceException - if an exception occurs
ImsServiceException
TransformerException

onStartSaxElement

protected void onStartSaxElement(String lowerCaseTagName,
                                 Attributes attributes)
Triggered when a SAX element is started during the parsing of an axl response.

Overrides:
onStartSaxElement in class ImsRequest
Parameters:
lowerCaseTagName - the lower-case tag name of the element
attributes - the element attributes

reset

public void reset()
Resets the request.


Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.