wt.clients.util.http
Class SecondaryContentProcessor

java.lang.Object
  extended bywt.clients.util.http.SecondaryContentProcessor

public class SecondaryContentProcessor
extends Object


Field Summary
private static boolean verbose
           
 
Constructor Summary
SecondaryContentProcessor()
           
 
Method Summary
private static void addContent(HTTPUploadDownload httpUploadDownload, String sElement, int count, String delimiter)
           
private static void addFile(HTTPUploadDownload httpUploadDownload, String sFile, int count)
           
private static void addURL(HTTPUploadDownload httpUploadDownload, String sUrl, String sDesc, int count)
           
private static String[] getFileInfo(String sFile, String delimiter)
          returns a String array containing oid, filename, format, & path
private static String[] getURLInfo(String sURL, String delimiter)
          returns a String array containing oid, filename, format, path & description
static HTTPUploadDownload parseContents(String secondaryContent, HTTPUploadDownload httpUploadDownload, String delimiter, String recordDelimiter, boolean a_verbose)
           
private static String[] parseIntoArray(String parseFrom, String delimiter, int arraySize)
           
private static void removeContent(HTTPUploadDownload httpUploadDownload, String sElement, int count, String delimiter)
           
private static void removeFile(HTTPUploadDownload httpUploadDownload, String sFile, int count, String delimiter)
           
private static void removeURL(HTTPUploadDownload httpUploadDownload, String sOid, int count)
           
private static void replaceContent(HTTPUploadDownload httpUploadDownload, String sElement, int count, String delimiter)
           
private static void replaceFile(HTTPUploadDownload httpUploadDownload, String sFile, int count, String delimiter)
           
private static void replaceURL(HTTPUploadDownload httpUploadDownload, String sOid, String sUrl, String sDesc, int count)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

private static boolean verbose
Constructor Detail

SecondaryContentProcessor

public SecondaryContentProcessor()
Method Detail

parseContents

public static HTTPUploadDownload parseContents(String secondaryContent,
                                               HTTPUploadDownload httpUploadDownload,
                                               String delimiter,
                                               String recordDelimiter,
                                               boolean a_verbose)
                                        throws MalformedURLException
Throws:
MalformedURLException

addContent

private static void addContent(HTTPUploadDownload httpUploadDownload,
                               String sElement,
                               int count,
                               String delimiter)
                        throws MalformedURLException
Throws:
MalformedURLException

removeContent

private static void removeContent(HTTPUploadDownload httpUploadDownload,
                                  String sElement,
                                  int count,
                                  String delimiter)
                           throws MalformedURLException
Throws:
MalformedURLException

replaceContent

private static void replaceContent(HTTPUploadDownload httpUploadDownload,
                                   String sElement,
                                   int count,
                                   String delimiter)
                            throws MalformedURLException
Throws:
MalformedURLException

addFile

private static void addFile(HTTPUploadDownload httpUploadDownload,
                            String sFile,
                            int count)

removeFile

private static void removeFile(HTTPUploadDownload httpUploadDownload,
                               String sFile,
                               int count,
                               String delimiter)
                        throws MalformedURLException
Throws:
MalformedURLException

removeURL

private static void removeURL(HTTPUploadDownload httpUploadDownload,
                              String sOid,
                              int count)
                       throws MalformedURLException
Throws:
MalformedURLException

replaceFile

private static void replaceFile(HTTPUploadDownload httpUploadDownload,
                                String sFile,
                                int count,
                                String delimiter)

replaceURL

private static void replaceURL(HTTPUploadDownload httpUploadDownload,
                               String sOid,
                               String sUrl,
                               String sDesc,
                               int count)
                        throws MalformedURLException
Throws:
MalformedURLException

addURL

private static void addURL(HTTPUploadDownload httpUploadDownload,
                           String sUrl,
                           String sDesc,
                           int count)
                    throws MalformedURLException
Throws:
MalformedURLException

getFileInfo

private static String[] getFileInfo(String sFile,
                                    String delimiter)
returns a String array containing oid, filename, format, & path


getURLInfo

private static String[] getURLInfo(String sURL,
                                   String delimiter)
returns a String array containing oid, filename, format, path & description


parseIntoArray

private static String[] parseIntoArray(String parseFrom,
                                       String delimiter,
                                       int arraySize)