Package org.kohsuke.stapler

Examples of org.kohsuke.stapler.ForwardToView


     */
    @Override
    public HttpResponse commenceSignup(final FederatedIdentity identity) {
        // store the identity in the session so that we can use this later
        Stapler.getCurrentRequest().getSession().setAttribute(FEDERATED_IDENTITY_SESSION_KEY,identity);
        return new ForwardToView(this,"signupWithFederatedIdentity.jelly") {
            @Override
            public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException {
                SignupInfo si = new SignupInfo(identity);
                si.errorMessage = Messages.HudsonPrivateSecurityRealm_WouldYouLikeToSignUp(identity.getPronoun(),identity.getIdentifier());
                req.setAttribute("data", si);
View Full Code Here


                wl.afterDelete(this);
            }
            return new HttpRedirect(".");
        } else {
            // If we get here, that means the SCM blocked the workspace deletion.
            return new ForwardToView(this,"wipeOutWorkspaceBlocked.jelly");
        }
    }
View Full Code Here

        checkPermission(Functions.isWipeOutPermissionEnabled() ? WIPEOUT : BUILD);
        try {
            if (cleanWorkspace()) {
                return new HttpRedirect(".");
            } else {
                return new ForwardToView(this,"wipeOutWorkspaceBlocked.jelly");
            }
        } catch (IOException e) {
            ForwardToView resp = new ForwardToView(this, "error.jelly");
            resp.with("message", Messages._AbstractProject_UnableWipeOut());
            resp.with("pre", false);
            resp.with("exception", e);
            return resp;
        }
    }
View Full Code Here

TOP

Related Classes of org.kohsuke.stapler.ForwardToView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.