org.springframework.extensions.webscripts
Class ScriptMessage

java.lang.Object
  extended by org.springframework.extensions.webscripts.AbstractMessageHelper
      extended by org.springframework.extensions.webscripts.ScriptMessage

public final class ScriptMessage
extends AbstractMessageHelper

Helper to resolve an I18N message for JS scripts.

Author:
Kevin Roast

Constructor Summary
ScriptMessage(WebScript webscript)
          Constructor
 
Method Summary
 String get(String id)
          Get an I18N message
 String get(String id, org.mozilla.javascript.Scriptable args)
          Get an I18N message with the given message args
 
Methods inherited from class org.springframework.extensions.webscripts.AbstractMessageHelper
resolveMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptMessage

public ScriptMessage(WebScript webscript)
Constructor

Parameters:
webscript -
Method Detail

get

public String get(String id)
Get an I18N message

Parameters:
id - Message Id
Returns:
resolved message

get

public String get(String id,
                  org.mozilla.javascript.Scriptable args)
Get an I18N message with the given message args

Parameters:
id - Message Id
args - Message args
Returns:
resolved message


Copyright © 2009 SpringSource, Inc. All Rights Reserved.