org.ikasan.framework.payload.service
Class FileSystemPayloadPublisher

java.lang.Object
  extended by org.ikasan.framework.payload.service.FileSystemPayloadPublisher
All Implemented Interfaces:
PayloadPublisher

public class FileSystemPayloadPublisher
extends Object
implements PayloadPublisher

Publishes a Payload to a File System. Please note that this is *NOT* a JCA connector and should not be used as a primary method of delivering Payloads to a file system. This service should only be used for a secondary (backup) delivery.

Author:
Ikasan Development Team

Constructor Summary
FileSystemPayloadPublisher(String outputPath)
          Constructor
 
Method Summary
 void publish(Payload payload)
          Publishes the payload to the FileSystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemPayloadPublisher

public FileSystemPayloadPublisher(String outputPath)
Constructor

Parameters:
outputPath - Output path (directory) to write the Payload to
Method Detail

publish

public void publish(Payload payload)
             throws javax.resource.ResourceException
Publishes the payload to the FileSystem. - Checks to see if the Directory it is publishing to is valid - Checks to see if the character encoding is usable - Fails in an inelegant manner, simply throws a ResourceException

Specified by:
publish in interface PayloadPublisher
Parameters:
payload - The payload to publish
Throws:
javax.resource.ResourceException - Exception if we cannot publish the payload


Copyright © 2007-2012 Ikasan. All Rights Reserved.