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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.kohsuke.stapler.HttpResponse
CONTEXT_ROOT
Redirect to the context rootstatic org.kohsuke.stapler.HttpRedirect
DOT
Redirect to "."
-
Constructor Summary
Constructors Constructor Description OpenShiftHttpRedirectWithPrompt(int statusCode, String url)
OpenShiftHttpRedirectWithPrompt(String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static org.kohsuke.stapler.HttpResponse
fromContextPath(String relative)
Deprecated.UseHttpResponses.redirectViaContextPath(String)
.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
-
-
-
-
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 interfaceorg.kohsuke.stapler.HttpResponse
- Throws:
IOException
javax.servlet.ServletException
-
fromContextPath
public static org.kohsuke.stapler.HttpResponse fromContextPath(String relative)
Deprecated.UseHttpResponses.redirectViaContextPath(String)
.- Parameters:
relative
- The path relative to the context path. The context path + this value is sent to the user.
-
-