org.apache.ftpserver.interfaces
Interface MessageResource

All Known Implementing Classes:
MessageResourceImpl

public interface MessageResource

This is message resource interface.


Method Summary
 java.lang.String[] getAvailableLanguages()
          Get all the available languages.
 java.lang.String getMessage(int code, java.lang.String subId, java.lang.String language)
          Get the message for the corresponding code and sub id.
 java.util.Properties getMessages(java.lang.String language)
          Get all the messages.
 void save(java.util.Properties prop, java.lang.String language)
          Save properties.
 

Method Detail

getAvailableLanguages

java.lang.String[] getAvailableLanguages()
Get all the available languages.


getMessage

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


save

void save(java.util.Properties prop,
          java.lang.String language)
          throws FtpException
Save properties. This properties object contain all the available messages. Old properties will not be overwritten.

Throws:
FtpException

getMessages

java.util.Properties getMessages(java.lang.String language)
Get all the messages.



Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.