| Modifier and Type | Class and Description |
|---|---|
| protected static class | LfsProtocolServlet.
LFS request. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Logger | |
| private static final int | |
| private static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doPost(HttpServletRequest
an req, HttpServletResponse HttpServletRequest object that contains the request the client has made of the servletan res)HttpServletResponse object that contains the response the servlet sends to the clientOverrides jakarta. Called by the server (via the |
| protected abstract LargeFileRepository | Returns: the large file repository storing large files.the request request,the path path, String the Authorization HTTP header auth)Get the large file repository for the given request and path. |
| private void |
| CONTENTTYPE_VND_GIT_LFS_JSON | back to summary |
|---|---|
| private static final String CONTENTTYPE_VND_GIT_LFS_JSON | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| SC_BANDWIDTH_LIMIT_EXCEEDED | back to summary |
|---|---|
| private static final int SC_BANDWIDTH_LIMIT_EXCEEDED | |
| SC_RATE_LIMIT_EXCEEDED | back to summary |
|---|---|
| private static final int SC_RATE_LIMIT_EXCEEDED | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| LfsProtocolServlet | back to summary |
|---|---|
| public LfsProtocolServlet() | |
| doPost | back to summary |
|---|---|
| protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException Overrides jakarta. Doc from jakarta. Called by the server (via the
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. This method does not need to be either safe or idempotent. Operations requested through POST can have side effects for which the user can be held accountable, for example, updating stored data or buying items online.
If the HTTP POST request is incorrectly formatted,
| |
| getLargeFileRepository | back to summary |
|---|---|
| protected abstract LargeFileRepository getLargeFileRepository(LfsProtocolServlet. Get the large file repository for the given request and path.
| |
| sendError | back to summary |
|---|---|
| private void sendError(HttpServletResponse rsp, Writer writer, int status, String message) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean |
| objects | back to summary |
|---|---|
| private List<LfsObject> objects | |
| operation | back to summary |
|---|---|
| private String operation | |
| LfsRequest | back to summary |
|---|---|
| protected LfsRequest() | |
| getObjects | back to summary |
|---|---|
| public List Get the LFS objects. | |
| getOperation | back to summary |
|---|---|
| public String getOperation() Get the LFS operation.
| |
| isDownload | back to summary |
|---|---|
| public boolean isDownload() Whether the operation is download
| |
| isUpload | back to summary |
|---|---|
| public boolean isUpload() Whether operation is upload
| |
| isVerify | back to summary |
|---|---|
| public boolean isVerify() Whether the operation is verify
| |