org.apache.struts.action

Class 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:
$Revision: 1.8 $ $Date: 2003/05/01 16:16:49 $

Authors:
Craig R. McClanahan
Ted Husted

Since:
Struts 1.0.1

Field Summary

protected ActionServlet
servlet
The controller servlet instance to which we are attached.

Constructor Summary

ActionServletWrapper(ActionServlet servlet)
Create object and set servlet property.

Method Summary

void
log(String message)
Log message.
void
log(String message, int level)
Deprecated. Logging should now use the commons logging
void
setServletFor(MultipartRequestHandler object)
Set servlet to a MultipartRequestHandler.

Field Details

servlet

protected ActionServlet servlet
The controller servlet instance to which we are attached.

Constructor Details

ActionServletWrapper

public ActionServletWrapper(ActionServlet servlet)
Create object and set servlet property.

Parameters:
servlet - ActionServlet to wrap

Method Details

log

public void log(String message)
Log message.

Parameters:
message -


log

public void log(String message,
                int level)

Deprecated. 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.

Parameters:
message - Message to be logged
level - Debugging detail level of this message


setServletFor

public void setServletFor(MultipartRequestHandler object)
Set servlet to a MultipartRequestHandler.

Parameters:
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