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

java.lang.Object
  extended by org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
      extended by org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle
          extended by org.jboss.soa.esb.listeners.gateway.AbstractFileGateway
              extended by org.jboss.soa.esb.listeners.gateway.FileGatewayListener
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable, ManagedLifecycle
Direct Known Subclasses:
RemoteGatewayListener

public class FileGatewayListener
extends AbstractFileGateway

See Also:
Serialized Form

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, _courier, _deleteAfterOK, _errorDirectory, _errorSuffix, _inputDirectory, _inputSuffix, _logger, _postProcessDirectory, _postProcessSuffix, _processMethod, _sleepBetweenPolls, _targetEprs, _targetServiceCategory, _targetServiceName, _workingSuffix
 
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
PARAM_TERMINATION_PERIOD
 
Constructor Summary
FileGatewayListener(ConfigTree config)
           
 
Method Summary
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
doDestroy, doInitialise, doRun, resolveComposerClass
 
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle
addManagedLifecycleThreadEventListener, doStart, doStop, isRunning, isStopped, isStopping, removeManagedLifecycleThreadEventListener, run, setRunning, waitForRunningStateChange, waitUntilStopped, waitUntilStopped
 
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
addManagedLifecycleEventListener, changeState, destroy, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitForStateChange, waitUntilDestroyed, waitUntilDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileGatewayListener

public FileGatewayListener(ConfigTree config)
                    throws ConfigurationException,
                           RegistryException,
                           GatewayException
Throws:
ConfigurationException
RegistryException
GatewayException
Method Detail

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