org.apache.ftpserver.message
Class MessageResourceFactory

java.lang.Object
  extended by org.apache.ftpserver.message.MessageResourceFactory

public class MessageResourceFactory
extends java.lang.Object

Factory for creating message resource implementation

Version:
$Rev: 693604 $, $Date: 2008-09-09 22:55:19 +0200 (Tue, 09 Sep 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
MessageResourceFactory()
           
 
Method Summary
 MessageResource createMessageResource()
          Create an MessageResource based on the configuration on this factory
 java.io.File getCustomMessageDirectory()
          The directory where custom message bundles can be located
 java.util.List<java.lang.String> getLanguages()
          The languages for which messages are available
 void setCustomMessageDirectory(java.io.File customMessageDirectory)
          Set the directory where custom message bundles can be located
 void setLanguages(java.util.List<java.lang.String> languages)
          Set the languages for which messages are available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageResourceFactory

public MessageResourceFactory()
Method Detail

createMessageResource

public MessageResource createMessageResource()
Create an MessageResource based on the configuration on this factory

Returns:
The MessageResource instance

getLanguages

public java.util.List<java.lang.String> getLanguages()
The languages for which messages are available

Returns:
The list of available languages

setLanguages

public void setLanguages(java.util.List<java.lang.String> languages)
Set the languages for which messages are available

Parameters:
languages - The list of available languages

getCustomMessageDirectory

public java.io.File getCustomMessageDirectory()
The directory where custom message bundles can be located

Returns:
The File denoting the directory with message bundles

setCustomMessageDirectory

public void setCustomMessageDirectory(java.io.File customMessageDirectory)
Set the directory where custom message bundles can be located

Parameters:
customMessageDirectory - The File denoting the directory with message bundles


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