com.ptc.wvs.server.cadagent
Class FileHelper

java.lang.Object
  extended bycom.ptc.wvs.server.cadagent.FileHelper

public class FileHelper
extends Object


Field Summary
private  boolean debug
           
private  Log distributedLog
           
(package private)  String distRule
           
private static String faclist
           
private static String file_vaultlist
           
private  String processingDirectory
           
private static String urllist
           
 
Constructor Summary
(package private) FileHelper(String processingDirectory)
           
 
Method Summary
private  URLConnection getAuthenticatedConnection(String ownerApplication, String urlString, String authentication)
           
 String getDistRule()
           
 boolean isDebug()
           
 void log(String message)
           
 boolean process()
           
private  boolean process(String directory)
           
private  boolean readURL(String ownerApplication, String urlString, String authentication, File fileOut)
           
 void setDebug(boolean debug)
           
 void setDistributedLog(Log distributedLog)
           
 void setDistRule(String dr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processingDirectory

private String processingDirectory

urllist

private static final String urllist
See Also:
Constant Field Values

faclist

private static final String faclist
See Also:
Constant Field Values

file_vaultlist

private static final String file_vaultlist
See Also:
Constant Field Values

debug

private boolean debug

distributedLog

private Log distributedLog

distRule

String distRule
Constructor Detail

FileHelper

FileHelper(String processingDirectory)
Method Detail

process

public boolean process()

setDebug

public void setDebug(boolean debug)

isDebug

public boolean isDebug()

setDistributedLog

public void setDistributedLog(Log distributedLog)

log

public void log(String message)

setDistRule

public void setDistRule(String dr)

getDistRule

public String getDistRule()

process

private boolean process(String directory)

readURL

private boolean readURL(String ownerApplication,
                        String urlString,
                        String authentication,
                        File fileOut)

getAuthenticatedConnection

private URLConnection getAuthenticatedConnection(String ownerApplication,
                                                 String urlString,
                                                 String authentication)