org.alfresco.deployment
Interface DeploymentReceiverTransport

All Superinterfaces:
DeploymentReceiverService
All Known Implementing Classes:
DeploymentReceiverEngineImpl

public interface DeploymentReceiverTransport
extends DeploymentReceiverService

This is the interface that is implemented for the transport between client and server of the File System Receiver (FSR) The methods in this interface are concerned with the transport of OutputStreams


Method Summary
 void finishSend(java.lang.String ticket, java.lang.String outputToken)
          Tell the deployment receiver that a send is finished.
 java.lang.String getSendToken(java.lang.String ticket, boolean create, java.lang.String path, java.lang.String guid, java.lang.String encoding, java.lang.String mimeType, java.util.Set aspects, java.util.Map props)
          Get an OutputStream token.
 void shutDown(java.lang.String user, char[] password)
          Shut down the Deployment Receiver.
 void write(java.lang.String ticket, java.lang.String outputToken, byte[] data, int offset, int count)
          Write a block of bytes to a file that is being sent.
 
Methods inherited from interface org.alfresco.deployment.DeploymentReceiverService
abort, begin, commit, createDirectory, delete, getListing, prepare, send, updateDirectory
 

Method Detail

getSendToken

java.lang.String getSendToken(java.lang.String ticket,
                              boolean create,
                              java.lang.String path,
                              java.lang.String guid,
                              java.lang.String encoding,
                              java.lang.String mimeType,
                              java.util.Set aspects,
                              java.util.Map props)
Get an OutputStream token.

Parameters:
ticket -
path -
guid -
Returns:
the token to identify this file.

finishSend

void finishSend(java.lang.String ticket,
                java.lang.String outputToken)
Tell the deployment receiver that a send is finished.

Parameters:
ticket -
outputToken -

write

void write(java.lang.String ticket,
           java.lang.String outputToken,
           byte[] data,
           int offset,
           int count)
Write a block of bytes to a file that is being sent.

Parameters:
outputToken -
data -
offset -

shutDown

void shutDown(java.lang.String user,
              char[] password)
Shut down the Deployment Receiver.

Parameters:
user -
password -


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.