Package org.eclipse.jgit.http.server
Class ObjectFileServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jgit.http.server.ObjectFileServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
ObjectFileServlet.Loose
,ObjectFileServlet.PackData
abstract class ObjectFileServlet
extends javax.servlet.http.HttpServlet
Sends any object from
GIT_DIR/objects/??/0 38
, or any pack file.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
private static class
(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doGet
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) protected void
doHead
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) (package private) abstract String
etag
(FileSender sender) private static File
objects
(javax.servlet.http.HttpServletRequest req) private void
serve
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, boolean sendBody) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
contentType
-
-
Constructor Details
-
ObjectFileServlet
ObjectFileServlet(String contentType)
-
-
Method Details
-
etag
- Throws:
IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws IOException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
doHead
protected void doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws javax.servlet.ServletException, IOException - Overrides:
doHead
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
serve
private void serve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, boolean sendBody) throws IOException - Throws:
IOException
-
objects
-