wt.content
Class ContentHtmlUtils

java.lang.Object
  extended bywt.content.ContentHtmlUtils

public class ContentHtmlUtils
extends Object


Field Summary
private static String ALL_APPLET
           
private static String ALWAYS_ASK
           
private static boolean ATTACHMENT_DOWNLOAD
           
static int BROWSER_ONLY
           
private static String codebase
           
private static boolean DEBUG
           
private static String DELIM
           
static int DTI_APPLET_BROWSER
           
static int DTI_THEN_BROWSER
           
private static String FALSE
           
private static String FEW_APPLET
           
private static boolean IS_PROINTRALINK
           
private static String NO_APPLET
           
private static String POPUP_BLOCKER_RESPONSE
           
private static String RECORD_DELIM
           
private static String RESOURCE
           
private static String TRUE
           
private static boolean VERBOSE
           
 
Constructor Summary
ContentHtmlUtils()
           
 
Method Summary
private static String appletDownloadHtml(String displayValue, String downloadURL, String completionUrl, Locale locale, boolean VERBOSE)
           
private static String appletDownloadHtml(String displayValue, String downloadURL, String completionUrl, Locale locale, boolean VERBOSE, int downloadQuantity, boolean remember)
           
private static String browserDownloadHtml(ContentHolder holder, ApplicationData appData, String completionUrl, Locale locale, boolean VERBOSE)
           
static String escapeForJavascriptDisplay(String origString)
           
static String getAppletDownloadTags(ContentHolder holder, ApplicationData appData, boolean downloadStructure, Locale locale)
           
static String getAppletDownloadTags(ContentHolder holder, ApplicationData appData, boolean downloadStructure, Locale locale, boolean remember)
           
static String getAppletDownloadTags(ContentHolder holder, ApplicationData appData, boolean downloadStructure, Locale locale, String url)
           
static String getAppletDownloadTags(ContentHolder holder, ApplicationData appData, boolean downloadStructure, Locale locale, String url, boolean remember)
           
static String getAppletDownloadTags(ContentHolder holder, ApplicationData appData, Locale locale)
           
static String getAppletDownloadTags(Properties props, ContentHolder holder, ApplicationData appData, boolean downloadStructure, Locale locale)
           
static String getBrowserDownloadURL(ContentHolder holder, ApplicationData appData)
           
static String getDownloadDetectionBlock(Properties props, ContentHolder holder, ApplicationData appData, int downloadRouting, boolean remember, boolean downloadStructure, boolean useApplet, Locale locale)
           
static String getDownloadRoutingURLNoWrapper(ContentHolder holder, ApplicationData appData, int downloadRouting, boolean remember, boolean downloadStructure)
           
static String getDownloadRoutingURLNoWrapper(HashMap map)
           
static String getDownloadRoutingURLNoWrapper(ObjectReference holder, ObjectReference appData, int downloadRouting, boolean remember, boolean downloadStructure)
           
static String getDownloadRoutingURLString(ContentHolder holder, ApplicationData appData)
           
static String getDownloadRoutingURLString(ContentHolder holder, ApplicationData appData, int downloadRouting, boolean remember, boolean downloadStructure)
           
static String getDownloadRoutingURLString(ContentHolder holder, ApplicationData appData, int downloadRouting, boolean remember, boolean downloadStructure, String jsMethodName)
           
static String getFileDownloadLaunchURL(ContentHolder holder, ApplicationData appData, String originalURL)
           
static String getFileDownloadLaunchURL(ContentHolder holder, ApplicationData appData, String originalURL, int downloadRouting, boolean downloadStructure)
           
static String getFileDownloadLaunchURL(ObjectReference holder, ObjectReference appData, String originalURL)
           
static String getFileDownloadLaunchURL(ObjectReference holder, ObjectReference appData, String originalURL, int downloadRouting, boolean downloadStructure)
           
static String getMSOIDownloadURL(ContentHolder holder, ApplicationData appData, boolean remember, boolean downloadStructure)
           
static String getMsoiInstallURL(ContentHolder holder, ApplicationData appData, int downloadRouting, boolean remember, boolean downloadStructure, String dtiInstalled)
           
static String getPopupBlockerMessage()
           
static String getPreferenceValue(String node, String key)
           
static String getPreferenceValue(String node, String key, String defaultValue)
           
static String getPreferenceValue(String node, String key, String defaultValue, boolean VERBOSE)
           
static String initiateContentDownloadHtml(ContentHolder[] holders, ContentItem[] items, String completionUrl, Locale locale, boolean VERBOSE)
           
static String initiateContentDownloadHtml(ContentHolder[] holders, ContentItem[] items, String completionUrl, Locale locale, boolean VERBOSE, boolean remember)
           
static String initiateContentDownloadHtml(ContentHolder holder, ContentItem item, String completionUrl, Locale locale, boolean VERBOSE)
           
static String initiateContentDownloadHtml(ContentHolder holder, ContentItem item, String completionUrl, Locale locale, boolean VERBOSE, boolean remember)
           
