|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.part.BOMTemplateProcessor
Deprecation Notice: This class is still valid for this release, however
this serves as advance notice that it will be removed in the future.
All user interfaces built using the Windchill HTML Template Processing
client architecture will be rewritten using a different framework in
an upcoming release.
This abstract class implements a template processor for generating HTML that
displays a Bill of Materials (BOM).
Supported API: false
Extendable: false
Field Summary | |
private ApplicationContext |
applicationContext
Deprecated. |
private ConfigSpec |
configSpec
Deprecated. |
private static String |
DEFAULT_VISITOR_SERVICE
Deprecated. |
private static long |
EXPIRATION
Deprecated. |
private static String |
EXPIRATION_KEY
Deprecated. |
private static String |
PROCESSING_TEMPLATE
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private static String |
TEMPLATE
Deprecated. |
private String |
visitorService
Deprecated. |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
BOMTemplateProcessor()
Deprecated. This method constructs an instance. |
Method Summary | |
abstract void |
buildBOM(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. This method generates HTML output for a BOM. |
void |
displayBOMTitle(Properties parameters,
Locale locale,
OutputStream os)
Deprecated. |
ApplicationContext |
getApplicationContext()
Deprecated. This method returns the application context. |
ConfigSpec |
getConfigSpec()
Deprecated. This method returns the config spec. |
protected ServletSessionCookie |
getCookie(String cookieName)
Deprecated. |
HTMLTemplate |
getTemplate(Vector preferences)
Deprecated. This method creates and initializes an HTMLTemplate object. |
protected TextOutputVisitor |
getVisitor(Class targetClass,
Locale locale,
PrintWriter out)
Deprecated. This method returns a TextOutputVisitor object to be used to generate HTML. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
Deprecated. This method handles HTTP GET requests to generate HTML for a BOM. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Deprecated. This method sets the application context. |
void |
setConfigSpec()
Deprecated. This method sets the config spec. |
void |
setConfigSpec(ConfigSpec configSpec)
Deprecated. This method sets the config spec. |
static void |
setProcessingTemplateName(String newName)
Deprecated. |
static void |
setResourceName(String newName)
Deprecated. |
static void |
setTemplateName(String newName)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String EXPIRATION_KEY
private static long EXPIRATION
private static String RESOURCE
private static String TEMPLATE
private static String PROCESSING_TEMPLATE
private static final String DEFAULT_VISITOR_SERVICE
private ConfigSpec configSpec
private ApplicationContext applicationContext
private String visitorService
Constructor Detail |
public BOMTemplateProcessor() throws WTException
WTException
Method Detail |
public void setConfigSpec() throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public void setConfigSpec(ConfigSpec configSpec) throws WTPropertyVetoException
configSpec
- intance to set
WTPropertyVetoException
public ConfigSpec getConfigSpec()
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
- context to set
WTPropertyVetoException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
protected TextOutputVisitor getVisitor(Class targetClass, Locale locale, PrintWriter out) throws WTPropertyVetoException
The locale and output stream are set on the Visitor object.
Supported API: true
targetClass
- used to specify the Visitor objectlocale
- Locale to set on the Visitor objectout
- Output stream to set on the Visitor object
WTPropertyVetoException
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
This object is constructed and the handleRequest method is called from
within the URLTemplateAction method of the URLProcessor object.
Supported API: false
handleRequest
in interface TemplateProcessor
req
- HTTPRequestresp
- HTTPResponse
WTException
URLProcessor
public HTMLTemplate getTemplate(Vector preferences) throws WTException
preferences
- Vector of preferences used to initialize the template.
WTException
HTMLTemplate
public abstract void buildBOM(Properties parameters, Locale locale, OutputStream os) throws WTException, WTPropertyVetoException
parameters
- script parameters (not used)locale
- used to generate HTML for a specific Localeos
- OutputStream to write to
WTPropertyVetoException
WTException
public void displayBOMTitle(Properties parameters, Locale locale, OutputStream os)
public static void setTemplateName(String newName)
public static void setResourceName(String newName)
public static void setProcessingTemplateName(String newName)
protected ServletSessionCookie getCookie(String cookieName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |