|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.EntryResource
public class EntryResource
REST resource representing a single cache entry.
Field Summary | |
---|---|
protected NamedCache |
m_cache NamedCache which stores the referenced entry. |
protected java.lang.Class |
m_clzValue Class of the referenced entry's value. |
protected java.lang.Object |
m_oKey Referenced entry's key. |
protected MarshallerRegistry |
m_registry Marshaller registry to obtain marshallers from. |
Constructor Summary | |
---|---|
EntryResource(NamedCache cache, java.lang.Object oKey, java.lang.Class clzValue, MarshallerRegistry registry) Construct EntryResource. |
Method Summary | |
---|---|
javax.ws.rs.core.Response |
delete() Remove the entry. |
protected boolean |
exists() Return true if the referenced entry exists in the cache. |
javax.ws.rs.core.Response |
get(PropertySet propertySet, javax.ws.rs.core.Request request) Return the entry value or a subset of its properties. |
protected java.lang.Object |
getValue() Get the entry value. |
javax.ws.rs.core.Response |
process(java.lang.String sProc, ProcessorRegistry registry) Invoke the specified processor against the entry's key. |
protected javax.ws.rs.core.Response |
putInternal(java.lang.Object oValue) Update the cache entry. |
javax.ws.rs.core.Response |
putJson(java.io.InputStream in) Update the entry value. |
javax.ws.rs.core.Response |
putText(java.lang.String sText) Update the entry value. |
javax.ws.rs.core.Response |
putXml(java.io.InputStream in) Update the entry value. |
protected java.lang.Object |
remove() Remove entry from the cache. |
protected java.lang.Object |
setValue(java.lang.Object oValue) Set the entry value. |
Field Detail |
---|
protected final NamedCache m_cache
protected final java.lang.Object m_oKey
protected final java.lang.Class m_clzValue
protected final MarshallerRegistry m_registry
Constructor Detail |
---|
public EntryResource(NamedCache cache, java.lang.Object oKey, java.lang.Class clzValue, MarshallerRegistry registry)
cache
- cache in which referenced entry is storedoKey
- referenced entry's keyclzValue
- class of the referenced entry's valueregistry
- a registry to obtain marshallers fromMethod Detail |
---|
public javax.ws.rs.core.Response get(PropertySet propertySet,
@Context
javax.ws.rs.core.Request request)
propertySet
- properties to return (if null, value itself will be returned)request
- current HTTP requestpublic javax.ws.rs.core.Response putJson(java.io.InputStream in)
in
- a stream containing a JSON representation of the new valueputInternal(java.lang.Object)
methodpublic javax.ws.rs.core.Response putXml(java.io.InputStream in)
in
- a stream containing an XML representation of the new valueputInternal(java.lang.Object)
methodpublic javax.ws.rs.core.Response putText(java.lang.String sText)
sText
- string to put into the cacheputInternal(java.lang.Object)
methodpublic javax.ws.rs.core.Response delete()
public javax.ws.rs.core.Response process(java.lang.String sProc,
sProc
- name of the processorregistry
- a processor registry that is used to map the given processor name to an EntryProcessor instanceprotected javax.ws.rs.core.Response putInternal(java.lang.Object oValue)
oValue
- new entry valueVersionable
interface and the version of the entry in the cache does not match the version of the entry in the request (in case of conflict, the current entry value will be returned in the body of the response as well)protected java.lang.Object getValue()
protected java.lang.Object setValue(java.lang.Object oValue)
oValue
- new valueprotected java.lang.Object remove()
protected boolean exists()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |