Class WriteToFile

java.lang.Object
com.ptc.windchill.esi.lite.tgt.webject.WriteToFile
Direct Known Subclasses:
WriteToFTP

public class WriteToFile extends Object
Implementation for Write-To-File custom webject for ERPConnector

Supported API: true
  • Method Details

    • cacheResponse

      public static void cacheResponse(WTContained object, String fileName, File outputFile) throws WTException, IOException
      Creates a cache of the contents of the input file, based on the values of following ESI preferences.
      1. Enable Response Cache
      2. ESI Response Cache Location


      Supported API: true
      Parameters:
      object - - WTContained object to use when fetching the values of preferences; this is typically the primary business object that was released.
      fileName - - Name of the file whose contents are to be cached;
      outputFile - - File instance representing the file whose contents are to be cached.
      Throws:
      WTException - , IOException if some error occurred while creating the cache.
      IOException