se.kmr.scam.client.http.helper
Class ApplicationURLsBean

java.lang.Object
  extended byse.kmr.scam.client.http.helper.ApplicationURLsBean

public class ApplicationURLsBean
extends Object

Helper bean for exposing application URLs to JSP pages. The bean is supposed to be placed as an application scope attribute under the name specified by ApplicationURLsBean.NAME.

Version:
$Revision: 1.5 $
Author:
Göran Holm/Ateles Consulting AB
Created:
2002-07-18

Field Summary
static String CMD_PAR
          Name of the cmd parameter
static String NAME
          Bean-name
 
Constructor Summary
ApplicationURLsBean(String path)
          Constructor for the ApplicationURLsBean object.
ApplicationURLsBean(String path, HashMap actions)
          Constructor for the ApplicationURLsBean object
 
Method Summary
 HashMap getActions()
          Gets the actions hash.
 HashMap getCommands()
          Gets the commands hash.
 String getPath()
          The HTML-Form path
 void setActions(HashMap actions)
          Sets the actions hash.
 void setPath(String path)
          Sets the path attribute of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Bean-name

See Also:
Constant Field Values

CMD_PAR

public static final String CMD_PAR
Name of the cmd parameter

See Also:
Constant Field Values
Constructor Detail

ApplicationURLsBean

public ApplicationURLsBean(String path,
                           HashMap actions)
Constructor for the ApplicationURLsBean object

Parameters:
path - The path that is handled by the main controller.
actions - The hash that maps keys into chain names.

ApplicationURLsBean

public ApplicationURLsBean(String path)
Constructor for the ApplicationURLsBean object. The exposed URL:s contains an alias for requested commands.

Parameters:
path - The path that is handled by the main controller.
Method Detail

getPath

public String getPath()
The HTML-Form path

Returns:
The path value

setPath

public void setPath(String path)
Sets the path attribute of the object

Parameters:
path - The new path value

getActions

public HashMap getActions()
Gets the actions hash.

Returns:
The actions hash suitable for usage in a c:url JSTL tag.

setActions

public void setActions(HashMap actions)
Sets the actions hash.

Parameters:
actions - The new actions value

getCommands

public HashMap getCommands()
Gets the commands hash.

Returns:


Copyright © 2003 SCAM. All Rights Reserved.