|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler com.esri.gpt.migration.to1.RemoteGetDocumentRequest
public class RemoteGetDocumentRequest
Retrieves a document executing a request against an ArcIMS metadata publish service.
Constructor Summary | |
---|---|
RemoteGetDocumentRequest(String serviceUrl,
String userName,
String password)
Constructor |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Sets text node characters for a SAX element. |
void |
endElement(String uri,
String localName,
String qName)
Ends a SAX element. |
void |
executeGet(String docUuid)
Executes a GET_METADATA_DOCUMENT request against an ArcIMS metadata publish service. |
protected void |
executeRequest(CredentialProvider provider,
String serviceUrl,
String requestBody)
Executes an ArcIMS service request and parses the response. |
Timestamp |
getUpdateDate()
Gets the update date. |
String |
getUuid()
Gets the document uuid. |
String |
getXml()
Gets the document xml. |
protected void |
onEndSaxElement(String lowerCaseTagName,
String characters)
Triggered when a SAX element is ended during the parsing of an axl response. |
protected void |
onStartSaxElement(String lowerCaseTagName,
Attributes attributes)
Triggered when a SAX element is started during the parsing of an axl response. |
protected void |
parseAxlResponse(String axlResponse)
Starts a SAX parser on an ArcIMS 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. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Starts a SAX element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteGetDocumentRequest(String serviceUrl, String userName, String password)
serviceUrl
- the arcims metadata service http endpointuserName
- the arcims metadata service usernamepassword
- the arcims metadata service passwordMethod Detail |
---|
public Timestamp getUpdateDate()
protected void setUpdateTimestamp(Timestamp updateDate)
updateDate
- the update datepublic String getUuid()
public String getXml()
protected void setXml(String xml)
xml
- the document xmlpublic void executeGet(String docUuid) throws Exception
docUuid
- the metatata document uuid of the record to load
Exception
PublishServiceException
- if an exception occursprotected void executeRequest(CredentialProvider provider, String serviceUrl, String requestBody) throws Exception
Exception
protected void parseAxlResponse(String axlResponse) throws ParserConfigurationException, SAXException, IOException
axlResponse
- the ArcIMS axl response
ParserConfigurationException
- if the exception occurs
SAXException
- if the exception occurs
IOException
- if the exception occursprotected void onStartSaxElement(String lowerCaseTagName, Attributes attributes)
lowerCaseTagName
- the lower-case tag name of the elementattributes
- the element attributespublic void reset()
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- the array of charactersstart
- the starting position within the arraylength
- the number of characters to read from the array
SAXException
- if the exception occurspublic void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
uri
- the uri namespace for the elementlocalName
- the local name for the elementqName
- the qualified name for the element
SAXException
- if a SAXException occursprotected void onEndSaxElement(String lowerCaseTagName, String characters)
lowerCaseTagName
- the lower-case tag name of the elementcharacters
- the text node value of the elementpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- the uri namespace for the elementlocalName
- the local name for the elementqName
- the qualified name for the elementattributes
- the attributes for the element
SAXException
- if a SAXException occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |