Package com.google.gerrit.httpd.raw
Class CatServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.google.gerrit.httpd.raw.CatServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class CatServlet extends javax.servlet.http.HttpServlet
Exports a single version of a patch as a normal file download.This can be relatively unsafe with Microsoft Internet Explorer 6.0 as the browser will (rather incorrectly) treat an HTML or JavaScript file its supposed to download as though it was served by this site, and will execute it with the site's own protection domain. This opens a massive security hole so we package the content into a zip file.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
-