Package org.infinispan.remoting
Class MIMECacheEntry
- java.lang.Object
-
- org.infinispan.remoting.MIMECacheEntry
-
- All Implemented Interfaces:
java.io.Serializable
public class MIMECacheEntry extends java.lang.Object implements java.io.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 java.lang.String
contentType
The MIME Content type value, for example application/octet-stream.byte[]
data
The payload.
-
Constructor Summary
Constructors Constructor Description MIMECacheEntry()
MIMECacheEntry(java.lang.String contentType, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Field Detail
-
contentType
public java.lang.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/*
-
-