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 classprivate static class(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) protected voiddoHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) (package private) abstract Stringetag(FileSender sender) private static Fileobjects(javax.servlet.http.HttpServletRequest req) private voidserve(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, serviceMethods 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:
doGetin 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:
doHeadin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
serve
private void serve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, boolean sendBody) throws IOException - Throws:
IOException
-
objects
-