org.openanzo.endpoint
Class EndpointUtil

java.lang.Object
  extended by org.openanzo.endpoint.EndpointUtil

public class EndpointUtil
extends java.lang.Object

Utility methods.

Author:
Wing Yung (wingyung@us.ibm.com)

Constructor Summary
EndpointUtil()
           
 
Method Summary
static java.util.Set<java.lang.String> getDefaultGraphs(javax.servlet.http.HttpServletRequest req)
          Extract all default graphs specified in the request.
static java.util.Set<java.lang.String> getNamedGraphs(javax.servlet.http.HttpServletRequest req)
          Extract all named graphs specified in the request.
static java.util.Set<java.lang.String> getNamedGraphs(javax.servlet.http.HttpServletRequest req, java.lang.String parameterName)
          Extract all named graphs using the specified parameter.
static java.lang.String tryParameter(javax.servlet.http.HttpServletRequest req, java.lang.String... names)
          Try to get a parameter with a variety of names From SquirrelRDF.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointUtil

public EndpointUtil()
Method Detail

getNamedGraphs

public static java.util.Set<java.lang.String> getNamedGraphs(javax.servlet.http.HttpServletRequest req)
Extract all named graphs specified in the request.

Parameters:
req -
Returns:

getDefaultGraphs

public static java.util.Set<java.lang.String> getDefaultGraphs(javax.servlet.http.HttpServletRequest req)
Extract all default graphs specified in the request.

Parameters:
req -
Returns:

getNamedGraphs

public static java.util.Set<java.lang.String> getNamedGraphs(javax.servlet.http.HttpServletRequest req,
                                                             java.lang.String parameterName)
Extract all named graphs using the specified parameter.

Parameters:
req -
parameterName -
Returns:

tryParameter

public static java.lang.String tryParameter(javax.servlet.http.HttpServletRequest req,
                                            java.lang.String... names)
Try to get a parameter with a variety of names From SquirrelRDF.

Parameters:
req -
names -
Returns:
null if not found, otherwise parameter value


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.