org.apache.cocoon.servletservice
Class DynamicProxyRequestHandler
java.lang.Object
org.apache.cocoon.servletservice.DynamicProxyRequestHandler
- All Implemented Interfaces:
- InvocationHandler
- public class DynamicProxyRequestHandler
- extends Object
- implements InvocationHandler
A dynamic wrapper for servlet requests that overwrites the
getContextPath, getServletPath and getPathInfo methods to
reflect the mount path of the block servlet.
- Version:
- $Id: DynamicProxyRequestHandler.java 503451 2007-02-04 18:21:23Z danielf $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicProxyRequestHandler
public DynamicProxyRequestHandler(HttpServletRequest req,
String mountPath)
- Creates a new request wrapper from a specified proxied request and
the mount path of the block servlet
- Parameters:
req - the request to proxymountPath - the mount path of the servlet
invoke
public Object invoke(Object proxy,
Method method,
Object[] arguments)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable- See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved.