Class SmallResource
java.lang.Object
com.google.gerrit.httpd.resources.Resource
com.google.gerrit.httpd.resources.SmallResource
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isUnchanged
(long lastModified) void
send
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) setContentType
(String contentType) setLastModified
(long when) int
weigh()
-
Constructor Details
-
SmallResource
public SmallResource(byte[] data)
-
-
Method Details
-
setLastModified
-
setContentType
-
setCharacterEncoding
-
weigh
public int weigh() -
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
-