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
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/*
lastModified
public long lastModified
- The date the entry was created...
MIMECacheEntry
public MIMECacheEntry()
MIMECacheEntry
public MIMECacheEntry(String contentType,
byte[] data)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.