Class WriteToFile
java.lang.Object
com.ptc.windchill.esi.lite.tgt.webject.WriteToFile
- Direct Known Subclasses:
WriteToFTP
Implementation for Write-To-File custom webject for ERPConnector
Supported API: true
Supported API: true
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResponse(WTContained object, String fileName, File outputFile) Creates a cache of the contents of the input file, based on the values of following ESI preferences.
-
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.- Enable Response Cache
- 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
-