Package org.infinispan.remoting
Class MIMECacheEntry
- java.lang.Object
-
- org.infinispan.remoting.MIMECacheEntry
-
- All Implemented Interfaces:
Serializable
public class MIMECacheEntry extends Object implements Serializable
Wrapper object for entries that arrive via RESTful PUT/POST interface.- Since:
- 4.0
- Author:
- Michael Neale
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MIMECacheEntry.Externalizer
-
Field Summary
Fields Modifier and Type Field Description String
contentType
The MIME Content type value, for example application/octet-stream.byte[]
data
The payload.
-
Constructor Summary
Constructors Constructor Description MIMECacheEntry()
MIMECacheEntry(String contentType, byte[] data)
-
-
-
Field Detail
-
contentType
public String contentType
The MIME Content type value, for example application/octet-stream. Often used in HTTP headers.
-
data
public byte[] data
The payload. The actual form of the contents depends on the contentType field. Will be String data if the contentType is application/json, application/xml or text/*
-
-
Constructor Detail
-
MIMECacheEntry
public MIMECacheEntry()
-
MIMECacheEntry
public MIMECacheEntry(String contentType, byte[] data)
-
-