org.apache.ftpserver.message
Interface MessageResource

All Known Implementing Classes:
DefaultMessageResource

public interface MessageResource

This is message resource interface.

Author:
Apache MINA Project

Method Summary
 List<String> getAvailableLanguages()
          Get all the available languages.
 String getMessage(int code, String subId, String language)
          Get the message for the corresponding code and sub id.
 Map<String,String> getMessages(String language)
          Get all the messages.
 

Method Detail

getAvailableLanguages

List<String> getAvailableLanguages()
Get all the available languages.

Returns:
A list of available languages

getMessage

String getMessage(int code,
                  String subId,
                  String language)
Get the message for the corresponding code and sub id. If not found it will return null.

Parameters:
code - The reply code
subId - The sub ID
language - The language
Returns:
The message matching the provided inputs, or null if not found

getMessages

Map<String,String> getMessages(String language)
Get all the messages.

Parameters:
language - The language
Returns:
All messages for the provided language


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.