/** {@inheritDoc} */ public void include(String path) throws IOException { context.include(path); }
/** * Includes the result. By default, uses the wrapped request for the inclusion. * * @param path The path whose result will be included. * @throws IOException If something goes wrong. */ protected void doInclude(String path) throws IOException { getWrappedRequest().include(path); } }
/** {@inheritDoc} */ @Override public void execute(Request tilesContext, AttributeContext attributeContext) { if (tilesContext instanceof DispatchRequest) { try { ((DispatchRequest) tilesContext).include(url); } catch (IOException e) { throw new PreparerException("The inclusion of the URL " + url + " threw an I/O exception", e); } } else { throw new PreparerException("This preparer is restricted to web environments"); } } }