ro.isdc.wro.cache
Class ContentHashEntry

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

public final class ContentHashEntry
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 ContentHashEntry 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 ContentHashEntry valueOf(String rawContent,
                                             String hash)
Factory method.

Returns:
ContentHashEntry 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-2011. All Rights Reserved.