/** * Get requests. * * @param base * base URI used to access the server. * @param path * the path to locate requests for, relative to {@code base}. * @return all requests which match the given path. */ public List<AccessEvent> getRequests(URIish base, String path) { return getRequests(HttpTestCase.join(base, path)); }
/** * @param base * base URI used to access the server. * @param path * the path to locate requests for, relative to {@code base}. * @return all requests which match the given path. */ public List<AccessEvent> getRequests(URIish base, String path) { return getRequests(HttpTestCase.join(base, path)); }
public static String loose(URIish base, AnyObjectId id) { final String objectName = id.name(); final String d = objectName.substring(0, 2); final String f = objectName.substring(2); return join(base, "objects/" + d + "/" + f); }
/** * Create loose object path * * @param base * @param id * @return path of the loose object */ public static String loose(URIish base, AnyObjectId id) { final String objectName = id.name(); final String d = objectName.substring(0, 2); final String f = objectName.substring(2); return join(base, "objects/" + d + "/" + f); }