Esri Geoportal Server
1.2.9

com.esri.gpt.control.georss
Class DcatJsonFeedWriter

java.lang.Object
  extended by com.esri.gpt.control.georss.ExtJsonFeedWriter
      extended by com.esri.gpt.control.georss.DcatJsonFeedWriter
All Implemented Interfaces:
FeedWriter
Direct Known Subclasses:
Dcat11JsonFeedWriter

public class DcatJsonFeedWriter
extends ExtJsonFeedWriter

Writes Dcat json response of search results using dcat mappings.


Field Summary
protected  DcatSchemas dcatSchemas
           
 
Fields inherited from class com.esri.gpt.control.georss.ExtJsonFeedWriter
context, DF, LOG, messageBroker, parameterMap, predicateBanned, query, writer
 
Constructor Summary
protected DcatJsonFeedWriter(HttpServletRequest request, RequestContext context, PrintWriter writer, RestQuery query, Boolean pretty)
           
protected DcatJsonFeedWriter(Map<String,String[]> parameterMap, RequestContext context, PrintWriter writer, RestQuery query, Boolean pretty)
           
  DcatJsonFeedWriter(RequestContext context, PrintWriter writer, RestQuery query)
           
 
Method Summary
protected  Set<String> buildOutFieldsSet()
          Builds collection of names of fields for output.
protected  boolean checkAttr(String attrName)
          Checks if attribute of a given name can be printed.
protected  Properties makeDefaultValues()
           
protected  void printArg2(String argName, String argVal, boolean more)
          Prints argument.
protected  void printAttributesUserDcatMappings(IFeedRecord r, boolean before)
          Prints attributes using dcat mappings
protected  void printLink(ResourceLink link, boolean more, String format)
          Prints a link.
protected  void printLinkArg(String argName, String argVal, boolean more)
          Prints argument.
protected  void printLinks(ResourceLinks links, boolean more, boolean before)
          Prints all links.
protected  void printRecord(IFeedRecord r, Envelope env, boolean more)
          Prints record.
protected  void printRecords(IFeedRecords records, boolean more)
          Prints all records.
 void write(IFeedRecords records)
          Writers records.
 
Methods inherited from class com.esri.gpt.control.georss.ExtJsonFeedWriter
coord, createInstance, createInstance, getConfigParam, getMessageBroker, getOutputSpatialReference, getRequestParam, guessServiceUrn, hasRequestParam, levelDown, levelUp, print, printAPI, printArg, printArg, printAttr, printAttr, printAttributes, printField, printGeometry, printLink, printLink, printLinks, println, printPolygon, printPolygonShape, printResources, printTab, setMessageBroker, sp, writeCountOnly, writeIdsOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dcatSchemas

protected DcatSchemas dcatSchemas
Constructor Detail

DcatJsonFeedWriter

protected DcatJsonFeedWriter(HttpServletRequest request,
                             RequestContext context,
                             PrintWriter writer,
                             RestQuery query,
                             Boolean pretty)

DcatJsonFeedWriter

protected DcatJsonFeedWriter(Map<String,String[]> parameterMap,
                             RequestContext context,
                             PrintWriter writer,
                             RestQuery query,
                             Boolean pretty)

DcatJsonFeedWriter

public DcatJsonFeedWriter(RequestContext context,
                          PrintWriter writer,
                          RestQuery query)
Method Detail

makeDefaultValues

protected Properties makeDefaultValues()

write

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

Specified by:
write in interface FeedWriter
Overrides:
write in class ExtJsonFeedWriter
Parameters:
records - records to write

printRecords

protected void printRecords(IFeedRecords records,
                            boolean more)
Prints all records.

Overrides:
printRecords in class ExtJsonFeedWriter
Parameters:
records - records to print
more - true if more info will be printed after that section

printRecord

protected void printRecord(IFeedRecord r,
                           Envelope env,
                           boolean more)
Prints record.

Overrides:
printRecord in class ExtJsonFeedWriter
Parameters:
r - record to print
env - envelope
more - true if more info will be printed after that section

printAttributesUserDcatMappings

protected void printAttributesUserDcatMappings(IFeedRecord r,
                                               boolean before)
Prints attributes using dcat mappings

Parameters:
r - record
before - true if more info will be printed after that section

printArg2

protected void printArg2(String argName,
                         String argVal,
                         boolean more)
Prints argument.

Parameters:
argName - argument name
argVal - argument value
more - flag to indicate if there will be more arguments

printLinks

protected void printLinks(ResourceLinks links,
                          boolean more,
                          boolean before)
Prints all links.

Parameters:
links - collection of resource links
more - true if more elements are coming
before - flag to indicate if there will be more arguments

printLink

protected void printLink(ResourceLink link,
                         boolean more,
                         String format)
Prints a link.

Parameters:
link - resource link
more - flag to indicate if there will be more arguments
format - format

printLinkArg

protected void printLinkArg(String argName,
                            String argVal,
                            boolean more)
Prints argument.

Parameters:
argName - argument name
argVal - argument value
more - flag to indicate if there will be more arguments

checkAttr

protected boolean checkAttr(String attrName)
Checks if attribute of a given name can be printed.

Overrides:
checkAttr in class ExtJsonFeedWriter
Parameters:
attrName - attribute name
Returns:
true if attribute can be printed

buildOutFieldsSet

protected Set<String> buildOutFieldsSet()
Builds collection of names of fields for output.

Overrides:
buildOutFieldsSet in class ExtJsonFeedWriter
Returns:
set of fields names.

Esri Geoportal Server
1.2.9

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