org.apache.struts.action

Class ActionServletWrapper

public class ActionServletWrapper extends Object implements Serializable

Provide a wrapper around an {@link ActionServlet} to expose only those methods needed by other objects. When used with an {@link 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.

Since: Struts 1.0.1

Version: $Rev: 55459 $ $Date: 2004-10-24 20:23:54 +0100 (Sun, 24 Oct 2004) $

Field Summary
protected ActionServletservlet

The servlet instance to which we are attached.

Constructor Summary
ActionServletWrapper(ActionServlet servlet)

Create object and set servlet property.

Method Summary
voidsetServletFor(MultipartRequestHandler object)

Set servlet to a MultipartRequestHandler.

Field Detail

servlet

protected transient ActionServlet servlet

The servlet instance to which we are attached.

Constructor Detail

ActionServletWrapper

public ActionServletWrapper(ActionServlet servlet)

Create object and set servlet property.

Parameters: servlet ActionServlet to wrap

Method Detail

setServletFor

public void setServletFor(MultipartRequestHandler object)

Set servlet to a MultipartRequestHandler.

Parameters: object The MultipartRequestHandler

Copyright B) 2000-2007 - The Apache Software Foundation