| java.lang.Object org.jamwiki.WikiMessage
WikiMessage | public class WikiMessage (Code) | | This class is a utility class useful for storing messages key and object
values that can later be displayed using the jstl fmt:message tag.
|
Constructor Summary | |
public | WikiMessage(String key) Create a new message that is mapped to the specified ApplicationResources
key value. | public | WikiMessage(String key, String param1) Create a new message that is mapped to the specified ApplicationResources
key value using a single parameter.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: param1 - The parameter that corresponds to the {0} param in thespecified message key value. | public | WikiMessage(String key, String param1, String param2) Create a new message that is mapped to the specified ApplicationResources
key value using two parameters.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: param1 - The parameter that corresponds to the {0} param in thespecified message key value. | public | WikiMessage(String key, String[] params) Create a new message that is mapped to the specified ApplicationResources
key value using an array of parameters.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: params - An array of parameters that correspond to the {0}, {1}, etcparams in the specified message key value. |
Method Summary | |
public String | getKey() Return the ApplicationResources message key associated with this message. | public String[] | getParams() Return the array of parameter objects associated with this message. | public void | setParamsWithoutEscaping(String[] params) This set method allows message parameters to be set without being escaped.
Note that this can be a gaping security hole as it opens the site up to
cross-site scripting attacks. |
WikiMessage | public WikiMessage(String key)(Code) | | Create a new message that is mapped to the specified ApplicationResources
key value.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. |
WikiMessage | public WikiMessage(String key, String param1)(Code) | | Create a new message that is mapped to the specified ApplicationResources
key value using a single parameter.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: param1 - The parameter that corresponds to the {0} param in thespecified message key value. Note that this parameter is automaticallyHTML escaped to prevent erorrs in display. |
WikiMessage | public WikiMessage(String key, String param1, String param2)(Code) | | Create a new message that is mapped to the specified ApplicationResources
key value using two parameters.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: param1 - The parameter that corresponds to the {0} param in thespecified message key value. Note that this parameter is automaticallyHTML escaped to prevent erorrs in display. Parameters: param2 - The parameter that corresponds to the {1} param in thespecified message key value. Note that this parameter is automaticallyHTML escaped to prevent erorrs in display. |
WikiMessage | public WikiMessage(String key, String[] params)(Code) | | Create a new message that is mapped to the specified ApplicationResources
key value using an array of parameters.
Parameters: key - The ApplicationResources key that corresponds to the messageto display. Parameters: params - An array of parameters that correspond to the {0}, {1}, etcparams in the specified message key value. Note that these parameters areautomatically HTML escaped to prevent erorrs in display. |
getKey | public String getKey()(Code) | | Return the ApplicationResources message key associated with this message.
The ApplicationResources message key associated with this message. |
getParams | public String[] getParams()(Code) | | Return the array of parameter objects associated with this message.
The array of parameter objects associated with this message. |
setParamsWithoutEscaping | public void setParamsWithoutEscaping(String[] params)(Code) | | This set method allows message parameters to be set without being escaped.
Note that this can be a gaping security hole as it opens the site up to
cross-site scripting attacks. USE THIS METHOD ONLY IF YOU KNOW WHAT YOU ARE
DOING!
Parameters: params - The array of parameter objects to associate with this message. |
|
|