context.get(MojasefConstants.MOUNTPOINT);
}
private static Object dx(StringCollector collector, StringFinder xcontext, Object application) {
Object ret = Token.CONTINUE;
StringKeeper keeper = StringFinderHelper.ensureKeeper(xcontext);
String path = keeper.get(MojasefConstants.REQUEST_LOCALPATH);
String mountpoint = keeper.get(MojasefConstants.MOUNTPOINT) + keeper.get(MojasefConstants.MOUNTPOINT);
if (path.startsWith(mountpoint)) {
path = path.substring(mountpoint.length());
keeper.put(MojasefConstants.REQUEST_LOCALPATH, path);
}
int sep = path.indexOf(DIRSEP);
keeper.put(MojasefConstants.REQUEST_PATHTAIL,
sep > 0 ? path.substring(sep+1) : "");
if (application != null) {
Object warm = MethodCallUtils.call(application, "warmup", keeper);
if (warm instanceof Token) return warm;
if (warm != null) application = warm;
String command = keeper.get(HTTPConstants.REQUEST_METHOD);
String method = methodName(keeper);
//keeper.put(MojasefConstants.REQUEST_PATHOBJECT, method);
String dfl = keeper.get(MojasefConstants.DEFAULT_LEAFNAME);
List<String> methods = new ArrayList<String>();
if (method != null && method.trim().length() > 0) {
methods.add(method);
}