ro.isdc.wro.cache
Class CacheValue

java.lang.Object
  extended by ro.isdc.wro.cache.CacheValue
All Implemented Interfaces:
Serializable

public final class CacheValue
extends Object
implements Serializable

Entry holding a resource content along with its associated hash.

Author:
Alex Objelean
See Also:
Serialized Form

Method Summary
 byte[] getGzippedContent()
           
 String getHash()
           
 String getRawContent()
           
 void setHash(String hash)
           
 void setRawContent(String rawContent)
           
 String toString()
          
static CacheValue valueOf(String rawContent, String hash)
          Factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

valueOf

public static final CacheValue valueOf(String rawContent,
                                       String hash)
Factory method.

Returns:
CacheValue based on supplied values.

getRawContent

public String getRawContent()
Returns:
the content

setRawContent

public void setRawContent(String rawContent)
Parameters:
rawContent - the content to set

getHash

public String getHash()
Returns:
the hash

setHash

public void setHash(String hash)
Parameters:
hash - the hash to set

getGzippedContent

public byte[] getGzippedContent()
Returns:
the gzippedContent

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2008-2013. All Rights Reserved.