Package com.esri.gpt.control.georss.AtomFeedWriter

Examples of com.esri.gpt.control.georss.AtomFeedWriter.AtomFeed


    LOG.finer("Initializing class");
  }
  this._stopFurtherResponseWrites = false;
  //synchronized (request) {
  AtomFeed atom = this.getAtomFeed();
  atom.addStringToXmlHeader(" xmlns:gpt=\"" + NAMESPACE_GPT + "\"");
  atom.setTitle(this.getMessageBroker().retrieveMessage(
  "catalog.search.distributedSearch.atomTitle"));
  atom.writePreamble(this.getPrintWriter());

    
 
}
View Full Code Here


*
* @throws Exception the exception
*/
public void searchDone() throws Exception {
  _stopFurtherResponseWrites = true;
  AtomFeed atom = this.getAtomFeed();
 
  atom.writeEnd(this.getPrintWriter());
}
View Full Code Here

*
* @return the atom feed
*/
private AtomFeed getAtomFeed() {
  if(_atomFeed == null) {
    AtomFeed af = new AtomFeedWriter(this.getPrintWriter()).new AtomFeed();
    af.setTitle(getMessageBroker().retrieveMessage("catalog.rest.title"));
    af.setDescription(getMessageBroker().retrieveMessage(
        "catalog.rest.description"));
    af.setAuthor(getMessageBroker().retrieveMessage(
        "catalog.rest.generator"));
    af.setCopyright(getMessageBroker().retrieveMessage(
        "catalog.rest.copyright"));
    //af.setLink(getEntryBaseUrl());
    //af.setId(getEntryBaseUrl());
    af.setUpdated(new Date());
    _atomFeed = af;
  }
  return _atomFeed;
}
View Full Code Here

TOP

Related Classes of com.esri.gpt.control.georss.AtomFeedWriter.AtomFeed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.