org.apache.struts.action
Class ActionMappings

java.lang.Object
  |
  +--org.apache.struts.action.ActionMappings
All Implemented Interfaces:
java.io.Serializable

Deprecated. Replaced by collection of ActionConfig instances in ModuleConfig

public class ActionMappings
extends java.lang.Object
implements java.io.Serializable

Encapsulate a collection of ActionMapping objects that can be administered and searched, while hiding the internal implementation.

Version:
$Revision: 1.1 $ $Date$
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  org.apache.commons.collections.FastHashMap mappings
          Deprecated. The collection of ActionMapping instances, keyed by request path.
protected  ActionServlet servlet
          Deprecated. The ActionServlet instance of our owning application.
protected  ActionMapping unknown
          Deprecated. The ActionMapping that should handle unknown request paths, if any.
 
Constructor Summary
ActionMappings()
          Deprecated.  
 
Method Summary
 void addMapping(ActionMapping mapping)
          Deprecated. Register a logical mapping to the set configured for this servlet.
 ActionMapping findMapping(java.lang.String path)
          Deprecated. Return the mapping associated with the specified logical name, if any; otherwise return null.
 java.lang.String[] findMappings()
          Deprecated. Return the set of paths for mappings defined in this collection.
 boolean getFast()
          Deprecated. Return the "fast" mode flag.
 ActionServlet getServlet()
          Deprecated. Return the ActionServlet instance of our owning application.
 ActionMapping getUnknown(javax.servlet.http.HttpServletRequest request)
          Deprecated. Return the Action that should handle unknown request paths, if any.
 ActionMapping getUnknown(javax.servlet.ServletRequest request)
          Deprecated. Return the Action that should handle unknown request paths, if any.
 void removeMapping(ActionMapping mapping)
          Deprecated. Deregister a mapping from the set configured for this servlet.
 void setFast(boolean fast)
          Deprecated. Set the "fast" mode flag.
 void setServlet(ActionServlet servlet)
          Deprecated. Set the ActionServlet instance of our owning application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mappings

protected org.apache.commons.collections.FastHashMap mappings
Deprecated. 
The collection of ActionMapping instances, keyed by request path.


servlet

protected transient ActionServlet servlet
Deprecated. 
The ActionServlet instance of our owning application.


unknown

protected ActionMapping unknown
Deprecated. 
The ActionMapping that should handle unknown request paths, if any.

Constructor Detail

ActionMappings

public ActionMappings()
Deprecated. 
Method Detail

getFast

public boolean getFast()
Deprecated. 
Return the "fast" mode flag.


setFast

public void setFast(boolean fast)
Deprecated. 
Set the "fast" mode flag.

Parameters:
fast - The new fast mode flag

getUnknown

public ActionMapping getUnknown(javax.servlet.ServletRequest request)
Deprecated. 
Return the Action that should handle unknown request paths, if any. The default implementation casts the request to HttpServletRequest and calls the corresponding version of this method.

Parameters:
request - The servlet request we are processing

getUnknown

public ActionMapping getUnknown(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Return the Action that should handle unknown request paths, if any.

Parameters:
request - The servlet request we are processing

getServlet

public ActionServlet getServlet()
Deprecated. 
Return the ActionServlet instance of our owning application.


setServlet

public void setServlet(ActionServlet servlet)
Deprecated. 
Set the ActionServlet instance of our owning application.

Parameters:
servlet - The new servlet instance

addMapping

public void addMapping(ActionMapping mapping)
Deprecated. 
Register a logical mapping to the set configured for this servlet.

Parameters:
mapping - The mapping to be added

findMapping

public ActionMapping findMapping(java.lang.String path)
Deprecated. 
Return the mapping associated with the specified logical name, if any; otherwise return null.

Parameters:
path - The request path for which to retrieve a mapping

findMappings

public java.lang.String[] findMappings()
Deprecated. 
Return the set of paths for mappings defined in this collection. If there are no such mappings, a zero-length array is returned.


removeMapping

public void removeMapping(ActionMapping mapping)
Deprecated. 
Deregister a mapping from the set configured for this servlet.

Parameters:
mapping - The mapping to be deregistered


Copyright © 2000-2003 - Apache Software Foundation