|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.templateutil.processor.AbstractHTMLTemplateFactory
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 | |
private ApplicationContext |
applicationContext
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private Vector |
languagePreferences
Deprecated. |
private Locale |
locale
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private String |
serviceName
Deprecated. |
private HTTPState |
theState
Deprecated. |
protected static boolean |
VERBOSE
Deprecated. |
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
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 | |
AbstractHTMLTemplateFactory()
Deprecated. |
Method Summary | |
void |
addToResponseExceptions(Exception newException)
Deprecated. Adds a LocalizableMessage message to the list of stackTraces that can be presented with the Windchill Script call |
void |
addToResponseFooters(LocalizableMessage newFooter)
Deprecated. Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script call |
void |
addToResponseHeaders(LocalizableMessage newHeader)
Deprecated. Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script call |
void |
addToResponseMessages(LocalizableMessage newMessage)
Deprecated. Adds a LocalizableMessage message to the list of localizable messages that can be presented with the Windchill Script call |
void |
copyContextFrom(ContextHolder contextHolder)
Deprecated. |
ApplicationContext |
getApplicationContext()
Deprecated. |
String |
getContextAction()
Deprecated. |
String |
getContextClassName()
Deprecated. |
Object |
getContextObj()
Deprecated. |
Properties |
getContextProperties()
Deprecated. |
Properties |
getFormData()
Deprecated. |
abstract HTMLTemplate |
getHTMLTemplate()
Deprecated. |
Vector |
getLanguagePreferences()
Deprecated. |
Locale |
getLocale()
Deprecated. |
Properties |
getQueryData()
Deprecated. |
Vector |
getResponseExceptions()
Deprecated. |
Vector |
getResponseFooters()
Deprecated. |
Vector |
getResponseHeaders()
Deprecated. |
Vector |
getResponseMessages()
Deprecated. |
String |
getResponseString()
Deprecated. |
String |
getServiceName()
Deprecated. |
HTTPState |
getState()
Deprecated. |
int |
getStatus()
Deprecated. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Deprecated. |
void |
setContextAction(String a_ContextAction)
Deprecated. |
void |
setContextClassName(String a_ContextClassName)
Deprecated. |
void |
setContextObj(Object a_ContextObj)
Deprecated. |
void |
setContextProperties(Properties a_ContextProperties)
Deprecated. |
void |
setFormData(Properties a_FormData)
Deprecated. |
void |
setLanguagePreferences(HTTPRequest request)
Deprecated. |
void |
setLanguagePreferences(String languagePrefStr)
Deprecated. |
void |
setLanguagePreferences(Vector a_LanguagePreferences)
Deprecated. |
void |
setLocale(Locale a_Locale)
Deprecated. |
void |
setQueryData(Properties a_QueryData)
Deprecated. |
void |
setResponseExceptions(Vector a_ResponseExceptions)
Deprecated. |
void |
setResponseFooters(Vector a_ResponseFooters)
Deprecated. |
void |
setResponseHeaders(Vector a_ResponseHeaders)
Deprecated. |
void |
setResponseMessages(Vector a_ResponseMessages)
Deprecated. |
void |
setResponseString(String a_ResponseString)
Deprecated. |
void |
setServiceName(String a_ServiceName)
Deprecated. |
void |
setState(HTTPState a_State)
Deprecated. |
void |
setStatus(int a_Status)
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 RESOURCE
private static final String CLASSNAME
private Vector languagePreferences
private String serviceName
private Locale locale
private HTTPState theState
private ApplicationContext applicationContext
protected static boolean VERBOSE
Constructor Detail |
public AbstractHTMLTemplateFactory() throws UnableToLoadServiceProperties
UnableToLoadServiceProperties
Method Detail |
public Vector getLanguagePreferences()
public void setLanguagePreferences(Vector a_LanguagePreferences)
a_LanguagePreferences
- public String getServiceName()
public void setServiceName(String a_ServiceName)
a_ServiceName
- public Locale getLocale()
public void setLocale(Locale a_Locale)
a_Locale
- public HTTPState getState()
public void setState(HTTPState a_State)
a_State
- public abstract HTMLTemplate getHTMLTemplate() throws WTException
This method must be overriden by a concrete subclass.
Supported API: true
WTException
public void setLanguagePreferences(String languagePrefStr)
languagePrefStr
- public void setLanguagePreferences(HTTPRequest request)
request
- public void copyContextFrom(ContextHolder contextHolder)
contextHolder
- public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
public String getContextAction()
getContextAction
in interface ContextHolder
public void setContextAction(String a_ContextAction)
setContextAction
in interface ContextHolder
a_ContextAction
- public Object getContextObj()
getContextObj
in interface ContextHolder
public void setContextObj(Object a_ContextObj)
setContextObj
in interface ContextHolder
a_ContextObj
- public String getContextClassName()
getContextClassName
in interface ContextHolder
public void setContextClassName(String a_ContextClassName)
setContextClassName
in interface ContextHolder
a_ContextClassName
- public Properties getContextProperties()
getContextProperties
in interface ContextHolder
public void setContextProperties(Properties a_ContextProperties)
setContextProperties
in interface ContextHolder
a_ContextProperties
- public Vector getResponseExceptions()
getResponseExceptions
in interface ContextHolder
public void setResponseExceptions(Vector a_ResponseExceptions)
setResponseExceptions
in interface ContextHolder
a_ResponseExceptions
- public Vector getResponseFooters()
getResponseFooters
in interface ContextHolder
public void setResponseFooters(Vector a_ResponseFooters)
setResponseFooters
in interface ContextHolder
a_ResponseFooters
- public Vector getResponseHeaders()
getResponseHeaders
in interface ContextHolder
public void setResponseHeaders(Vector a_ResponseHeaders)
setResponseHeaders
in interface ContextHolder
a_ResponseHeaders
- public Vector getResponseMessages()
getResponseMessages
in interface ContextHolder
public void setResponseMessages(Vector a_ResponseMessages)
setResponseMessages
in interface ContextHolder
a_ResponseMessages
- public String getResponseString()
getResponseString
in interface ContextHolder
public void setResponseString(String a_ResponseString)
setResponseString
in interface ContextHolder
a_ResponseString
- public int getStatus()
getStatus
in interface ContextHolder
public void setStatus(int a_Status)
setStatus
in interface ContextHolder
a_Status
- public Properties getFormData()
getFormData
in interface ContextHolder
public void setFormData(Properties a_FormData)
setFormData
in interface ContextHolder
a_FormData
- public Properties getQueryData()
getQueryData
in interface ContextHolder
public void setQueryData(Properties a_QueryData)
setQueryData
in interface ContextHolder
a_QueryData
- public void addToResponseExceptions(Exception newException)
ContextHolder
showResponseExceptions
Supported API: true
addToResponseExceptions
in interface ContextHolder
newException
- public void addToResponseMessages(LocalizableMessage newMessage)
ContextHolder
showResponseMessages
Supported API: true
addToResponseMessages
in interface ContextHolder
newMessage
- public void addToResponseHeaders(LocalizableMessage newHeader)
ContextHolder
showResponseHeaders
Supported API: true
addToResponseHeaders
in interface ContextHolder
newHeader
- public void addToResponseFooters(LocalizableMessage newFooter)
ContextHolder
showResponseFooters
Supported API: true
addToResponseFooters
in interface ContextHolder
newFooter
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |