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.html 1422810 2012-12-17 09:13:50Z ilgrosso $
Constructor Summary |
DynamicProxyRequestHandler(javax.servlet.http.HttpServletRequest req,
String mountPath)
Creates a new request wrapper from a specified proxied request and
the mount path of the block servlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicProxyRequestHandler
public DynamicProxyRequestHandler(javax.servlet.http.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-2012 The Apache Software Foundation. All Rights Reserved.