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 Summary
FieldsModifier and TypeFieldDescriptionstatic org.kohsuke.stapler.HttpResponse
Redirect to the context rootstatic org.kohsuke.stapler.HttpRedirect
Redirect to "." -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.kohsuke.stapler.HttpResponse
fromContextPath
(String relative) Deprecated.void
generateResponse
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, Object node) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.kohsuke.stapler.HttpResponse
generateResponse
-
Field Details
-
DOT
public static org.kohsuke.stapler.HttpRedirect DOTRedirect to "." -
CONTEXT_ROOT
public static org.kohsuke.stapler.HttpResponse CONTEXT_ROOTRedirect to the context root
-
-
Constructor Details
-
OpenShiftHttpRedirectWithPrompt
-
OpenShiftHttpRedirectWithPrompt
-
-
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 interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
javax.servlet.ServletException
-
fromContextPath
Deprecated.UseHttpResponses.redirectViaContextPath(String)
.- Parameters:
relative
- The path relative to the context path. The context path + this value is sent to the user.
-
HttpResponses.redirectViaContextPath(String)
.