GIT_DIR/objects/??/0 38, or any pack file.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| private abstract static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | doGet(final HttpServletRequest
an req, final HttpServletResponse HttpServletRequest object that contains the request the client has made of the servletan rsp)HttpServletResponse object that contains the response the servlet sends to the clientOverrides jakarta. Called by the server (via the |
| protected void | doHead(final HttpServletRequest
the request object that is passed to the servlet req, final HttpServletResponse the response object that the servlet uses to return the headers to the clien rsp)Overrides jakarta.
Receives an HTTP HEAD request from the protected |
| pack-priv abstract String | |
| private static File | |
| private void |
| contentType | back to summary |
|---|---|
| private final String contentType | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ObjectFileServlet | back to summary |
|---|---|
| pack-priv ObjectFileServlet(String contentType) | |
| doGet | back to summary |
|---|---|
| public void doGet(final HttpServletRequest req, final HttpServletResponse rsp) throws IOException Overrides jakarta. Doc from jakarta. Called by the server (via the Overriding this method to support a GET request also automatically supports an HTTP HEAD request. A HEAD request is a GET request that returns no body in the response, only the request header fields.
When overriding this method, read the request data, write the response headers, get the response's writer or output
stream object, and finally, write the response data. It's best to include content type and encoding. When using a
The servlet container must write the headers before committing the response, because in HTTP the headers must be sent before the response body.
Where possible, set the Content-Length header (with the When using HTTP 1.1 chunked encoding (which means that the response has a Transfer-Encoding header), do not set the Content-Length header. The GET method should be safe, that is, without any side effects for which users are held responsible. For example, most form queries have no side effects. If a client request is intended to change stored data, the request should use some other HTTP method. The GET method should also be idempotent, meaning that it can be safely repeated. Sometimes making a method safe also makes it idempotent. For example, repeating queries is both safe and idempotent, but buying a product online or modifying data is neither safe nor idempotent.
If the request is incorrectly formatted,
| |
| doHead | back to summary |
|---|---|
| protected void doHead(final HttpServletRequest req, final HttpServletResponse rsp) throws ServletException, IOException Overrides jakarta. Doc from jakarta.
Receives an HTTP HEAD request from the protected
If you override this method, you can avoid computing the response body and just set the response headers directly to
improve performance. Make sure that the
The default implementation calls
If the HTTP HEAD request is incorrectly formatted,
| |
| etag | back to summary |
|---|---|
| pack-priv abstract String etag(FileSender sender) throws IOException | |
| objects | back to summary |
|---|---|
| private static File objects(HttpServletRequest req) | |
| serve | back to summary |
|---|---|
| private void serve(final HttpServletRequest req, final HttpServletResponse rsp, final boolean sendBody) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| Loose | back to summary |
|---|---|
| pack-priv Loose() | |
| etag | back to summary |
|---|---|
| pack-priv String etag(FileSender sender) throws IOException Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| Pack | back to summary |
|---|---|
| pack-priv Pack() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| PackData | back to summary |
|---|---|
| pack-priv PackData(String contentType) | |
| etag | back to summary |
|---|---|
| pack-priv String etag(FileSender sender) throws IOException Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| PackIdx | back to summary |
|---|---|
| pack-priv PackIdx() | |