Interface FileSOAPService


public interface FileSOAPService

Service interface for file operations via SOAP

Copyright 2018 (C) by Martin Ganserer

Version:
1.0.0
Author:
Martin Ganserer
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.activation.DataHandler
    downloadFile(String pathOnServer)
    Download a file
    uploadFile(String name, byte[] data)
    Upload a file
  • Method Details

    • downloadFile

      jakarta.activation.DataHandler downloadFile(String pathOnServer)
      Download a file
      Parameters:
      pathOnServer - the fully qualified path of the file on the remote system
      Returns:
      a DataHandler that provides access to the content of the file
      Throws:
      RemoteOperationException - if the download has failed
    • uploadFile

      String uploadFile(String name, byte[] data)
      Upload a file
      Parameters:
      name - the file name
      data - a byte array that represents the file content
      Returns:
      the fully qualified path of the file created on the remote system
      Throws:
      RemoteOperationException - if the upload has failed