it.avutils.jmapper.config
Class MessageHandler

java.lang.Object
  extended by it.avutils.jmapper.config.MessageHandler

public final class MessageHandler
extends Object

This class manages the composition of the error message.

Author:
Alessandro Vurro

Constructor Summary
MessageHandler()
           
 
Method Summary
static String message(String key)
          Select the key message.
static String message(String key, String... values)
          Select the key message and replaces the values passed as input with placeholders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandler

public MessageHandler()
Method Detail

message

public static String message(String key,
                             String... values)
Select the key message and replaces the values passed as input with placeholders.

Parameters:
key -
values -
Returns:
returns the resulting string

message

public static String message(String key)
Select the key message.

Parameters:
key -
Returns:
returns the corresponding string


Copyright © 2013. All Rights Reserved.