Class OpenShiftHttpRedirectWithPrompt

  • All Implemented Interfaces:
    Serializable, org.kohsuke.stapler.HttpResponse

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

      • 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 Detail

      • OpenShiftHttpRedirectWithPrompt

        public OpenShiftHttpRedirectWithPrompt​(@Nonnull
                                               String url)
      • OpenShiftHttpRedirectWithPrompt

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

      • 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.