com.droplets.apix.servlet
Class ServletCaller
java.lang.Object
|
+--com.droplets.apix.servlet.ServletCaller
- public class ServletCaller
- extends java.lang.Object
Use the call method to call a Servlet (fully qualified with package) to
Uses reflection to find the Servlet.
Copyright: Copyright (c) 2003
Company: Droplets
Method Summary |
static void |
call(java.lang.String className,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Calls a method in the servlet using reflection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletCaller
public ServletCaller()
call
public static void call(java.lang.String className,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.lang.Exception
- Calls a method in the servlet using reflection.
- Parameters:
className
- the fully qualified name of the ServletmethodName
- the name of the method of the Servlet to call. Usually,
this is "doGetService" or "doPostService", but can be any method of the Servlet.req
- The request object (in Droplets, use a DropletsHttpServletRequest or subclass)res
- The response object (in Droplets, use a DropletsHttpServletResponse or subclass)
Copyright © Droplets, 2001. All Rights Reserved.