static String initiateFileDownloadHtml(ContentHolder holder, ApplicationData appData, String completionUrl, Locale locale, boolean VERBOSE)
           
static String initiateFileDownloadHtml(ContentHolder holder, ApplicationData appData, String completionUrl, Locale locale, boolean VERBOSE, boolean remember)
           
static String initiateURLDownloadHtml(ContentHolder holder, URLData urlData, String completionUrl, boolean VERBOSE)
           
static void setFileName(HTTPRequest request, HTTPResponse response, String file_name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static String RESOURCE

codebase

private static String codebase

DEBUG

private static boolean DEBUG

VERBOSE

private static boolean VERBOSE

IS_PROINTRALINK

private static boolean IS_PROINTRALINK

TRUE

private static String TRUE

FALSE

private static String FALSE

NO_APPLET

private static String NO_APPLET

ALL_APPLET

private static String ALL_APPLET

FEW_APPLET

private static String FEW_APPLET

ALWAYS_ASK

private static String ALWAYS_ASK

DELIM

private static String DELIM

RECORD_DELIM

private static String RECORD_DELIM

POPUP_BLOCKER_RESPONSE

private static String POPUP_BLOCKER_RESPONSE

ATTACHMENT_DOWNLOAD

private static boolean ATTACHMENT_DOWNLOAD

BROWSER_ONLY

public static final int BROWSER_ONLY
See Also:
Constant Field Values

DTI_THEN_BROWSER

public static final int DTI_THEN_BROWSER
See Also:
Constant Field Values

DTI_APPLET_BROWSER

public static final int DTI_APPLET_BROWSER
See Also:
Constant Field Values
Constructor Detail

ContentHtmlUtils

public ContentHtmlUtils()
Method Detail

initiateContentDownloadHtml

public static String initiateContentDownloadHtml(ContentHolder holder,
                                                 ContentItem item,
                                                 String completionUrl,
                                                 Locale locale,
                                                 boolean VERBOSE)
                                          throws WTException,
                                                 PropertyVetoException,
                                                 IOException
Throws:
WTException
PropertyVetoException
IOException

initiateContentDownloadHtml

public static String initiateContentDownloadHtml(ContentHolder holder,
                                                 ContentItem item,
                                                 String completionUrl,
                                                 Locale locale,
                                                 boolean VERBOSE,
                                                 boolean remember)
                                          throws WTException,
                                                 PropertyVetoException,
                                                 IOException
Throws:
WTException
PropertyVetoException
IOException

initiateContentDownloadHtml

public static String initiateContentDownloadHtml(ContentHolder[] holders,
                                                 ContentItem[] items,
                                                 String completionUrl,
                                                 Locale locale,
                                                 boolean VERBOSE)
                                          throws IOException,
                                                 WTException,
                                                 PropertyVetoException
Throws:
IOException
WTException
PropertyVetoException

initiateContentDownloadHtml

public static String initiateContentDownloadHtml(ContentHolder[] holders,
                                                 ContentItem[] items,
                                                 String completionUrl,
                                                 Locale locale,
                                                 boolean VERBOSE,
                                                 boolean remember)
                                          throws IOException,
                                                 WTException,
                                                 PropertyVetoException
Throws:
IOException
WTException
PropertyVetoException

initiateFileDownloadHtml

public static String initiateFileDownloadHtml(ContentHolder holder,
                                              ApplicationData appData,
                                              String completionUrl,
                                              Locale locale,
                                              boolean VERBOSE)
                                       throws IOException,
                                              WTException
Throws:
IOException
WTException

initiateFileDownloadHtml

public static String initiateFileDownloadHtml(ContentHolder holder,
                                              ApplicationData appData,
                                              String completionUrl,
                                              Locale locale,
                                              boolean VERBOSE,
                                              boolean remember)
                                       throws IOException,
                                              WTException
Throws:
IOException
WTException

browserDownloadHtml

private static String browserDownloadHtml(ContentHolder holder,
                                          ApplicationData appData,
                                          String completionUrl,
                                          Locale locale,
                                          boolean VERBOSE)

appletDownloadHtml

private static String appletDownloadHtml(String displayValue,
                                         String downloadURL,
                                         String completionUrl,
                                         Locale locale,
                                         boolean VERBOSE)
                                  throws IOException,
                                         WTException
Throws:
IOException
WTException

appletDownloadHtml

private static String appletDownloadHtml(String displayValue,
                                         String downloadURL,
                                         String completionUrl,
                                         Locale locale,
                                         boolean VERBOSE,
                                         int downloadQuantity,
                                         boolean remember)
                                  throws IOException,
                                         WTException
Throws:
IOException
WTException

initiateURLDownloadHtml

public static String initiateURLDownloadHtml(ContentHolder holder,
                                             URLData urlData,
                                             String completionUrl,
                                             boolean VERBOSE)

getPreferenceValue

public static String getPreferenceValue(String node,
                                        String key)

getPreferenceValue

public static String getPreferenceValue(String node,
                                        String key,
                                        String defaultValue)

getPreferenceValue

public static String getPreferenceValue(String node,
                                        String key,
                                        String defaultValue,
                                        boolean VERBOSE)

getDownloadRoutingURLString

public static String getDownloadRoutingURLString(ContentHolder holder,
                                                 ApplicationData appData)
                                          throws WTException
Throws:
WTException

getDownloadRoutingURLString

public static String getDownloadRoutingURLString(ContentHolder holder,
                                                 ApplicationData appData,
                                                 int downloadRouting,
                                                 boolean remember,
                                                 boolean downloadStructure)
                                          throws WTException
Throws:
WTException

getDownloadRoutingURLString

public static String getDownloadRoutingURLString(ContentHolder holder,
                                                 ApplicationData appData,
                                                 int downloadRouting,
                                                 boolean remember,
                                                 boolean downloadStructure,
                                                 String jsMethodName)
                                          throws WTException
Throws:
WTException

getDownloadRoutingURLNoWrapper

public static String getDownloadRoutingURLNoWrapper(ContentHolder holder,
                                                    ApplicationData appData,
                                                    int downloadRouting,
                                                    boolean remember,
                                                    boolean downloadStructure)
                                             throws WTException
Throws:
WTException

getDownloadRoutingURLNoWrapper

public static String getDownloadRoutingURLNoWrapper(HashMap map)
                                             throws WTException
Throws:
WTException

getDownloadDetectionBlock

public static String getDownloadDetectionBlock(Properties props,
                                               ContentHolder holder,
                                               ApplicationData appData,
                                               int downloadRouting,
                                               boolean remember,
                                               boolean downloadStructure,
                                               boolean useApplet,
                                               Locale locale)
                                        throws WTException,
                                               PropertyVetoException,
                                               IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(ContentHolder holder,
                                           ApplicationData appData,
                                           Locale locale)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(ContentHolder holder,
                                           ApplicationData appData,
                                           boolean downloadStructure,
                                           Locale locale)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(Properties props,
                                           ContentHolder holder,
                                           ApplicationData appData,
                                           boolean downloadStructure,
                                           Locale locale)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(ContentHolder holder,
                                           ApplicationData appData,
                                           boolean downloadStructure,
                                           Locale locale,
                                           String url)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(ContentHolder holder,
                                           ApplicationData appData,
                                           boolean downloadStructure,
                                           Locale locale,
                                           boolean remember)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getAppletDownloadTags

public static String getAppletDownloadTags(ContentHolder holder,
                                           ApplicationData appData,
                                           boolean downloadStructure,
                                           Locale locale,
                                           String url,
                                           boolean remember)
                                    throws WTException,
                                           PropertyVetoException,
                                           IOException
Throws:
WTException
PropertyVetoException
IOException

getBrowserDownloadURL

public static String getBrowserDownloadURL(ContentHolder holder,
                                           ApplicationData appData)
                                    throws WTException
Throws:
WTException

getMSOIDownloadURL

public static String getMSOIDownloadURL(ContentHolder holder,
                                        ApplicationData appData,
                                        boolean remember,
                                        boolean downloadStructure)
                                 throws WTException
Throws:
WTException

getMsoiInstallURL

public static String getMsoiInstallURL(ContentHolder holder,
                                       ApplicationData appData,
                                       int downloadRouting,
                                       boolean remember,
                                       boolean downloadStructure,
                                       String dtiInstalled)
                                throws WTException
Throws:
WTException

getFileDownloadLaunchURL

public static String getFileDownloadLaunchURL(ContentHolder holder,
                                              ApplicationData appData,
                                              String originalURL)
                                       throws WTException
Throws:
WTException

getFileDownloadLaunchURL

public static String getFileDownloadLaunchURL(ContentHolder holder,
                                              ApplicationData appData,
                                              String originalURL,
                                              int downloadRouting,
                                              boolean downloadStructure)
                                       throws WTException
Throws:
WTException

getFileDownloadLaunchURL

public static String getFileDownloadLaunchURL(ObjectReference holder,
                                              ObjectReference appData,
                                              String originalURL)
                                       throws WTException
Throws:
WTException

getFileDownloadLaunchURL

public static String getFileDownloadLaunchURL(ObjectReference holder,
                                              ObjectReference appData,
                                              String originalURL,
                                              int downloadRouting,
                                              boolean downloadStructure)
                                       throws WTException
Throws:
WTException

getDownloadRoutingURLNoWrapper

public static String getDownloadRoutingURLNoWrapper(ObjectReference holder,
                                                    ObjectReference appData,
                                                    int downloadRouting,
                                                    boolean remember,
                                                    boolean downloadStructure)
                                             throws WTException
Throws:
WTException

getPopupBlockerMessage

public static String getPopupBlockerMessage()

escapeForJavascriptDisplay

public static String escapeForJavascriptDisplay(String origString)

setFileName

public static void setFileName(HTTPRequest request,
                               HTTPResponse response,
                               String file_name)