/** * return body-insert text. * <p>Run {@code jspInsertPath} and return its output as String. * if {@code jspInsertPath} is {@code null}, or body-insert should not be * inserted into the resource being processed, returns {@code null}.</p> * @param context context for the resource being processed * @return insert text as String, or {@code null} if no insertion shall be * made. */ protected String bodyInsertContent(ReplayParseContext context) { if (jspInsertPath == null) return null; JSPExecutor jspExec = context.getJspExec(); // FIXME bad chain of references. add method to ReplayParseContext? WaybackRequest wbRequest = jspExec.getUiResults().getWbRequest(); // isAnyEmbeddedContext() used as shorthand for (isFrameWrapperContext() // && isIFrameWrapperContext()). if (wbRequest.isAnyEmbeddedContext()) return null; try { return jspExec.jspToString(jspInsertPath); } catch (ServletException ex) { LOGGER.log(Level.WARNING, "execution of " + jspInsertPath + " failed", ex); return null; } catch (IOException ex) { LOGGER.log(Level.WARNING, "erorr executing " + jspInsertPath, ex); return null; } }
/** * return body-insert text. * <p>Run {@code jspInsertPath} and return its output as String. * if {@code jspInsertPath} is {@code null}, or body-insert should not be * inserted into the resource being processed, returns {@code null}.</p> * @param context context for the resource being processed * @return insert text as String, or {@code null} if no insertion shall be * made. */ protected String bodyInsertContent(ReplayParseContext context) { if (jspInsertPath == null) return null; JSPExecutor jspExec = context.getJspExec(); // FIXME bad chain of references. add method to ReplayParseContext? WaybackRequest wbRequest = jspExec.getUiResults().getWbRequest(); // isAnyEmbeddedContext() used as shorthand for (isFrameWrapperContext() // && isIFrameWrapperContext()). if (wbRequest.isAnyEmbeddedContext()) return null; try { return jspExec.jspToString(jspInsertPath); } catch (ServletException ex) { LOGGER.log(Level.WARNING, "execution of " + jspInsertPath + " failed", ex); return null; } catch (IOException ex) { LOGGER.log(Level.WARNING, "erorr executing " + jspInsertPath, ex); return null; } }
if (!wbRequest.isAnyEmbeddedContext()) { return LiveWebState.FOUND;
if (!wbRequest.isAnyEmbeddedContext()) { return LiveWebState.FOUND;
if (wbRequest.isAnyEmbeddedContext() && currentClosest.isHttpError() || wbRequest.isBestLatestReplayRequest() &&
if (wbRequest.isAnyEmbeddedContext() && currentClosest.isHttpError() || wbRequest.isBestLatestReplayRequest() &&
assertTrue(wbRequest.isAnyEmbeddedContext());
if (wbRequest.isAnyEmbeddedContext() || wbRequest.isIdentityContext()) { wbRequest.setTimestampSearchKey(true);
if (wbRequest.isAnyEmbeddedContext() || wbRequest.isIdentityContext()) { wbRequest.setTimestampSearchKey(true);