public class ProxyUtils
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ProxyUtils.__ |
|
static class |
ProxyUtils.Page |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
E_HTTP_HTTPS_ONLY |
|
static java.lang.String |
LOCATION |
| Constructor | Description |
|---|---|
ProxyUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
notFound(javax.servlet.http.HttpServletResponse resp,
java.lang.String message) |
Output 404 with appropriate message.
|
static void |
rejectNonHttpRequests(javax.servlet.ServletRequest req) |
Reject any request that isn't from an HTTP servlet
|
static void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String target) |
Handle redirects with a status code that can in future support verbs other
than GET, thus supporting full REST functionality.
|
public static final java.lang.String E_HTTP_HTTPS_ONLY
public static final java.lang.String LOCATION
public static void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String target)
throws java.io.IOException
The target URL is included in the redirect text returned
At the end of this method, the output stream is closed.
request - request (hence: the verb and any other information
relevant to a redirect)response - the responsetarget - the target URL -unencodedjava.io.IOExceptionpublic static void notFound(javax.servlet.http.HttpServletResponse resp,
java.lang.String message)
throws java.io.IOException
resp - the http response.message - the message to include on the page.java.io.IOException - on any error.public static void rejectNonHttpRequests(javax.servlet.ServletRequest req)
throws javax.servlet.ServletException
req - requestjavax.servlet.ServletException - if the request is of the wrong typeCopyright © 2008–2025 Apache Software Foundation. All rights reserved.