com.ibm.workflow.servlet.client
Interface ApplicationContext

All Known Subinterfaces:
SessionContext

public interface ApplicationContext


Method Summary
 java.lang.String formatDate(java.util.Date date)
           
 java.lang.String formatTime(java.util.Date date)
           
 BuiltinHandler getBuiltinHandler()
          This method allows to access the builtin command handler.
 Config getConfig()
          This method allows to access the Web Client's configuration.
 java.lang.String getDocBase()
          Deprecated. Use getDocumentRoot instead.
 java.lang.String getDocumentRoot()
          Query the Web Client's document root directory.
 java.lang.String getHTMLDir()
          Deprecated. Use getRootURI instead.
 java.lang.String getJavaApiVersionInfo()
           
 java.lang.String getRealPath(java.lang.String file)
           
 java.lang.String getRootURI()
          Query the Web Client's root URI.
 java.lang.String getServerInfo()
           
 java.lang.String getServletName()
          Query the Web Client's servlet name.
 java.lang.String getServletPath()
           
 java.lang.String getServletVersion()
           
 java.lang.String getTriggerTagFor(int list, RequestContext context)
           
 java.lang.String getURL(java.lang.String file)
          Convert a URL relative to the servlet's root URI.
 void log(java.lang.String logEntry, boolean log)
           
 void log(java.lang.String logEntry, java.lang.Throwable xcpt)
           
 

Method Detail

getServerInfo

public java.lang.String getServerInfo()

getServletVersion

public java.lang.String getServletVersion()

getJavaApiVersionInfo

public java.lang.String getJavaApiVersionInfo()

getTriggerTagFor

public java.lang.String getTriggerTagFor(int list,
                                         RequestContext context)
                                  throws FmcException

getConfig

public Config getConfig()
This method allows to access the Web Client's configuration.
Returns:
The configuration

getBuiltinHandler

public BuiltinHandler getBuiltinHandler()
This method allows to access the builtin command handler.
Returns:
The builtin command handler

log

public void log(java.lang.String logEntry,
                java.lang.Throwable xcpt)

log

public void log(java.lang.String logEntry,
                boolean log)

getURL

public java.lang.String getURL(java.lang.String file)
Convert a URL relative to the servlet's root URI. to an absolute URL. For example,
context.getURL("{_HTMLDir_}/images/myImage.gif");
might result in
/MQWFClient/images/myImage.gif
Parameters:
file - A relative URL.
Returns:
An absolute URL.

getHTMLDir

public java.lang.String getHTMLDir()
Deprecated. Use getRootURI instead.

Query the Web Client's root URI.
Returns:
The root URI.

getRootURI

public java.lang.String getRootURI()
Query the Web Client's root URI.
Returns:
The root URI.

getDocBase

public java.lang.String getDocBase()
Deprecated. Use getDocumentRoot instead.

Query the Web Client's document root directory.
Returns:
The document root directory.

getDocumentRoot

public java.lang.String getDocumentRoot()
Query the Web Client's document root directory.
Returns:
The document root directory.

getRealPath

public java.lang.String getRealPath(java.lang.String file)

getServletName

public java.lang.String getServletName()
Query the Web Client's servlet name. This is the name specified when configuring the servlet in your Web Server's servlet container. Always use this string instead of a hard-coded servlet name.
Returns:
The name of the servlet.

getServletPath

public java.lang.String getServletPath()

formatDate

public java.lang.String formatDate(java.util.Date date)

formatTime

public java.lang.String formatTime(java.util.Date date)


© Copyright IBM Corporation 1999, 2001. All Rights Reserved.