protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { req.setAttribute("message",message); rsp.forward(this,"error",req); }
/** * @param pre * If true, the message is put in a PRE tag. */ protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp, boolean pre) throws ServletException, IOException { req.setAttribute("message",message); if(pre) req.setAttribute("pre",true); rsp.forward(this,"error",req); }
protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { req.setAttribute("message",message); req.setAttribute("pre",true); rsp.forward(Jenkins.getInstance(),"error",req); }
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException { req.setAttribute("message",getMessage()); if(pre) req.setAttribute("pre",true); if (node instanceof AbstractItem) // Maintain ancestors rsp.forward(Jenkins.getInstance(), ((AbstractItem)node).getUrl() + "error", req); else rsp.forward(node instanceof AbstractModelObject ? node : Jenkins.getInstance() ,"error", req); } }
InputStream fingerprintInput = baseFile.open(); try { rsp.forward(Jenkins.getInstance().getFingerprint(Util.getDigestOf(fingerprintInput)), "/", req); } finally { fingerprintInput.close();
rsp.forward(this,"askRootPassword",req); return;
rsp.forward(this,"_restart",req); final File oldRoot = Jenkins.getInstance().getRootDir();
/** {@inheritDoc} */ @Override public void forward(Object it, String url, StaplerRequest request) throws ServletException, IOException { getWrapped().forward(it, url, request); }
/** {@inheritDoc} */ @Override public void forward(Object it, String url, StaplerRequest request) throws ServletException, IOException { getWrapped().forward(it, url, request); }
/** * @param pre * If true, the message is put in a PRE tag. */ protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp, boolean pre) throws ServletException, IOException { req.setAttribute("message",message); if(pre) req.setAttribute("pre",true); rsp.forward(this,"error",req); }
/** * @param pre * If true, the message is put in a PRE tag. */ protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp, boolean pre) throws ServletException, IOException { req.setAttribute("message",message); if(pre) req.setAttribute("pre",true); rsp.forward(this,"error",req); }
/** * @param pre If true, the message is put in a PRE tag. */ protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp, boolean pre) throws ServletException, IOException { req.setAttribute("message", message); if (pre) { req.setAttribute("pre", true); } rsp.forward(this, "error", req); }
/** * @param pre * If true, the message is put in a PRE tag. */ protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp, boolean pre) throws ServletException, IOException { req.setAttribute("message",message); if(pre) req.setAttribute("pre",true); rsp.forward(this,"error",req); }
protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { req.setAttribute("message",message); req.setAttribute("pre",true); rsp.forward(Jenkins.getInstance(),"error",req); }
protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { req.setAttribute("message", message); req.setAttribute("pre", true); rsp.forward(Hudson.getInstance(), "error", req); }
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException { req.setAttribute("message",getMessage()); if(pre) req.setAttribute("pre",true); if (node instanceof AbstractItem) // Maintain ancestors rsp.forward(Jenkins.getInstance(), ((AbstractItem)node).getUrl() + "error", req); else rsp.forward(node instanceof AbstractModelObject ? node : Jenkins.getInstance() ,"error", req); } }
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException { req.setAttribute("message",getMessage()); if(pre) req.setAttribute("pre",true); if (node instanceof AbstractItem) // Maintain ancestors rsp.forward(Hudson.getInstance(), ((AbstractItem)node).getUrl() + "error", req); else rsp.forward(node instanceof AbstractModelObject ? node : Hudson.getInstance() ,"error", req); } }
protected final void sendError(String message, StaplerRequest req, StaplerResponse rsp) throws ServletException, IOException { req.setAttribute("message",message); req.setAttribute("pre",true); rsp.forward(Hudson.getInstance(),"error",req); }
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException { req.setAttribute("message",getMessage()); if(pre) req.setAttribute("pre",true); if (node instanceof AbstractItem) // Maintain ancestors rsp.forward(Hudson.getInstance(), ((AbstractItem)node).getUrl() + "error", req); else rsp.forward(node instanceof AbstractModelObject ? node : Hudson.getInstance() ,"error", req); } }
/** * Displays "cleartool -version" for trouble shooting. */ public void doVersion(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, InterruptedException { ByteBuffer baos = new ByteBuffer(); try { Hudson.getInstance().createLauncher(TaskListener.NULL).launch().cmds(getCleartoolExe(), "-version").stdout(baos).join(); rsp.setContentType("text/plain"); baos.writeTo(rsp.getOutputStream()); } catch (IOException e) { req.setAttribute("error", e); rsp.forward(this, "versionCheckError", req); } }