public class ResourceConfig extends Object
| Constructor and Description |
|---|
ResourceConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected KeyConverter |
createKeyConverter()
Create key converter instance.
|
String |
getCacheName()
Determine the name of the cache.
|
Class |
getKeyClass()
Determine the class of the cache key.
|
KeyConverter |
getKeyConverter()
Return a KeyConverter instance for this resource.
|
Map<String,Class> |
getMarshallerMap()
Return a map of marshaller classes keyed by media type.
|
int |
getMaxResults()
Return the max size of result set this resource is allowed to return.
|
QueryConfig |
getQueryConfig()
Return the query configuration for this resource.
|
Class |
getValueClass()
Determine the class of the cached values.
|
void |
setCacheName(String sName)
Set the name of the cache.
|
void |
setKeyClass(Class clz)
Set the key class.
|
void |
setKeyConverterClass(Class clz)
Set the key converter class.
|
void |
setMarshallerMap(Map<String,Class> map)
Set the map of marshaller classes keyed by media type.
|
void |
setMaxResults(int cMaxResults)
Set the max size of result set this resource is allowed to return.
|
void |
setQueryConfig(QueryConfig config)
Set the query configuration for this resource.
|
void |
setValueClass(Class clz)
Set the value class.
|
public String getCacheName()
public void setCacheName(String sName)
sName - the cache namepublic Class getKeyClass()
public void setKeyClass(Class clz)
clz - the key classpublic Class getValueClass()
public void setValueClass(Class clz)
clz - the value classpublic void setKeyConverterClass(Class clz)
clz - the key converter classpublic KeyConverter getKeyConverter()
public Map<String,Class> getMarshallerMap()
public void setMarshallerMap(Map<String,Class> map)
map - a map of marshaller classes keyed by media typepublic int getMaxResults()
public void setMaxResults(int cMaxResults)
cMaxResults - max size of result set this resource is allowed to
returnpublic QueryConfig getQueryConfig()
public void setQueryConfig(QueryConfig config)
config - the query configurationprotected KeyConverter createKeyConverter()