org.apache.struts.action
Class ActionServletWrapper
java.lang.Object
org.apache.struts.action.ActionServletWrapper
public class ActionServletWrapper
extends java.lang.Object
Provide a wrapper around an ActionServlet to expose only
those methods needed by other objects. When used with an
ActionForm, subclasses must be careful that they do
not return an object with public getters and setters that
could be exploited by automatic population of properties.
Version:
- Craig R. McClanahan
- Ted Husted
- Struts 1.0.1
servlet
protected ActionServlet servlet
The controller servlet instance to which we are attached.
ActionServletWrapper
public ActionServletWrapper(ActionServlet servlet)
Create object and set servlet property.
servlet
- ActionServlet
to wrap
log
public void log(String message)
Log message.
message
-
log
public void log(String message,
int level)
Logging should now use the commons logging
Log the specified message if the current debugging detail level for
this servlet has been set to an equal or higher value. Otherwise,
ignore this message.
message
- Message to be loggedlevel
- Debugging detail level of this message
setServletFor
public void setServletFor(MultipartRequestHandler object)
Set servlet to a MultipartRequestHandler.
object
- The MultipartRequestHandler
:FIXME: Should this be based on an "setServlet"
interface or introspection for a setServlet method?
Or, is it safer to just add the types we want as we want them?
Copyright B) 2000-2005 - Apache Software Foundation