org.openqa.selenium.remote.server.xdrpc
Class HttpServletRequestProxy
java.lang.Object
org.openqa.selenium.remote.server.xdrpc.HttpServletRequestProxy
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class HttpServletRequestProxy
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Serves as a proxy to a HttpServletRequest
for a WebDriver command
described by a CrossDomainRpc
.
Method Summary |
static javax.servlet.http.HttpServletRequest |
createProxy(javax.servlet.http.HttpServletRequest request,
CrossDomainRpc crossDomainRpc,
java.lang.String xdrpcPath,
java.lang.String mimeType)
Creates a new proxy. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createProxy
public static javax.servlet.http.HttpServletRequest createProxy(javax.servlet.http.HttpServletRequest request,
CrossDomainRpc crossDomainRpc,
java.lang.String xdrpcPath,
java.lang.String mimeType)
- Creates a new proxy.
- Parameters:
request
- The request to override with the proxy.crossDomainRpc
- The RPC with the command parameters to patch in.xdrpcPath
- The servlet path for the cross-domain request handler;
this path will be stripped from the original request in favor of the
RPC path
.mimeType
- The mime-type that should be assigned to the proxied
request.
- Returns:
- The new request object.
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2012. All Rights Reserved.