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.HttpServlet
Sends any object fromGIT_DIR/objects/??/0 38
, or any pack file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ObjectFileServlet.Loose
(package private) static class
ObjectFileServlet.Pack
private static class
ObjectFileServlet.PackData
(package private) static class
ObjectFileServlet.PackIdx
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
contentType
private static long
serialVersionUID
-
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 void
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 java.lang.String
etag(FileSender sender)
private static java.io.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
-
-
-
-
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:
doGet
in 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:
doHead
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.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)
-
-