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:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
- Direct Known Subclasses:
ObjectFileServlet.Loose,ObjectFileServlet.PackData
abstract class ObjectFileServlet extends javax.servlet.http.HttpServletSends any object fromGIT_DIR/objects/??/0 38, or any pack file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classObjectFileServlet.Loose(package private) static classObjectFileServlet.Packprivate static classObjectFileServlet.PackData(package private) static classObjectFileServlet.PackIdx
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcontentTypeprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ObjectFileServlet(java.lang.String contentType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoGet(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 java.lang.Stringetag(FileSender sender)private static java.io.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, service
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
contentType
private final java.lang.String contentType
-
-
Method Detail
-
etag
abstract java.lang.String etag(FileSender sender) throws java.io.IOException
- Throws:
java.io.IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws java.io.IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
java.io.IOException
-
doHead
protected void doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws javax.servlet.ServletException, java.io.IOException- Overrides:
doHeadin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
serve
private void serve(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp, boolean sendBody) throws java.io.IOException- Throws:
java.io.IOException
-
objects
private static java.io.File objects(javax.servlet.http.HttpServletRequest req)
-
-