Class SmallResource
- java.lang.Object
-
- com.google.gerrit.httpd.resources.Resource
-
- com.google.gerrit.httpd.resources.SmallResource
-
- All Implemented Interfaces:
Serializable
public final class SmallResource extends Resource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SmallResource(byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isUnchanged(long lastModified)
void
send(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
SmallResource
setCharacterEncoding(String enc)
SmallResource
setContentType(String contentType)
SmallResource
setLastModified(long when)
int
weigh()
-
-
-
Method Detail
-
setLastModified
public SmallResource setLastModified(long when)
-
setContentType
public SmallResource setContentType(String contentType)
-
setCharacterEncoding
public SmallResource setCharacterEncoding(String enc)
-
send
public void send(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
- Specified by:
send
in classResource
- Throws:
IOException
-
isUnchanged
public boolean isUnchanged(long lastModified)
- Specified by:
isUnchanged
in classResource
-
-