|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.control.webharvest.client.atom.AGPEntryProcessor
public class AGPEntryProcessor
Implements IEntryProcessor.extractMetadata() to process entry node and extract metadata xml.
Field Summary | |
---|---|
protected IterationContext |
context
|
protected static Logger |
LOG
|
protected static Map<String,String> |
namespaces
|
Constructor Summary | |
---|---|
AGPEntryProcessor(IterationContext context)
|
Method Summary | |
---|---|
String |
extractMetadata(BaseAtomInfo info,
Node entry)
Extracts xml of entry node and returns xml string. |
protected void |
injectNamespaces(Document mdDoc)
Injects namespaces into the XML document. |
protected String |
parseId(Document doc)
Parses Id from atom entry |
protected String |
readBbox(BaseAtomInfo info,
String id)
Makes http request to json endpoint and returns georss box string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOG
protected static final Map<String,String> namespaces
protected final IterationContext context
Constructor Detail |
---|
public AGPEntryProcessor(IterationContext context)
Method Detail |
---|
protected void injectNamespaces(Document mdDoc)
mdDoc
- XML documentpublic String extractMetadata(BaseAtomInfo info, Node entry)
extractMetadata
in interface IEntryProcessor
info
- the BaseAtomInfo objectentry
- the entry node
protected String parseId(Document doc) throws XPathExpressionException
doc
- the feed
XPathExpressionException
protected String readBbox(BaseAtomInfo info, String id) throws IOException, org.json.JSONException
info
- the base atom infoid
- the item id
IOException
- if the http request fails due to i/o exception
org.json.JSONException
- if json parsing fails
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |