org.sca4j.binding.file.runtime
Class FileTargetInterceptor

java.lang.Object
  extended by org.sca4j.binding.file.runtime.FileTargetInterceptor
All Implemented Interfaces:
org.sca4j.spi.wire.Interceptor

public class FileTargetInterceptor
extends java.lang.Object
implements org.sca4j.spi.wire.Interceptor

Intercepts calls to the File System form the reference end of the wire. A lock could be acquired during the write operation depending upon the configuration.


Constructor Summary
FileTargetInterceptor(java.io.File rootDir, boolean acquireLock, java.lang.String tmpFileSuffix)
          Constructor with rootDir and lock flag.
 
Method Summary
 org.sca4j.spi.wire.Interceptor getNext()
          Gets the next interceptor
 org.sca4j.spi.invocation.Message invoke(org.sca4j.spi.invocation.Message msg)
          
 void setNext(org.sca4j.spi.wire.Interceptor next)
          Sets the next interceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTargetInterceptor

public FileTargetInterceptor(java.io.File rootDir,
                             boolean acquireLock,
                             java.lang.String tmpFileSuffix)
Constructor with rootDir and lock flag.

Parameters:
rootDir - root directory for file-drops specified in binding definition. could be null for Dynamic endpoints.
acquireLock - indicates if lock must be acquired during write operation.
tmpFileSuffix - temporary file suffix used during file upload, file is rename to original name on completion.
Method Detail

invoke

public org.sca4j.spi.invocation.Message invoke(org.sca4j.spi.invocation.Message msg)

Specified by:
invoke in interface org.sca4j.spi.wire.Interceptor

setNext

public void setNext(org.sca4j.spi.wire.Interceptor next)
Sets the next interceptor

Specified by:
setNext in interface org.sca4j.spi.wire.Interceptor

getNext

public org.sca4j.spi.wire.Interceptor getNext()
Gets the next interceptor

Specified by:
getNext in interface org.sca4j.spi.wire.Interceptor


Copyright © 2008-2011 Service Symphony. All Rights Reserved.