Esri Geoportal Server
1.0

com.esri.gpt.control.georss
Class JsonFeedWriter

java.lang.Object
  extended by com.esri.gpt.control.georss.JsonFeedWriter
All Implemented Interfaces:
FeedWriter

public class JsonFeedWriter
extends Object
implements FeedWriter

JSON feed writer. Writes response in JSON (or pretty JSON) format.


Constructor Summary
JsonFeedWriter(PrintWriter writer, RestQuery query, boolean pretty)
          Creates instance of the feed.
 
Method Summary
 MessageBroker getMessageBroker()
          Gets message broker
 void setMessageBroker(MessageBroker messageBroker)
          Sets message broker
 void write(SearchResultRecords records)
          Writers records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonFeedWriter

public JsonFeedWriter(PrintWriter writer,
                      RestQuery query,
                      boolean pretty)
Creates instance of the feed.

Parameters:
writer - writer to write feed
query - query
pretty - true to print pretty response
Method Detail

write

public void write(SearchResultRecords records)
Description copied from interface: FeedWriter
Writers records.

Specified by:
write in interface FeedWriter
Parameters:
records - records to write

getMessageBroker

public MessageBroker getMessageBroker()
Gets message broker

Returns:
the messageBroker

setMessageBroker

public void setMessageBroker(MessageBroker messageBroker)
Sets message broker

Parameters:
messageBroker - the messageBroker to set

Esri Geoportal Server
1.0

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