Package wt.templateutil.processor
Class AbstractHTMLTemplateFactory
java.lang.Object
wt.templateutil.processor.AbstractHTMLTemplateFactory
- All Implemented Interfaces:
wt.services.applicationcontext.ApplicationContextChild,ContextHolder
- Direct Known Subclasses:
DefaultHTMLTemplateFactory
public abstract class AbstractHTMLTemplateFactory
extends Object
implements wt.services.applicationcontext.ApplicationContextChild, ContextHolder
Deprecated.
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.
Parent class of the HTML Template Factories. This class provides the
the basic methods and the basic services that an HTML Template Factory
needs.
This class implements the ContextHolder interface so that this service
may
be state driven. This class also implements the ApplicationContextChild
interface
so that a properties file may be used as a registry for the HTML Templates.
The getHTMLTemplate needs to be implemented by the concrete subclass.
Please see the Customizer's Guide or the HTML Template Factory HOWTO
for more details of using
this service
Supported API: true
Extendable: false
-
Field Summary
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyContextFrom(ContextHolder contextHolder) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.abstract wt.htmlutil.HTMLTemplateDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.intDeprecated.voidsetContextAction(String a_ContextAction) Deprecated.voidsetContextClassName(String a_ContextClassName) Deprecated.voidsetContextObj(Object a_ContextObj) Deprecated.voidsetContextProperties(Properties a_ContextProperties) Deprecated.voidsetFormData(Properties a_FormData) Deprecated.voidsetLanguagePreferences(String languagePrefStr) Deprecated.voidsetLanguagePreferences(Vector a_LanguagePreferences) Deprecated.voidsetLanguagePreferences(HTTPRequest request) Deprecated.voidDeprecated.voidsetQueryData(Properties a_QueryData) Deprecated.voidsetResponseExceptions(Vector a_ResponseExceptions) Deprecated.voidsetResponseFooters(Vector a_ResponseFooters) Deprecated.voidsetResponseHeaders(Vector a_ResponseHeaders) Deprecated.voidsetResponseMessages(Vector a_ResponseMessages) Deprecated.voidsetResponseString(String a_ResponseString) Deprecated.voidsetServiceName(String a_ServiceName) Deprecated.voidsetStatus(int a_Status) Deprecated.
-
Constructor Details
-
AbstractHTMLTemplateFactory
public AbstractHTMLTemplateFactory() throws wt.services.applicationcontext.implementation.UnableToLoadServicePropertiesDeprecated.
Supported API: true- Throws:
wt.services.applicationcontext.implementation.UnableToLoadServiceProperties
-
-
Method Details
-
getLanguagePreferences
Deprecated.Gets the value of the attribute: languagePreferences.
Supported API: true- Returns:
- Vector
-
setLanguagePreferences
Deprecated.Sets the value of the attribute: languagePreferences.
Supported API: true- Parameters:
a_LanguagePreferences-
-
getServiceName
Deprecated.Gets the value of the attribute: serviceName.
Supported API: true- Returns:
- String
-
setServiceName
Deprecated.Sets the value of the attribute: serviceName.
Supported API: true- Parameters:
a_ServiceName-
-
getLocale
Deprecated.Gets the value of the attribute: locale; The locale to use when retrieving localized resources.
Supported API: true- Returns:
- Locale
-
setLocale
Deprecated.Sets the value of the attribute: locale; The locale to use when retrieving localized resources.
Supported API: true- Parameters:
a_Locale-
-
getHTMLTemplate
Deprecated.Selects an HTML Template based on the the current locale and the current HTTPState, i.e. the current "action" and the current "class". The class is based on the current context object, if any is set. If not context object is set, then the class is based on the value of the contextClassName attribute of the HTTPState object. If neither is set, the default value of java.lang.Object is used as the class.This method must be overriden by a concrete subclass.
Supported API: true- Returns:
- HTMLTemplate
- Throws:
WTException
-
setLanguagePreferences
Deprecated.
Supported API: true- Parameters:
languagePrefStr-
-
setLanguagePreferences
Deprecated.
Supported API: true- Parameters:
request- changes required as per SPR : 6885568 Language preference sets according to server language preference
-
copyContextFrom
Deprecated.Copies the "context" from an implementor of the ContextHolder interface,like HTTPState, into the aggregated HTTPState object in this class.
Supported API: true- Parameters:
contextHolder-
-
getContextAction
Deprecated.Gets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
getContextActionin interfaceContextHolder- Returns:
- String
-
setContextAction
Deprecated.Sets the value of the attribute: contextAction; Context Action is the name of the action of the current page
Supported API: true- Specified by:
setContextActionin interfaceContextHolder- Parameters:
a_ContextAction-
-
getContextObj
Deprecated.Gets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
getContextObjin interfaceContextHolder- Returns:
- Object
-
setContextObj
Deprecated.Sets the value of the attribute: contextObj; Context Object is the reference object of the current page
Supported API: true- Specified by:
setContextObjin interfaceContextHolder- Parameters:
a_ContextObj-
-
getContextClassName
Deprecated.Gets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
getContextClassNamein interfaceContextHolder- Returns:
- String
-
setContextClassName
Deprecated.Sets the value of the attribute: contextClassName; Context Object Name is the name of the class of the current page
Supported API: true- Specified by:
setContextClassNamein interfaceContextHolder- Parameters:
a_ContextClassName-
-
getContextProperties
Deprecated.Gets the value of the attribute: contextProperties.
Supported API: true- Specified by:
getContextPropertiesin interfaceContextHolder- Returns:
- Properties
-
setContextProperties
Deprecated.Sets the value of the attribute: contextProperties.
Supported API: true- Specified by:
setContextPropertiesin interfaceContextHolder- Parameters:
a_ContextProperties-
-
getResponseExceptions
Deprecated.Gets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
getResponseExceptionsin interfaceContextHolder- Returns:
- Vector
-
setResponseExceptions
Deprecated.Sets the value of the attribute: responseExceptions.
Supported API: true- Specified by:
setResponseExceptionsin interfaceContextHolder- Parameters:
a_ResponseExceptions-
-
getResponseHeaders
Deprecated.Gets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
getResponseHeadersin interfaceContextHolder- Returns:
- Vector
-
setResponseHeaders
Deprecated.Sets the value of the attribute: responseHeaders.
Supported API: true- Specified by:
setResponseHeadersin interfaceContextHolder- Parameters:
a_ResponseHeaders-
-
getResponseMessages
Deprecated.Gets the value of the attribute: responseMessages.
Supported API: true- Specified by:
getResponseMessagesin interfaceContextHolder- Returns:
- Vector
-
setResponseMessages
Deprecated.Sets the value of the attribute: responseMessages.
Supported API: true- Specified by:
setResponseMessagesin interfaceContextHolder- Parameters:
a_ResponseMessages-
-
getResponseString
Deprecated.Gets the value of the attribute: responseString.
Supported API: true- Specified by:
getResponseStringin interfaceContextHolder- Returns:
- String
-
setResponseString
Deprecated.Sets the value of the attribute: responseString.
Supported API: true- Specified by:
setResponseStringin interfaceContextHolder- Parameters:
a_ResponseString-
-
getStatus
public int getStatus()Deprecated.Gets the value of the attribute: status.
Supported API: true- Specified by:
getStatusin interfaceContextHolder- Returns:
- int
-
setStatus
public void setStatus(int a_Status) Deprecated.Sets the value of the attribute: status.
Supported API: true- Specified by:
setStatusin interfaceContextHolder- Parameters:
a_Status-
-
getFormData
Deprecated.Gets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
getFormDatain interfaceContextHolder- Returns:
- Properties
-
setFormData
Deprecated.Sets the value of the attribute: formData; Form Data is the data present in the form of the current HTML page.
Supported API: true- Specified by:
setFormDatain interfaceContextHolder- Parameters:
a_FormData-
-
getQueryData
Deprecated.Gets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
getQueryDatain interfaceContextHolder- Returns:
- Properties
-
setQueryData
Deprecated.Sets the value of the attribute: queryData; Query Data is the information present after the "?" mark on the URL of the current page.
Supported API: true- Specified by:
setQueryDatain interfaceContextHolder- Parameters:
a_QueryData-
-