//			wbRequest.setContextPrefix(getUrlRoot());
protected boolean dispatchLocal(HttpServletRequest httpRequest,
			HttpServletResponse httpResponse) throws ServletException,
			IOException {
		if (LOGGER.isLoggable(Level.FINE)) {
			LOGGER.fine("Local dispatch /" + translateRequestPath(httpRequest));
		}
		if (!serveStatic) {
			return false;
		}
//		String contextRelativePath = httpRequest.getServletPath();
		String translatedNoQuery = "/" + translateRequestPath(httpRequest);
//		String absPath = getServletContext().getRealPath(contextRelativePath);
		String absPath = getServletContext().getRealPath(translatedNoQuery);
		if (this.isEnableMemento()) {
			MementoUtils.addDoNotNegotiateHeader(httpResponse);
		}
		//IK: added null check for absPath, it may be null (ex. on jetty)
		if (absPath != null) {
			File test = new File(absPath);
			if((test != null) && !test.exists()) {
				return false;
			}
		}
		String translatedQ = "/" + translateRequestPathQuery(httpRequest);
		WaybackRequest wbRequest = new WaybackRequest();
//			wbRequest.setContextPrefix(getUrlRoot());
		wbRequest.setAccessPoint(this);
		wbRequest.extractHttpRequestInfo(httpRequest);
		UIResults uiResults = new UIResults(wbRequest,uriConverter);
		try {
			uiResults.forward(httpRequest, httpResponse, translatedQ);
			return true;
		} catch(IOException e) {
			// TODO: figure out if we got IO because of a missing dispatcher
		}
		return false;
	}
String translatedQ = "/" + translateRequestPathQuery(httpRequest);
WaybackRequest wbRequest = new WaybackRequest();
// wbRequest.setContextPrefix(getUrlRoot());
wbRequest.setAccessPoint(this);
wbRequest.extractHttpRequestInfo(httpRequest);
}
//IK: added null check for absPath, it may be null (ex. on jetty)
if (absPath != null) {
File test = new File(absPath);
if((test != null) && !test.exists()) {
return false;
}
}
String translatedQ = "/" + translateRequestPathQuery(httpRequest);
WaybackRequest wbRequest = new WaybackRequest();
// wbRequest.setContextPrefix(getUrlRoot());
wbRequest.setAccessPoint(this);
wbRequest.extractHttpRequestInfo(httpRequest);
UIResults uiResults = new UIResults(wbRequest,uriConverter);
try {
uiResults.forward(httpRequest, httpResponse, translatedQ);
return true;
} catch(IOException e) {
// TODO: figure out if we got IO because of a missing dispatcher
}
return false;
}
if (!serveStatic) {
return false;
}
// String contextRelativePath = httpRequest.getServletPath();
String translatedNoQuery = "/" + translateRequestPath(httpRequest);
// String absPath = getServletContext().getRealPath(contextRelativePath);
String absPath = getServletContext().getRealPath(translatedNoQuery);
if (this.isEnableMemento()) {
MementoUtils.addDoNotNegotiateHeader(httpResponse);
}
//IK: added null check for absPath, it may be null (ex. on jetty)
if (absPath != null) {
File test = new File(absPath);
if((test != null) && !test.exists()) {
return false;
}
}
String translatedQ = "/" + translateRequestPathQuery(httpRequest);
WaybackRequest wbRequest = new WaybackRequest();
// wbRequest.setContextPrefix(getUrlRoot());
wbRequest.setAccessPoint(this);
wbRequest.extractHttpRequestInfo(httpRequest);
UIResults uiResults = new UIResults(wbRequest,uriConverter);
try {
uiResults.forward(httpRequest, httpResponse, translatedQ);
return true;
} catch(IOException e) {
// TODO: figure out if we got IO because of a missing dispatcher
}
return false;
}