public class RedirectService extends HttpServlet implements Debug
REDIRECT_HOST, REDIRECT_PATTERN, REDIRECT_PORT, REDIRECT_PREFIX, REDIRECT_REPLACEMENT, REDIRECT_TRACE, REDIRECT_TRACE_CONTENT
Constructor and Description |
---|
RedirectService(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
copy(InputStream in,
OutputStream out) |
void |
copyDebug(InputStream in,
OutputStream out) |
String |
getRedirectPrefix() |
int |
getStatusCode(String line) |
static void |
main(String[] args) |
void |
redirect(HttpServletRequest req,
HttpServletResponse resp) |
void |
setRedirectPrefix(String redirectPrefix) |
void |
setTrace(boolean trace) |
void |
setTraceContent(boolean traceContent) |
static void |
trace(String str) |
static void |
traceln(String str) |
void |
transferResponse(InputStream in,
HttpServletResponse resp) |
service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public RedirectService(String host, int port)
public String getRedirectPrefix()
public void setRedirectPrefix(String redirectPrefix)
public void setTrace(boolean trace)
public void setTraceContent(boolean traceContent)
public void redirect(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
ServletException
IOException
public void copy(InputStream in, OutputStream out) throws IOException
IOException
public void copyDebug(InputStream in, OutputStream out) throws IOException
IOException
public int getStatusCode(String line)
public void transferResponse(InputStream in, HttpServletResponse resp) throws IOException
IOException
public static void traceln(String str)
public static void trace(String str)
public static void main(String[] args)
Copyright © 2013 Nuxeo SA. All Rights Reserved.