Esri Geoportal Server
1.0

com.esri.gpt.control.georss
Class KmlFeedWriter

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

public class KmlFeedWriter
extends Object
implements FeedWriter

KML feed writer.


Nested Class Summary
static class KmlFeedWriter.Geometry
          Geometry
static interface KmlFeedWriter.KmlSignatureProvider
          Provides KML signature (header).
 
Field Summary
protected  KmlFeedWriter.Geometry _geometry
          geometry
protected  MessageBroker _messageBroker
          Message broker.
protected  KmlFeedWriter.KmlSignatureProvider kmlSignatureProvider
          signature provider
 
Constructor Summary
KmlFeedWriter(MessageBroker messageBroker, PrintWriter writer)
          Creates instance of the writer.
 
Method Summary
 KmlFeedWriter.Geometry getGeometry()
          Gets geometry type.
 KmlFeedWriter.KmlSignatureProvider getKmlSignatureProvider()
          Gets KML signature provider.
 RecordSnippetWriter.Target getTarget()
          Gets links target.
 void setGeometry(KmlFeedWriter.Geometry geometry)
          Sets geometry type.
 void setKmlSignatureProvider(KmlFeedWriter.KmlSignatureProvider kmlSignatureProvider)
          Sets KML signature provider.
 void setTarget(RecordSnippetWriter.Target target)
          Sets links target.
 void write(SearchResultRecords records)
          Writers records.
protected  void writeDirectTag(String name, String value)
          Writes simple attribute.
protected  void writeGeometry(SearchResultRecord record)
          Writes geometry.
protected  void writeRecord(RecordSnippetWriter snippetWriter, SearchResultRecord record)
          Writes a single record.
protected  void writeTag(String name, String value)
          Writes simple attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_messageBroker

protected MessageBroker _messageBroker
Message broker.


_geometry

protected KmlFeedWriter.Geometry _geometry
geometry


kmlSignatureProvider

protected KmlFeedWriter.KmlSignatureProvider kmlSignatureProvider
signature provider

Constructor Detail

KmlFeedWriter

public KmlFeedWriter(MessageBroker messageBroker,
                     PrintWriter writer)
Creates instance of the writer.

Parameters:
messageBroker - message broker
writer - underlying print writer
Method Detail

getTarget

public RecordSnippetWriter.Target getTarget()
Gets links target.

Returns:
links targets

setTarget

public void setTarget(RecordSnippetWriter.Target target)
Sets links target.

Parameters:
target - links target

getGeometry

public KmlFeedWriter.Geometry getGeometry()
Gets geometry type.

Returns:
geometry type

setGeometry

public void setGeometry(KmlFeedWriter.Geometry geometry)
Sets geometry type.

Parameters:
geometry - geometry type

getKmlSignatureProvider

public KmlFeedWriter.KmlSignatureProvider getKmlSignatureProvider()
Gets KML signature provider.

Returns:
KML signature provider

setKmlSignatureProvider

public void setKmlSignatureProvider(KmlFeedWriter.KmlSignatureProvider kmlSignatureProvider)
Sets KML signature provider.

Parameters:
kmlSignatureProvider - KML signature provider

write

public void write(SearchResultRecords records)
Writers records.

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

writeRecord

protected void writeRecord(RecordSnippetWriter snippetWriter,
                           SearchResultRecord record)
Writes a single record.

Parameters:
snippetWriter - description HTML snippet writer
record - records to writeTag

writeGeometry

protected void writeGeometry(SearchResultRecord record)
Writes geometry.

Parameters:
record - record

writeTag

protected void writeTag(String name,
                        String value)
Writes simple attribute.

Parameters:
name - attribute name
value - attribute value

writeDirectTag

protected void writeDirectTag(String name,
                              String value)
Writes simple attribute.

Parameters:
name - attribute name
value - attribute value

Esri Geoportal Server
1.0

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