de.innovationgate.wgpublisher.jsputils
public class JspHelper extends Object
Constructor and Description |
---|
JspHelper(PageContext pageContext)
Constructor, taking the page context.
|
Modifier and Type | Method and Description |
---|---|
String |
fullDateFormat(Date date) |
String |
fullDateTimeFormat(Date date) |
String |
fullTimeFormat(Date date) |
TMLContext |
getContextFromTag(String id)
Retrieves a TMLContext object for the context of a specified WebTML tag.
|
WGACore |
getCore()
Returns the WGA core object
|
de.innovationgate.webgate.api.WGDatabase |
getDatabase(String key)
Fetches a database by the given key, without opening it.
|
Collection |
getDatabaseKeys()
Returns the database keys of available Databases in WGA
|
WGPDispatcher |
getDispatcher()
Returns the dispatcher servlet of WGA
|
PropertyResourceBundle |
getLabels(String baseName)
Returns labels for a given language name
|
TMLContext |
getMainContext()
Returns a TMLContext object for the main context of the current request.
|
PageContext |
getPageContext()
Serves the JSP page context again
|
String |
getPublisherPath()
Returns the path to the WGAPublisher on this server, excluding any additional path information.
|
String |
getRequestPath()
Returns the complete URL to this request
|
WGAError |
getWGAError() |
boolean |
isAdminLoggedIn() |
boolean |
isBrowserInterface() |
String |
longDateFormat(Date date) |
String |
longDateTimeFormat(Date date) |
String |
longTimeFormat(Date date) |
String |
mediumDateFormat(Date date) |
String |
mediumDateTimeFormat(Date date) |
String |
mediumTimeFormat(Date date) |
String |
numberFormat(Number num) |
de.innovationgate.webgate.api.WGDatabase |
openDatabase(String key)
Opens the database with the given key.
|
de.innovationgate.webgate.api.WGDatabase |
openDatabase(de.innovationgate.webgate.api.WGDatabase db)
Opens the given database object with the domain login of the current user, or anonymous if there is none.
|
void |
setContentType(String contentType) |
String |
shortDateFormat(Date date) |
String |
shortDateTimeFormat(Date date) |
String |
shortTimeFormat(Date date) |
void |
writeContentInfo()
Writes content information script block based on the request path.
|
public JspHelper(PageContext pageContext)
public Collection getDatabaseKeys()
public WGPDispatcher getDispatcher()
public WGACore getCore()
public de.innovationgate.webgate.api.WGDatabase openDatabase(String key) throws de.innovationgate.webgate.api.WGException
key
- The database keyde.innovationgate.webgate.api.WGUnavailableException
de.innovationgate.webgate.api.WGException
public de.innovationgate.webgate.api.WGDatabase openDatabase(de.innovationgate.webgate.api.WGDatabase db) throws de.innovationgate.webgate.api.WGException
db
- The database to opende.innovationgate.webgate.api.WGException
public de.innovationgate.webgate.api.WGDatabase getDatabase(String key) throws de.innovationgate.webgate.api.WGException
key
- The database keyde.innovationgate.webgate.api.WGException
public String getRequestPath()
public String getPublisherPath()
public TMLContext getContextFromTag(String id)
id
- The ID of the WebTML tag.public TMLContext getMainContext()
public PropertyResourceBundle getLabels(String baseName)
baseName
- The language namepublic boolean isBrowserInterface()
public boolean isAdminLoggedIn()
public WGAError getWGAError()
public void setContentType(String contentType)
public void writeContentInfo() throws IOException
IOException
public PageContext getPageContext()