public class Server extends Object
Constructor and Description |
---|
Server(javax.ws.rs.core.Request request,
ServletContext servletContext,
boolean useAsync) |
Modifier and Type | Method and Description |
---|---|
String |
ApplicationXJavaSerializedObject() |
javax.ws.rs.core.MediaType |
ApplicationXJavaSerializedObjectType() |
javax.ws.rs.core.Response |
asyncPutInCache(AdvancedCache<String,byte[]> cache,
String key,
byte[] data,
String dataType,
long ttl,
long idleTime) |
List<javax.ws.rs.core.Variant> |
collectionVariantList() |
RestServerConfiguration |
configuration() |
Metadata |
createMetadata(Configuration cfg,
String dataType,
long ttl,
long idleTime) |
SimpleDateFormat |
datePatternRfc1123LocaleUS() |
javax.ws.rs.core.Response |
getEntry(String cacheName,
String key,
String extended,
String cacheControl) |
javax.ws.rs.core.Response |
getKeys(String cacheName,
String globalKeySet) |
MurmurHash3 |
hashFunc() |
javax.ws.rs.core.Response |
headEntry(String cacheName,
String key,
String extended,
String cacheControl) |
org.codehaus.jackson.map.ObjectMapper |
jsonMapper() |
javax.ws.rs.core.Response |
killCache(String cacheName,
String ifMatch,
String ifNoneMatch,
String ifModifiedSince,
String ifUnmodifiedSince) |
ManagerInstance |
manager() |
String |
MAX_IDLE_TIME_HEADER() |
Object |
printIt(scala.Function1<PrintWriter,scala.runtime.BoxedUnit> action) |
javax.ws.rs.core.Response |
putEntry(String cacheName,
String key,
String mediaType,
byte[] data,
long ttl,
long idleTime) |
javax.ws.rs.core.Response |
removeEntry(String cacheName,
String key) |
Object |
streamIt(scala.Function1<OutputStream,scala.runtime.BoxedUnit> action)
create a JAX-RS streaming output
|
String |
TIME_TO_LIVE_HEADER() |
List<javax.ws.rs.core.Variant> |
variantList()
For dealing with binary entries in the cache
|
com.thoughtworks.xstream.XStream |
xstream() |
public Server(javax.ws.rs.core.Request request, ServletContext servletContext, boolean useAsync)
public javax.ws.rs.core.MediaType ApplicationXJavaSerializedObjectType()
public String ApplicationXJavaSerializedObject()
public String TIME_TO_LIVE_HEADER()
public String MAX_IDLE_TIME_HEADER()
public List<javax.ws.rs.core.Variant> variantList()
public List<javax.ws.rs.core.Variant> collectionVariantList()
public org.codehaus.jackson.map.ObjectMapper jsonMapper()
public com.thoughtworks.xstream.XStream xstream()
public ManagerInstance manager()
public RestServerConfiguration configuration()
public SimpleDateFormat datePatternRfc1123LocaleUS()
public javax.ws.rs.core.Response getEntry(String cacheName, String key, String extended, String cacheControl)
public Object streamIt(scala.Function1<OutputStream,scala.runtime.BoxedUnit> action)
public Object printIt(scala.Function1<PrintWriter,scala.runtime.BoxedUnit> action)
public javax.ws.rs.core.Response headEntry(String cacheName, String key, String extended, String cacheControl)
public javax.ws.rs.core.Response putEntry(String cacheName, String key, String mediaType, byte[] data, long ttl, long idleTime)
public javax.ws.rs.core.Response asyncPutInCache(AdvancedCache<String,byte[]> cache, String key, byte[] data, String dataType, long ttl, long idleTime)
public Metadata createMetadata(Configuration cfg, String dataType, long ttl, long idleTime)
public javax.ws.rs.core.Response killCache(String cacheName, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince)
public MurmurHash3 hashFunc()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.