info.sswap.http
Class SSWAPEnvironment

java.lang.Object
  extended by info.sswap.http.SSWAPEnvironment

public class SSWAPEnvironment
extends java.lang.Object

Describes the environment of the RESTful interface (e.g., the web-accessible resources, the content providers etc.)

Author:
Blazej Bulka

Field Summary
static java.lang.String DEFAULT_CACHE_API
           
static java.lang.String DEFAULT_CACHE_API_CONFIG_PROPERTY
           
static java.lang.String DEFAULT_NO_CACHE_API
           
static java.lang.String DEFAULT_NO_CACHE_API_CONFIG_PROPERTY
           
private static java.lang.Object[] providers
          The array with content providers (initialized in the class initializer).
private static java.lang.Class[] RESOURCES
          The array with classes that represent the web-accessible resources
private static boolean testMode
           
 
Constructor Summary
SSWAPEnvironment()
           
 
Method Summary
private static java.util.List<java.lang.Object> createProviders()
          Creates the instances of content providers
static java.lang.String getCacheAPI()
           
static java.lang.String getNoCacheAPI()
           
static java.lang.Object[] getProviders()
          Gets the content providers.
static java.lang.Class[] getResources()
          Gets the classes that represent the web-accessible resources
static boolean isCacheAPI()
           
static boolean isTestMode()
           
static void setTestMode(boolean testMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CACHE_API

public static final java.lang.String DEFAULT_CACHE_API
See Also:
Constant Field Values

DEFAULT_CACHE_API_CONFIG_PROPERTY

public static final java.lang.String DEFAULT_CACHE_API_CONFIG_PROPERTY
See Also:
Constant Field Values

DEFAULT_NO_CACHE_API

public static final java.lang.String DEFAULT_NO_CACHE_API
See Also:
Constant Field Values

DEFAULT_NO_CACHE_API_CONFIG_PROPERTY

public static final java.lang.String DEFAULT_NO_CACHE_API_CONFIG_PROPERTY
See Also:
Constant Field Values

RESOURCES

private static final java.lang.Class[] RESOURCES
The array with classes that represent the web-accessible resources


testMode

private static boolean testMode

providers

private static java.lang.Object[] providers
The array with content providers (initialized in the class initializer).

Constructor Detail

SSWAPEnvironment

public SSWAPEnvironment()
Method Detail

createProviders

private static java.util.List<java.lang.Object> createProviders()
Creates the instances of content providers

Returns:
a list of content providers.

getResources

public static java.lang.Class[] getResources()
Gets the classes that represent the web-accessible resources

Returns:
an array of web-accessible resources

getProviders

public static java.lang.Object[] getProviders()
Gets the content providers.

Returns:
the array of content providers.

getCacheAPI

public static java.lang.String getCacheAPI()

getNoCacheAPI

public static java.lang.String getNoCacheAPI()

isCacheAPI

public static boolean isCacheAPI()

isTestMode

public static boolean isTestMode()

setTestMode

public static void setTestMode(boolean testMode)


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