public WebApp getWebApp() { return stapler.getWebApp(); }
public BoundObjectTable getBoundObjectTable() { return stapler.getWebApp().boundObjectTable; }
public BoundObjectTable getBoundObjectTable() { return stapler.getWebApp().boundObjectTable; }
public WebApp getWebApp() { return stapler.getWebApp(); }
public BoundObjectTable getBoundObjectTable() { return stapler.getWebApp().boundObjectTable; }
public WebApp getWebApp() { return stapler.getWebApp(); }
public RequestDispatcher getView(Klass<?> clazz, Object it, String viewName) throws IOException { for( Facet f : stapler.getWebApp().facets ) { RequestDispatcher rd = f.createRequestDispatcher(this,clazz,it,viewName); if(rd!=null) return rd; } return null; }
public RequestDispatcher getView(Class clazz, Object it, String viewName) throws IOException { for( Facet f : stapler.getWebApp().facets ) { RequestDispatcher rd = f.createRequestDispatcher(this,clazz,it,viewName); if(rd!=null) return rd; } return null; }
/** * Gets the current {@link WebApp} that the calling thread is associated with. */ public static WebApp getCurrent() { return Stapler.getCurrent().getWebApp(); } }
public RequestDispatcher getView(Klass<?> clazz, Object it, String viewName) throws IOException { for( Facet f : stapler.getWebApp().facets ) { RequestDispatcher rd = f.createRequestDispatcher(this,clazz,it,viewName); if(rd!=null) return rd; } return null; }
/** * Gets the current {@link WebApp} that the calling thread is associated with. */ public static WebApp getCurrent() { return Stapler.getCurrent().getWebApp(); }
/** * Gets the current {@link WebApp} that the calling thread is associated with. */ public static WebApp getCurrent() { return Stapler.getCurrent().getWebApp(); }
static boolean renderResponse(RequestImpl req, ResponseImpl rsp, Object node, Object ret) throws IOException, ServletException { for (HttpResponseRenderer r : req.stapler.getWebApp().getResponseRenderers()) if (r.generateResponse(req,rsp,node,ret)) return true; return false; }
static boolean renderResponse(RequestImpl req, ResponseImpl rsp, Object node, Object ret) throws IOException, ServletException { for (HttpResponseRenderer r : req.stapler.getWebApp().getResponseRenderers()) if (r.generateResponse(req,rsp,node,ret)) return true; return false; }
private boolean renderResponse(RequestImpl req, ResponseImpl rsp, Object node, Object ret) throws IOException, ServletException { for (HttpResponseRenderer r : req.stapler.getWebApp().getResponseRenderers()) if (r.generateResponse(req,rsp,node,ret)) return true; return false; }
public RequestDispatcher createRequestDispatcher(RequestImpl request, Klass type, Object it, String viewName) throws IOException { MetaClass mc = request.stapler.getWebApp().getMetaClass(type); return createDispatcher(it, viewName, mc); }
public RequestDispatcher createRequestDispatcher(RequestImpl request, Class type, Object it, String viewName) throws IOException { TearOffSupport mc = request.stapler.getWebApp().getMetaClass(type); return mc.loadTearOff(JellyClassTearOff.class).createDispatcher(it,viewName); }
public RequestDispatcher createRequestDispatcher(RequestImpl request, Klass<?> type, Object it, String viewName) throws IOException { TearOffSupport mc = request.stapler.getWebApp().getMetaClass(type); return mc.loadTearOff(JellyClassTearOff.class).createDispatcher(it,viewName); }
public RequestDispatcher createRequestDispatcher(RequestImpl request, Klass<?> type, Object it, String viewName) throws IOException { TearOffSupport mc = request.stapler.getWebApp().getMetaClass(type); return mc.loadTearOff(ERbClassTearOff.class).createDispatcher(it,viewName); }
public boolean doDispatch(RequestImpl req, ResponseImpl rsp, Object node) throws IllegalAccessException, InvocationTargetException, ServletException, IOException { if (!req.isJavaScriptProxyCall()) return false; req.stapler.getWebApp().getCrumbIssuer().validateCrumb(req,req.getHeader("Crumb")); if(traceable()) trace(req,rsp,"-> <%s>.%s(...)",node, f.getName()); JSONArray jsargs = JSONArray.fromObject(IOUtils.toString(req.getReader())); Object[] args = new Object[jsargs.size()]; Class[] types = f.getParameterTypes(); Type[] genericTypes = f.getParameterTypes(); for (int i=0; i<args.length; i++) args[i] = req.bindJSON(genericTypes[i],types[i],jsargs.get(i)); f.bindAndInvokeAndServeResponse(node,req,rsp,args); return true; }