public class Bridge
extends java.lang.Object
| Constructor and Description |
|---|
Bridge() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
fromServletRequest(HttpServletRequest request,
int maxBodyBytes) |
static java.lang.String |
getRequestURI(Request request)
Per the servlet API definition: Returns the part of the request URL
from the protocol name up to the query string in the first line of the HTTP request.
|
static java.lang.StringBuilder |
getRequestURL(Request request)
Per the servlet API definition: returns the original request, excluding the query string.
|
static void |
sendServletResponse(Response response,
HttpServletResponse servletResponse)
Sends an Attribyte response using a servlet response.
|
public static java.lang.StringBuilder getRequestURL(Request request)
Reconstructs the URL the client used to make the request. The returned URL contains a protocol, server name, port number, and server path, but it does not include query string parameters.
StringBuilder containing the original URL, excluding the query string.public static java.lang.String getRequestURI(Request request)
Returns the part of the request URL from the protocol name up to the query string in the first line of the HTTP request. The web container does not decode this String.
public static final Request fromServletRequest(HttpServletRequest request, int maxBodyBytes) throws java.io.IOException
java.io.IOExceptionpublic static final void sendServletResponse(Response response, HttpServletResponse servletResponse) throws java.io.IOException
response - The Attribyte response.servletResponse - The servlet response.java.io.IOException - on transmit error.