PAJES 2.3.9

org.pajes.util
Class Messages

java.lang.Object
  extended byorg.pajes.util.Messages

public class Messages
extends java.lang.Object

Handles internal properties files.


Field Summary
static java.lang.String COPYRIGHT
          Copyright notice.
static java.lang.String DESTROYED_ACCESS_PERMISSION
          Information message.
static java.lang.String DESTROYED_CONNECTION_MANAGER
          Information message.
static java.lang.String INSTANTIATED_ACCESS_PERMISSION
          Information message.
static java.lang.String INSTANTIATED_CONNECTION_MANAGER
          Information message.
static java.lang.String INSTANTIATED_CONNECTION_POOL
          Information message.
static java.lang.String NO_PAJE_FACTORY_SET
          Message key for when a Paje is requested from PajeServlet.createPaje(javax.servlet.http.HttpServletRequest) but no PajeFactory has been defined.
static java.lang.String RELEASE
          Release level.
 
Method Summary
static java.lang.String getString(java.lang.String messageKey)
          Retrieves the specified message.
static java.lang.String getString(java.lang.String messageKey, java.lang.String[] arguments)
          Retrieves the specified message and applies the specified arguments to return the formatted text.
static java.lang.String makeMessageText(java.util.ResourceBundle bundle, java.lang.String messageKey, java.lang.String[] arguments)
          Retrieves the specified message from the specified ResourceBundle and applies the specified arguments to return the formatted text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESTROYED_ACCESS_PERMISSION

public static final java.lang.String DESTROYED_ACCESS_PERMISSION
Information message.

See Also:
Constant Field Values

DESTROYED_CONNECTION_MANAGER

public static final java.lang.String DESTROYED_CONNECTION_MANAGER
Information message.

See Also:
Constant Field Values

INSTANTIATED_ACCESS_PERMISSION

public static final java.lang.String INSTANTIATED_ACCESS_PERMISSION
Information message.

See Also:
Constant Field Values

INSTANTIATED_CONNECTION_MANAGER

public static final java.lang.String INSTANTIATED_CONNECTION_MANAGER
Information message.

See Also:
Constant Field Values

INSTANTIATED_CONNECTION_POOL

public static final java.lang.String INSTANTIATED_CONNECTION_POOL
Information message.

See Also:
Constant Field Values

NO_PAJE_FACTORY_SET

public static final java.lang.String NO_PAJE_FACTORY_SET
Message key for when a Paje is requested from PajeServlet.createPaje(javax.servlet.http.HttpServletRequest) but no PajeFactory has been defined.

See Also:
Constant Field Values

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright notice.

See Also:
Constant Field Values

RELEASE

public static final java.lang.String RELEASE
Release level.

See Also:
Constant Field Values
Method Detail

getString

public static java.lang.String getString(java.lang.String messageKey)
Retrieves the specified message. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.
Returns:
the text of the exception message.

getString

public static java.lang.String getString(java.lang.String messageKey,
                                         java.lang.String[] arguments)
Retrieves the specified message and applies the specified arguments to return the formatted text. If no matching message key is found, the key is returned as the message.

Parameters:
messageKey - the key from which the actual exception message will be located.
arguments - any arguments to be passed to create the complete message.
Returns:
the text of the exception message.

makeMessageText

public static java.lang.String makeMessageText(java.util.ResourceBundle bundle,
                                               java.lang.String messageKey,
                                               java.lang.String[] arguments)
Retrieves the specified message from the specified ResourceBundle and applies the specified arguments to return the formatted text. If no matching message key is found, the key is returned as the message.

Parameters:
bundle - the ResourceBundle within which the message key will be found.
messageKey - the key from which the actual exception message will be located.
arguments - any arguments to be passed to create the complete message.
Returns:
the text of the exception message.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.