Class 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
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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/*
    • Constructor Detail

      • MIMECacheEntry

        public MIMECacheEntry()
      • MIMECacheEntry

        public MIMECacheEntry​(java.lang.String contentType,
                              byte[] data)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object