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>
This commit is contained in:
Jacek Centkowski 2016-11-24 10:58:14 +01:00 committed by David Pursehouse
parent c62933bf59
commit c7d8fbfaad
1 changed files with 14 additions and 1 deletions

View File

@ -125,7 +125,20 @@ protected void doGet(HttpServletRequest req,
}
}
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;