public class OpenShiftHttpRedirectWithPrompt extends RuntimeException implements org.kohsuke.stapler.HttpResponse
| Modifier and Type | Field and Description |
|---|---|
static org.kohsuke.stapler.HttpResponse |
CONTEXT_ROOT
Redirect to the context root
|
static org.kohsuke.stapler.HttpRedirect |
DOT
Redirect to "."
|
| Constructor and Description |
|---|
OpenShiftHttpRedirectWithPrompt(int statusCode,
String url) |
OpenShiftHttpRedirectWithPrompt(String url) |
| Modifier and Type | Method and Description |
|---|---|
static org.kohsuke.stapler.HttpResponse |
fromContextPath(String relative)
Deprecated.
Use
HttpResponses.redirectViaContextPath(String). |
void |
generateResponse(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
Object node) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static org.kohsuke.stapler.HttpRedirect DOT
public static org.kohsuke.stapler.HttpResponse CONTEXT_ROOT
public void generateResponse(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
Object node)
throws IOException,
javax.servlet.ServletException
generateResponse in interface org.kohsuke.stapler.HttpResponseIOExceptionjavax.servlet.ServletExceptionpublic static org.kohsuke.stapler.HttpResponse fromContextPath(String relative)
HttpResponses.redirectViaContextPath(String).relative - The path relative to the context path. The context path + this
value is sent to the user.Copyright © 2004-2019. All Rights Reserved.