info.sswap.http.rest
Class JSONSyntax

java.lang.Object
  extended by info.sswap.http.rest.RESTBase
      extended by info.sswap.http.rest.JSONSyntax

public class JSONSyntax
extends RESTBase

RESTful resource that provides a static JSON Syntax page

Author:
Blazej Bulka , Damian Gessler

Field Summary
private static java.lang.String DESCRIPTION_RESOURCE
           
 
Constructor Summary
JSONSyntax()
           
 
Method Summary
protected  java.lang.String getDescriptionResource()
          Returns the name of the resource (in the classpath) that contains the human-readable description about this RESTful interface
protected  java.lang.String getJSONSchemaResource()
          Returns the name of the resource (in the classpath) that contains the JSON schema for the document acceptable by this resource
 
Methods inherited from class info.sswap.http.rest.RESTBase
checkForUndefinedNS, clearLastForwardInTesting, displayDescription, displayJSONSchema, extractPrefixOverride, forward, getLastForwardInTesting, needsForwarding, rebuildPrefixOverrideQueryString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTION_RESOURCE

private static final java.lang.String DESCRIPTION_RESOURCE
See Also:
Constant Field Values
Constructor Detail

JSONSyntax

public JSONSyntax()
Method Detail

getDescriptionResource

protected java.lang.String getDescriptionResource()
Description copied from class: RESTBase
Returns the name of the resource (in the classpath) that contains the human-readable description about this RESTful interface

Specified by:
getDescriptionResource in class RESTBase
Returns:
the name of the resource (in the class path) that is a plain text file with the description

getJSONSchemaResource

protected java.lang.String getJSONSchemaResource()
Description copied from class: RESTBase
Returns the name of the resource (in the classpath) that contains the JSON schema for the document acceptable by this resource

Specified by:
getJSONSchemaResource in class RESTBase
Returns:
the name of the resource (in the classpath) that is a JSON schema file


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.