org.apache.velocity.tools.test.blackbox
Class ServletAdaptor

java.lang.Object
  extended by org.apache.velocity.tools.test.blackbox.ServletAdaptor
All Implemented Interfaces:
InvocationHandler

public class ServletAdaptor
extends Object
implements InvocationHandler

Helper class for LinkToolTests class

Version:
$Id$
Author:
Christopher Schultz

Constructor Summary
ServletAdaptor(Map cookies)
           
ServletAdaptor(String contextPath, Map params)
           
ServletAdaptor(String contextPath, String pathInfo, Map params)
           
 
Method Summary
protected  Object context(Object proxy, Method method, Object[] args)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  Object request(Object proxy, Method method, Object[] args)
           
protected  Object response(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletAdaptor

public ServletAdaptor(Map cookies)

ServletAdaptor

public ServletAdaptor(String contextPath,
                      Map params)

ServletAdaptor

public ServletAdaptor(String contextPath,
                      String pathInfo,
                      Map params)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
Specified by:
invoke in interface InvocationHandler

response

protected Object response(Object proxy,
                          Method method,
                          Object[] args)

request

protected Object request(Object proxy,
                         Method method,
                         Object[] args)

context

protected Object context(Object proxy,
                         Method method,
                         Object[] args)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.