de.innovationgate.wgpublisher.webtml.utils
public class ElementImplContext extends Object
Constructor and Description |
---|
ElementImplContext(Map options,
TMLContext context,
de.innovationgate.wgpublisher.webtml.Element.Status tagContext)
Constructor of the context.
|
Modifier and Type | Method and Description |
---|---|
void |
addWarning(String text)
Used to put out a warning, displayable via tml:warnings tag.
|
void |
appendResult(String result)
Appends text to the current output result of the tag.
|
void |
clearResult()
Clears the current output result.
|
de.innovationgate.webgate.api.WGContent |
getContent()
Retrieves the WGAPI content object that is in the current tml context.
|
Context |
getContext()
Retrieves the WebTML context of the element tag
|
de.innovationgate.webgate.api.WGDatabase |
getDatabase()
Retrieves the WGAPI database object of the content currently in tml context.
|
Collection |
getDatabaseKeys()
Retrieves all database keys of currently active content databases in WGA.
|
de.innovationgate.webgate.api.WGDocument |
getDocument()
Retrieves the WGAPI content object that is in the current tml context.
|
org.apache.log4j.Logger |
getLog()
Retrieves the application log object, to log output to application log directly.
|
Context |
getMainContext()
The main tml context of the currently rendered tml page, i.e. the context initially requested by the calling URL.
|
Map |
getOptions()
Returns the options passed to this tml:element via tml:option tags as key/value pairs.
|
OutputStream |
getOutputStream()
Retrieves the output stream of the current request to put out binary data.
|
javax.servlet.jsp.PageContext |
getPageContext()
Retrieves the JSP page context object, that normally is available in JSP scripts as object "pageContext".
|
HttpServletResponse |
getResponse()
Retrieves the HTTP servlet response object of the current request.
|
StringBuffer |
getResult()
Gets the output result of the current tag as StringBuffer.
|
BaseTagStatus |
getTagById(String id)
Retrieves the tag object of the tml tag with the given id.
|
de.innovationgate.wgpublisher.webtml.BaseTagStatus |
getTagContext()
Retrieves the tml tag object of the tml element tag.
|
TMLContext |
getTMLContext()
Deprecated.
Use
getContext() to retrieve the server API interface object |
String |
getWGPPath()
Retrieves the URL base path, under which WGA is available, including hostname and j2ee project path.
|
void |
setContentForBody(de.innovationgate.webgate.api.WGContent content)
Changes the context of the tml:body tag for it's next iteration to the given content.
|
public ElementImplContext(Map options, TMLContext context, de.innovationgate.wgpublisher.webtml.Element.Status tagContext)
options
- Contents of option tags for this element.context
- The tml context object of this tag.tagContext
- The element tag that is currently renderedpublic TMLContext getTMLContext()
getContext()
to retrieve the server API interface objectpublic Context getContext()
public Map getOptions()
public StringBuffer getResult()
public void appendResult(String result)
result
- The text to append.public de.innovationgate.webgate.api.WGContent getContent()
public de.innovationgate.webgate.api.WGDocument getDocument()
public void setContentForBody(de.innovationgate.webgate.api.WGContent content) throws de.innovationgate.webgate.api.WGAPIException
content
- A WGAPI content objectde.innovationgate.webgate.api.WGAPIException
public de.innovationgate.webgate.api.WGDatabase getDatabase()
public de.innovationgate.wgpublisher.webtml.BaseTagStatus getTagContext()
public void addWarning(String text)
text
- Text of the warning.public Collection getDatabaseKeys()
public Context getMainContext() throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public BaseTagStatus getTagById(String id)
id
- The id of the tag to retrievepublic String getWGPPath()
public void clearResult()
public javax.servlet.jsp.PageContext getPageContext()
public OutputStream getOutputStream()
public HttpServletResponse getResponse()
public org.apache.log4j.Logger getLog()