|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.homepage.WindchillHome
WindchillHome contains those methods needed to dynamically generate the main Windchill page.
Supported API: true
Extendable: true
Field Summary | |
protected static String |
BLANK_SPACE
|
protected static String |
BREAK_SEPARATOR
|
protected static String |
BREAK_TAG
|
private static String |
CODEBASE
|
protected static String |
displayLabel
|
static String |
ID_SEPARATOR
|
static String |
JSPPAGE
|
private static boolean |
OLD_ENTERPRISE_SEARCH
|
private static String |
PORTALFILE
|
private static String |
PORTALPATH
|
protected static WTProperties |
properties
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
Constructor Summary | |
WindchillHome()
|
Method Summary | |
static void |
displayURLString(Properties props,
Locale locale,
OutputStream os)
Uses URLTemplateAction to build a URL. |
static String |
getHomeURL()
Returns a string representation of the Windchill home page URL. |
static String |
getHomeURL(Properties props,
Locale locale)
Method for returning a String representation of the URL to the homepage. |
static String |
getKeyAsURL(String key,
boolean localize,
Locale locale)
Returns a String which represents a URL which is retrieved from wt.properties properties file. |
static void |
getPage(HTTPRequest req,
HTTPResponse resp)
Construct the main Windchill page. |
static String |
getPageAsURL(String page)
Returns a String which represents a URL to the given HTML file. |
static void |
getPageName(Properties prop,
Locale locale,
OutputStream os)
This method is invoked when dynamically generating the main Windchill page. |
private static PrintWriter |
getPrintWriter(OutputStream os,
Locale locale)
|
static String |
getUrlFromMethod(String class_name,
String method,
Class[] param_classes,
Object target,
Object[] params)
This static method returns a string representation of a URL which is retrieved by invoking a specified method. |
static String |
getURLString(Properties props)
Returns a String representation of a URL to be generated by the URLTemplateAction method of URLProcessor. |
static void |
insertHomeLocation(Properties prop,
Locale locale,
OutputStream os)
This method's function is to get and write out the URL of the Home page. |
static void |
insertLocalSearchLocation(Properties prop,
Locale locale,
OutputStream os)
This method is invoked dynamically when generating the main Windchill page. |
static void |
insertPageLocation(Properties prop,
Locale locale,
OutputStream os)
This method is invoked when dynamically generating the main Windchill page. |
static void |
insertSALocation(Properties prop,
Locale locale,
OutputStream os)
This method is invoked when dynamically generating the main Windchill page. |
static void |
insertWorkflowLocation(Properties prop,
Locale locale,
OutputStream os)
This method is invoked when dynamically generating the main Windchill page. |
static void |
insertWTPropertiesURL(Properties prop,
Locale locale,
OutputStream os)
Convenience method which prints out a URL by looking it up in wt.properties. |
protected static boolean |
isInstalled(String installed_key)
Returns a boolean value indicating whether the optional application specified by the given String key is installed. |
static void |
printTableEntry(Properties parameters,
Locale locale,
OutputStream os)
|
protected static String |
splitString(String string_to_split)
Removes the ID_SEPARATOR characters in the given string and replaces them with spaces. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static String CODEBASE
private static boolean VERBOSE
private static final String PORTALPATH
private static final String PORTALFILE
public static final String JSPPAGE
public static final String ID_SEPARATOR
protected static WTProperties properties
protected static String BLANK_SPACE
protected static String BREAK_SEPARATOR
protected static String BREAK_TAG
protected static String displayLabel
private static boolean OLD_ENTERPRISE_SEARCH
Constructor Detail |
public WindchillHome()
Method Detail |
public static void getPage(HTTPRequest req, HTTPResponse resp) throws WTException
req
- The HTTPRequest.resp
- The HTTPResponse object. This object holds the OutputStream to write to.
WTException
- Thrown if an IO error occurs.public static String getHomeURL() throws WTException
WTException
public static String getHomeURL(Properties props, Locale locale) throws WTException
WTException
public static void insertHomeLocation(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method. This parameter is not checked as it is expected to be null.locale
- The prefered Locale of the client. Since this method only writes out a URL, this parameter is not checked.os
- The OutputStream to write the URL to.
WTException
- Thrown if the URL cannot be obtained.public static void insertSALocation(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method. This parameter is not checked as it is expected to be null.locale
- The prefered Locale of the client. Since this method only writes out a URL, this parameter is not checked.os
- The OutputStream to write the URL to.
WTException
- Thrown if the URL cannot be obtained.public static void insertWorkflowLocation(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method. This parameter is not checked as it is expected to be null.locale
- The prefered Locale of the client. Since this method only writes out a URL, this parameter is not checked.os
- The OutputStream to write the URL to.
WTException
- Thrown if the URL cannot be obtained.public static void insertLocalSearchLocation(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method.locale
- The prefered Locale of the client. Since this method only
writes out a URL, this parameter is not checked.os
- The OutputStream to write the URL to.
WTException
- Thrown if the URL cannot be obtained.public static void insertWTPropertiesURL(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method.locale
- The prefered Locale of the client.os
- The OutputStream to write the URL to.
WTException
- Thrown if the URL cannot be obtained.public static void insertPageLocation(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method. This parameter contains the page to for which to make the URL.locale
- The prefered Locale of the client. Since this method only writes out a URL, this parameter is not checked.os
- The OutputStream to write the URL to.
WTException
- Thrown if the server codebase property cannot be obtained.public static String getPageAsURL(String page) throws WTException
page
- a String representation of the page to which to make
a URL to
WTException
public static String getKeyAsURL(String key, boolean localize, Locale locale)
public static void getPageName(Properties prop, Locale locale, OutputStream os) throws WTException
prop
- Properties used by this method. This parameter contains the name to append to the value of wt.server.id.locale
- The prefered Locale of the client. Since this method only writes out a non-visible, this parameter is not checked.os
- The OutputStream to write the page name to.
WTException
- Thrown if the wt.server.id property cannot be obtained.private static PrintWriter getPrintWriter(OutputStream os, Locale locale)
public static void displayURLString(Properties props, Locale locale, OutputStream os) throws WTException
WTException
public static String getURLString(Properties props) throws WTException
props
- the Properties object used by URLProcessor
WTException
- if an error occurs building the URLpublic static void printTableEntry(Properties parameters, Locale locale, OutputStream os)
protected static String splitString(String string_to_split)
string_to_split
- the string to split
protected static boolean isInstalled(String installed_key)
installed_key
- the String key corresponding to an
entry in the installed.properties file.
public static String getUrlFromMethod(String class_name, String method, Class[] param_classes, Object target, Object[] params) throws WTException
class_name
- the class containing the method to invoke. If
no class name is given, this class is usedmethod
- the name of the method to be invoked. This
parameter is requiredparam_classes
- an array of Class objects specifying the
types of the parameters expected by the methodtarget
- the object on which to invoke the method. If the
method to invoked is static, this parameter should be nullparams
- an array of Objects containing the objects to pass
as parameters to the method.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |