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.
- Since:
- 1.0.0
- Version:
- $Id: DynamicProxyRequestHandler.java 608375 2008-01-03 08:33:00Z reinhard $
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-2008 The Apache Software Foundation. All Rights Reserved.