org.loom.resources
Class AbstractCompiledWebResource

java.lang.Object
  extended by org.loom.resources.AbstractCompiledWebResource
All Implemented Interfaces:
CompiledWebResource
Direct Known Subclasses:
CompiledInMemoryWebResource, CompiledToDiskWebResource

public abstract class AbstractCompiledWebResource
extends java.lang.Object
implements CompiledWebResource


Field Summary
protected  java.lang.String md5
          the calculated md5 of this resource
protected  java.lang.String name
          the location that will be rendered into the HTML page
 
Constructor Summary
AbstractCompiledWebResource()
           
 
Method Summary
 java.lang.String getMd5()
           
 java.lang.String getName()
           
 void render(AbstractWebResourceTag tag)
          render the tag for this compiled resource
 void setMd5(java.lang.String md5)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.loom.resources.CompiledWebResource
getGzippedInputStream, getGzippedLength, getInputStream, getLength
 

Field Detail

md5

protected java.lang.String md5
the calculated md5 of this resource


name

protected java.lang.String name
the location that will be rendered into the HTML page

Constructor Detail

AbstractCompiledWebResource

public AbstractCompiledWebResource()
Method Detail

render

public void render(AbstractWebResourceTag tag)
            throws javax.servlet.jsp.JspException,
                   java.io.IOException
Description copied from interface: CompiledWebResource
render the tag for this compiled resource

Specified by:
render in interface CompiledWebResource
Throws:
javax.servlet.jsp.JspException
java.io.IOException

getMd5

public java.lang.String getMd5()
Specified by:
getMd5 in interface CompiledWebResource
Returns:
the calculated MD5 hash of this file

setMd5

public void setMd5(java.lang.String md5)

getName

public java.lang.String getName()
Specified by:
getName in interface CompiledWebResource

setName

public void setName(java.lang.String name)