html
Class StaticResourceServlet.StaticResource

java.lang.Object
  extended by html.StaticResourceServlet.StaticResource
Enclosing class:
StaticResourceServlet

public static class StaticResourceServlet.StaticResource
extends java.lang.Object

Representation of resource to serve.


Constructor Summary
StaticResourceServlet.StaticResource(java.lang.String name, java.lang.String contentType, java.lang.Long lastModified, java.lang.Long length, java.io.InputStream contentStream)
          Constructor
 
Method Summary
 java.io.InputStream getContentStream()
           
 java.lang.String getContentType()
           
 java.lang.String getETag()
           
 java.lang.Long getLastModified()
           
 java.lang.Long getLength()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticResourceServlet.StaticResource

public StaticResourceServlet.StaticResource(java.lang.String name,
                                            java.lang.String contentType,
                                            java.lang.Long lastModified,
                                            java.lang.Long length,
                                            java.io.InputStream contentStream)
Constructor

Parameters:
name - Resource name. Cannot be null.
contentType - Content type of resource. If null, content type will be specified by resource name.
lastModified - Last modification. If null, current time will be set
length - Resource length. Cannot be null.
contentStream - Resource content as stream. Cannot be null.
Throws:
java.lang.NullPointerException - If name, length or contentStream is null
Method Detail

getName

public java.lang.String getName()

getContentType

public java.lang.String getContentType()

getLastModified

public java.lang.Long getLastModified()

getLength

public java.lang.Long getLength()

getContentStream

public java.io.InputStream getContentStream()

getETag

public java.lang.String getETag()