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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.