Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider.components
Class ParseHelper

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.components.ParseHelper

public class ParseHelper
extends Object

Provides utilities supporting request parsing.


Constructor Summary
ParseHelper()
          Default constructor
 
Method Summary
 String[] getParameterValues(HttpServletRequest request, String name)
          Gets the HTTP request parameter values associated with a key.
 String[] getParameterValues(HttpServletRequest request, String name, String delimiter)
          Gets the HTTP request parameter values associated with a key then tokenizes all values based upon a supplied delimiter.
 String[] getParameterValues(Node parent, XPath xpath, String expr)
          Generates a String array of child text node values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseHelper

public ParseHelper()
Default constructor

Method Detail

getParameterValues

public String[] getParameterValues(HttpServletRequest request,
                                   String name)
Gets the HTTP request parameter values associated with a key.

Parameters:
request - the HTTP request
name - the parameter name
Returns:
the parameter values (null if not found)

getParameterValues

public String[] getParameterValues(HttpServletRequest request,
                                   String name,
                                   String delimiter)
Gets the HTTP request parameter values associated with a key then tokenizes all values based upon a supplied delimiter.

Parameters:
request - the HTTP request
name - the parameter name
delimiter - the delimiter
Returns:
the parameter values (null if not found)

getParameterValues

public String[] getParameterValues(Node parent,
                                   XPath xpath,
                                   String expr)
                            throws XPathExpressionException
Generates a String array of child text node values.

Parameters:
parent - the parent node
xpath - an XPath to enable queries (properly configured with name spaces)
expr - the XPath locator expression
Returns:
an array of text node values associated with the supplied expression
Throws:
XPathExpressionException - if an XPath related exception occurs

Esri Geoportal Server
1.0

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