Esri Geoportal Server
1.2.9

com.esri.gpt.control.cart
Class MergeThenTransform

java.lang.Object
  extended by com.esri.gpt.control.cart.KeysetProcessor
      extended by com.esri.gpt.control.cart.MergeThenTransform

public class MergeThenTransform
extends KeysetProcessor

Merges the XML documents associated with a set of keys into a single document, applies an XSLT, then returns the response.


Field Summary
 
Fields inherited from class com.esri.gpt.control.cart.KeysetProcessor
XSLTTEMPLATES
 
Constructor Summary
MergeThenTransform()
          Default constructor
 
Method Summary
protected  StringBuilder appendPropertyElement(StringAttributeMap cfgParams, StringBuilder xml, String nl, String cfgKey)
          Appends an XML property element based upon a gpt.xml configuration parameter.
protected  StringBuilder appendPropertyElement(StringBuilder xml, String nl, String name, String value)
          Appends an XML property element.
protected  StringBuilder appendXmlAttribute(StringBuilder xml, String name, String value)
          Appends an XML attribute value.
 void execute(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Processes the HTTP request.
 
Methods inherited from class com.esri.gpt.control.cart.KeysetProcessor
getCompiledTemplate, newProcessor, readKeys, readXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeThenTransform

public MergeThenTransform()
Default constructor

Method Detail

appendXmlAttribute

protected StringBuilder appendXmlAttribute(StringBuilder xml,
                                           String name,
                                           String value)
Appends an XML attribute value.

Parameters:
xml - the XML being constructed
name - the attribute name
value - the attribute value

appendPropertyElement

protected StringBuilder appendPropertyElement(StringBuilder xml,
                                              String nl,
                                              String name,
                                              String value)
Appends an XML property element.
<property name="[name]"/>[value]</property>

Parameters:
xml - the XML being constructed
name - the property name
value - the property value

appendPropertyElement

protected StringBuilder appendPropertyElement(StringAttributeMap cfgParams,
                                              StringBuilder xml,
                                              String nl,
                                              String cfgKey)
Appends an XML property element based upon a gpt.xml configuration parameter.
<property name="[name]"/>[value]</property>

Parameters:
cfgParams - the configuration parameters
xml - the XML being constructed
nl - the new line prefix
cfgKey - the configuration parameter key

execute

public void execute(HttpServletRequest request,
                    HttpServletResponse response,
                    RequestContext context)
             throws Exception
Processes the HTTP request.

Specified by:
execute in class KeysetProcessor
Parameters:
request - the HTTP request
response - HTTP response
context - request context
Throws:
Exception - if an exception occurs

Esri Geoportal Server
1.2.9

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