org.infinispan.remoting
Class MIMECacheEntry

java.lang.Object
  extended by 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

Field Summary
 String contentType
          The MIME Content type value, for example application/octet-stream.
 byte[] data
          The payload.
 long lastModified
          The date the entry was created...
 
Constructor Summary
MIMECacheEntry()
           
MIMECacheEntry(String contentType, byte[] data)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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/*


lastModified

public long lastModified
The date the entry was created...

Constructor Detail

MIMECacheEntry

public MIMECacheEntry()

MIMECacheEntry

public MIMECacheEntry(String contentType,
                      byte[] data)

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.