public class RequestProxy
extends java.lang.Object
构造器和说明 |
---|
RequestProxy() |
限定符和类型 | 方法和说明 |
---|---|
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) |
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)