com.gisgraphy.domain.geoloc.service.geoloc
Class StreetSearchResultsDtoSerializer

java.lang.Object
  extended by com.gisgraphy.domain.geoloc.service.geoloc.StreetSearchResultsDtoSerializer
All Implemented Interfaces:
IStreetSearchResultsDtoSerializer

public class StreetSearchResultsDtoSerializer
extends java.lang.Object
implements IStreetSearchResultsDtoSerializer

serialize @link GeolocResultsDto into several formats

Author:
David Masclet

Field Summary
protected  net.sf.json.JsonConfig jsonConfig
          Json filter, to not serialize all the properties
protected static org.slf4j.Logger logger
          The logger
 
Constructor Summary
StreetSearchResultsDtoSerializer()
          Default Constructor
 
Method Summary
 void serialize(java.io.OutputStream outputStream, Output.OutputFormat outputFormat, StreetSearchResultsDto streetSearchResultsDto, boolean indent, int startPaginationIndex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jsonConfig

protected net.sf.json.JsonConfig jsonConfig
Json filter, to not serialize all the properties


logger

protected static final org.slf4j.Logger logger
The logger

Constructor Detail

StreetSearchResultsDtoSerializer

public StreetSearchResultsDtoSerializer()
Default Constructor

Method Detail

serialize

public void serialize(java.io.OutputStream outputStream,
                      Output.OutputFormat outputFormat,
                      StreetSearchResultsDto streetSearchResultsDto,
                      boolean indent,
                      int startPaginationIndex)
Specified by:
serialize in interface IStreetSearchResultsDtoSerializer
Parameters:
outputStream - the OutputStream to serialize in
outputFormat - the outputFormat we'd like to serialize the geolocResultsDto
streetSearchResultsDto - the geolocResultsDto to serialize
indent - whether the stream should be indented (if the format support indentation)
startPaginationIndex - the pagination index (needed for RSS and ATOM)


Copyright © 2010. All Rights Reserved.