org.jboss.soa.esb.listeners.gateway
Class FileGatewayListener

java.lang.Object
  extended by org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
      extended by org.jboss.soa.esb.listeners.gateway.FileGatewayListener
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
RemoteGatewayListener

public class FileGatewayListener
extends AbstractFileGateway


Nested Class Summary
 class FileGatewayListener.PackageFileContents
          Default gateway action for files

It will just drop the file contents into a Message

 
Field Summary
 
Fields inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
_composer, _composerClass, _composerName, _config, _controller, _courier, _deleteAfterOK, _errorDirectory, _errorSuffix, _inputDirectory, _inputSuffix, _logger, _myEpr, _postProcessDirectory, _postProcessSuffix, _processMethod, _serviceCategory, _serviceName, _sleepBetweenPolls, _targetEprs, _targetServiceCategory, _targetServiceName, _workingSuffix
 
Constructor Summary
protected FileGatewayListener()
           
  FileGatewayListener(GatewayListenerController commandListener, ConfigTree config)
           
 
Method Summary
protected  void checkMyParms()
          Check for mandatory and optional attributes in parameter tree
protected  void copyFile(java.io.File from, java.io.File to)
           
protected  void seeIfOkToWorkOnDir(java.io.File p_oDir)
           
 
Methods inherited from class org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
resolveComposerClass, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileGatewayListener

protected FileGatewayListener()

FileGatewayListener

public FileGatewayListener(GatewayListenerController commandListener,
                           ConfigTree config)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

checkMyParms

protected void checkMyParms()
                     throws java.lang.Exception
Description copied from class: AbstractFileGateway
Check for mandatory and optional attributes in parameter tree

Overrides:
checkMyParms in class AbstractFileGateway
Throws:
java.lang.Exception - - if mandatory atts are not right or actionClass not in classpath

seeIfOkToWorkOnDir

protected void seeIfOkToWorkOnDir(java.io.File p_oDir)
                           throws GatewayException
Throws:
GatewayException

copyFile

protected void copyFile(java.io.File from,
                        java.io.File to)
                 throws GatewayException
Throws:
GatewayException