public class ElementImplContext
extends java.lang.Object
Constructor and Description |
---|
ElementImplContext(java.util.Map options,
TMLContext context,
Element.Status tagContext)
Constructor of the context.
|
Modifier and Type | Method and Description |
---|---|
void |
addWarning(java.lang.String text)
Used to put out a warning, displayable via tml:warnings tag.
|
void |
appendResult(java.lang.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.
|
java.util.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.
|
java.util.Map |
getOptions()
Returns the options passed to this tml:element via tml:option tags as key/value pairs.
|
java.io.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".
|
javax.servlet.http.HttpServletResponse |
getResponse()
Retrieves the HTTP servlet response object of the current request.
|
java.lang.StringBuffer |
getResult()
Gets the output result of the current tag as StringBuffer.
|
BaseTagStatus |
getTagById(java.lang.String id)
Retrieves the tag object of the tml tag with the given id.
|
BaseTagStatus |
getTagContext()
Retrieves the tml tag object of the tml element tag.
|
TMLContext |
getTMLContext()
Deprecated.
Use
getContext() to retrieve the server API interface object |
java.lang.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(java.util.Map options, TMLContext context, 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 java.util.Map getOptions()
public java.lang.StringBuffer getResult()
public void appendResult(java.lang.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 BaseTagStatus getTagContext()
public void addWarning(java.lang.String text)
text
- Text of the warning.public java.util.Collection getDatabaseKeys()
public Context getMainContext() throws de.innovationgate.webgate.api.WGAPIException
de.innovationgate.webgate.api.WGAPIException
public BaseTagStatus getTagById(java.lang.String id)
id
- The id of the tag to retrievepublic java.lang.String getWGPPath()
public void clearResult()
public javax.servlet.jsp.PageContext getPageContext()
public java.io.OutputStream getOutputStream()
public javax.servlet.http.HttpServletResponse getResponse()
public org.apache.log4j.Logger getLog()