|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tuckey.web.filters.urlrewrite.RequestProxy
public class RequestProxy
This class is responsible for a proxy http request. It takes the incoming request and then it creates a new request to the target address and copies the response of that proxy request to the response of the original request.
This class uses the commons-httpclient classes from Apache. User: Joachim Ansorg,
Constructor Summary | |
---|---|
RequestProxy()
|
Method Summary | |
---|---|
static void |
copyStream(java.io.InputStream in,
java.io.OutputStream out)
|
static void |
execute(java.lang.String target,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse)
This method performs the proxying of the request to the target address. |
static org.apache.commons.httpclient.ProxyHost |
getUseProxyServer(java.lang.String useProxyServer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestProxy()
Method Detail |
---|
public static void execute(java.lang.String target, javax.servlet.http.HttpServletRequest hsRequest, javax.servlet.http.HttpServletResponse hsResponse) throws java.io.IOException
target
- The target address. Has to be a fully qualified address. The request is send as-is to this address.hsRequest
- The request data which should be send to thehsResponse
- The response data which will contain the data returned by the proxied request to target.
java.io.IOException
- Passed on from the connection logic.public static void copyStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static org.apache.commons.httpclient.ProxyHost getUseProxyServer(java.lang.String useProxyServer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |