org.cip4.jdflib.util.hotfolder
Class QueueHotFolderListenerImpl

java.lang.Object
  extended by org.cip4.jdflib.util.hotfolder.QueueHotFolderListenerImpl
All Implemented Interfaces:
HotFolderListener

public class QueueHotFolderListenerImpl
extends Object
implements HotFolderListener

hot folder listener that submits to a queue

Author:
rainerprosi

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
QueueHotFolderListenerImpl(QueueHotFolderListener qhfl, JDFJMF _queueCommand)
           
 
Method Summary
protected  void extractReturnParams(String stringURL, JDFCommand newCommand, JDFNode jdfRoot)
          overwrite this method in case you want to customize the hotfolder for returnqueueentryparams and paramtetrizing the ReturnQueueEntryParams template is insufficient
protected  void extractSubmitParams(String stringURL, JDFCommand newCommand, JDFNode jdfRoot)
          overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient
 boolean hotFile(File hotFile)
          this interface function is called whenever a new or modified file has stabilized in the hotFolder note: make sure to close all streams so that deleting temp files does not fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

QueueHotFolderListenerImpl

public QueueHotFolderListenerImpl(QueueHotFolderListener qhfl,
                                  JDFJMF _queueCommand)
Parameters:
qhfl -
_queueCommand -
Method Detail

hotFile

public boolean hotFile(File hotFile)
Description copied from interface: HotFolderListener
this interface function is called whenever a new or modified file has stabilized in the hotFolder note: make sure to close all streams so that deleting temp files does not fail

Specified by:
hotFile in interface HotFolderListener
Parameters:
hotFile -
Returns:
true if all went well, else false
See Also:
HotFolderListener.hotFile(java.io.File)

extractReturnParams

protected void extractReturnParams(String stringURL,
                                   JDFCommand newCommand,
                                   JDFNode jdfRoot)
overwrite this method in case you want to customize the hotfolder for returnqueueentryparams and paramtetrizing the ReturnQueueEntryParams template is insufficient

Parameters:
stringURL - the file url of the hotfolder jdf in the local storage directory (NOT the hf)
newCommand - the command that was generated from the template
jdfRoot - the root jdf node of the dropped file

extractSubmitParams

protected void extractSubmitParams(String stringURL,
                                   JDFCommand newCommand,
                                   JDFNode jdfRoot)
overwrite this method in case you want to customize the hotfolder for submitqueentry and parametrizing the QueueSubmissionParams template is insufficient

Parameters:
stringURL - the file url of the hotfolder jdf in the local storage directory (NOT the hf)
newCommand - the command that was generated from the template
jdfRoot - the root jdfnode of the dropped file


Copyright © 2013. All Rights Reserved.