Class OpenShiftHttpRedirectWithPrompt

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openshift.jenkins.plugins.openshiftlogin.OpenShiftHttpRedirectWithPrompt
All Implemented Interfaces:
Serializable, org.kohsuke.stapler.HttpResponse

public class OpenShiftHttpRedirectWithPrompt extends RuntimeException implements org.kohsuke.stapler.HttpResponse
See Also:
  • Field Details

    • DOT

      public static org.kohsuke.stapler.HttpRedirect DOT
      Redirect to "."
    • CONTEXT_ROOT

      public static org.kohsuke.stapler.HttpResponse CONTEXT_ROOT
      Redirect to the context root
  • Constructor Details

    • OpenShiftHttpRedirectWithPrompt

      public OpenShiftHttpRedirectWithPrompt(@Nonnull String url)
    • OpenShiftHttpRedirectWithPrompt

      public OpenShiftHttpRedirectWithPrompt(int statusCode, @Nonnull String url)
  • Method Details

    • generateResponse

      public void generateResponse(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node) throws IOException, javax.servlet.ServletException
      Specified by:
      generateResponse in interface org.kohsuke.stapler.HttpResponse
      Throws:
      IOException
      javax.servlet.ServletException
    • fromContextPath

      public static org.kohsuke.stapler.HttpResponse fromContextPath(String relative)
      Deprecated.
      Use HttpResponses.redirectViaContextPath(String).
      Parameters:
      relative - The path relative to the context path. The context path + this value is sent to the user.