html
Class StaticResourceServlet.StaticResource
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 setlength
- Resource length. Cannot be null.contentStream
- Resource content as stream. Cannot be null.
- Throws:
java.lang.NullPointerException
- If name, length or contentStream is null
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()