net.sf.xbus.technical.file
Class FileSenderConfiguration

java.lang.Object
  extended by net.sf.xbus.technical.file.FileSenderConfiguration

public class FileSenderConfiguration
extends java.lang.Object

TODO Kommentierung


Constructor Summary
FileSenderConfiguration(XBUSSystem xbusSystem)
          Reads some configuration entries and stores them in class variables.
 
Method Summary
 java.lang.String getEncoding()
           
 java.lang.String[] getFileNames()
           
 java.lang.String getResolution()
           
 java.lang.String retrieveResolution(java.lang.String system)
          Reads conflict resolution (resolved action when the file already exists) for the given system name from the configuration and checks its conformity with the allowed ones: Append Overwrie Error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSenderConfiguration

public FileSenderConfiguration(XBUSSystem xbusSystem)
                        throws XException
Reads some configuration entries and stores them in class variables.

Throws:
XException - if something goes wrong
Method Detail

getEncoding

public java.lang.String getEncoding()

getFileNames

public java.lang.String[] getFileNames()

getResolution

public java.lang.String getResolution()

retrieveResolution

public java.lang.String retrieveResolution(java.lang.String system)
                                    throws XException
Reads conflict resolution (resolved action when the file already exists) for the given system name from the configuration and checks its conformity with the allowed ones:
Append
Overwrie
Error

Parameters:
system - Sytem name which file resolution must be read.
Returns:
conflict resolution (Append, Overwrite or Error) as String
Throws:
XException - if resolution is false or an errors occurs