diff options
author | Jacek Centkowski <geminica.programs@gmail.com> | 2016-11-24 10:58:14 +0100 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2016-12-06 16:57:16 +0900 |
commit | c7d8fbfaadffdd8cb7e386bb89f031f49e91c23a (patch) | |
tree | aad8652234b9eca41096bda310b5f291de7e6ffe /org.eclipse.jgit.lfs.server/src/org/eclipse | |
parent | c62933bf5946663e47c29d3713d1fca989f304bc (diff) | |
download | jgit-c7d8fbfaadffdd8cb7e386bb89f031f49e91c23a.tar.gz jgit-c7d8fbfaadffdd8cb7e386bb89f031f49e91c23a.zip |
Expose getObjectToTransfer method of FileLfsServlet
Providing own implementation to doGet/doPut methods is troublesome when
this method is private.
Change-Id: I098cdc5cb90410eaaebc56c88c2d9e168584dd6d
Signed-off-by: Jacek Centkowski <geminica.programs@gmail.com>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server/src/org/eclipse')
-rw-r--r-- | org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java index a6079671de..a8e3c11e27 100644 --- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java +++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/fs/FileLfsServlet.java @@ -125,7 +125,20 @@ public class FileLfsServlet extends HttpServlet { } } - private AnyLongObjectId getObjectToTransfer(HttpServletRequest req, + /** + * Retrieve object id from request + * + * @param req + * servlet request + * @param rsp + * servlet response + * @return object id, or <code>null</code> if the object id could not be + * retrieved + * @throws IOException + * if an I/O error occurs + * @since 4.6 + */ + protected AnyLongObjectId getObjectToTransfer(HttpServletRequest req, HttpServletResponse rsp) throws IOException { String info = req.getPathInfo(); int length = 1 + Constants.LONG_OBJECT_ID_STRING_LENGTH; |