jet.web.dhtml
Interface DHtmlAPI

All Superinterfaces:
DHTMLConstant, SimpleDHtmlAPI

public interface DHtmlAPI
extends SimpleDHtmlAPI


Field Summary
 
Fields inherited from interface jet.web.dhtml.DHTMLConstant
FLAG_DRILL, FLAG_EXPORT, FLAG_FILTER, FLAG_NAVIBAR, FLAG_NAVIGATE, FLAG_POPUP, FLAG_PRINT, FLAG_REFRESH, FLAG_RESET, FLAG_SAVE, FLAG_SEARCH, FLAG_SHOWMSTRPT, FLAG_SKIN, FLAG_SORT, FLAG_STYLE, FLAG_TOC, FLAG_TOOLBAR, FLAG_UNREDO, FLAG_USERBAR, FLAG_ZOOM, SCROLLAUTO, SCROLLNO, SCROLLYES
 
Method Summary
 void copyOctet(java.io.InputStream in, java.io.OutputStream out)
          Opens an input stream of octet data.
 void copyOctet(java.lang.String id, java.io.OutputStream out, java.lang.String translate)
          Outputs the content of the specified binary file to the OutputStream.
 void copyRstFile(java.lang.String id, java.io.OutputStream out)
          Copy a part result file into the byte array.
 void copyText(java.lang.String id, java.io.PrintWriter out, java.lang.String translate)
          Outputs the content of the specified text file to the PrintWriter.
 int dispatch(java.lang.String id, java.io.OutputStream sout, java.util.Hashtable params)
          Responses and processes all the requests from DHTML client.
 void doGet(HttpServletRequest request, HttpServletResponse response)
          The same as javax.servlet.http.HttpServlet doGet method.
 ResourceManager getResourceManager()
          Gets the Resource Manager.
 UserPreferenceManager getUserDHTMLPreferenceManager()
          Gets the User DHTML Preference Manager.
 java.lang.String getUserID(HttpServletRequest request)
          Gets the user session id.
 UserPreferenceManager getUserPreferenceManager()
          Gets the User Preference Manager.
 UserSession getUserSession(HttpServletRequest request)
          Gets the user session.
 void mainPage(java.lang.String id, java.io.PrintWriter out)
          Outputs the content of the DHTML default main page.
 java.io.InputStream openOctet(java.lang.String id, java.lang.String translate)
          Opens an InputStream of the specified binary file.
 void publishConnect(java.lang.String id, java.io.OutputStream out)
          Outputs the connection page.
 void publishDynamicCss(java.lang.String id, java.io.PrintWriter out)
          Outputs the dynamic css definition of current report content.
 void publishRptCss(java.lang.String id, java.io.PrintWriter out)
          Outputs the CSS definition list of current report.
 void setResourceManager(ResourceManager rmg)
          Sets the Resource Manager.
 void setSkins(java.io.File file)
          Sets the skin file path and file name.
 void setUserDHTMLPreferenceManager(UserPreferenceManager upm)
          Sets the User DHTML Preference Manager.
 void setUserPreferenceManager(UserPreferenceManager upm)
          Sets the User Preference Manager.
 void welcomePage(java.lang.String id, java.io.PrintWriter out, java.util.Hashtable params)
          Outputs the content of the DHTML default welcome page.
 
Methods inherited from interface jet.web.dhtml.SimpleDHtmlAPI
addExpiryListener, checkUser, copyOctet, copyRstFile, copyText, destroy, dispatch, expire, getAutoRefresh, getDHTMLToolkit, getHelpImagePath, getHostName, getImagePath, getJS_CSSPath, getMainPage, getOpenedReports, getPath, getRefreshInterval, getReportName, getReportScroll, getRscPath, getRscUri, getRstFileName, getRSTRemoteFullPath, getStyle, getTitle, getTitle, getURI, getUserAutoRefresh, getUserEncoding, initMainPage, isAdvanceUserEnabled, isAdvanceUserEnabled, isCreateEnabled, isCreateEnabled, isDetailReport, isDrillEnabled, isDrillEnabled, isExportEnabled, isExportEnabled, isFilterEnabled, isFilterEnabled, isFirstDetail, isIgnoreServerSetting, isLastDetail, isLocalSave, isMenuEnabled, isMenuEnabled, isNavEnabled, isNavEnabled, isNavibarVisible, isPopupMenuEnabled, isPopupMenuEnabled, isPrintEnabled, isPrintEnabled, isRefreshEnabled, isRefreshEnabled, isResetEnabled, isResetEnabled, isSaveEnabled, isSaveEnabled, isSaveResultEnabled, isSaveResultEnabled, isSearchEnabled, isSearchEnabled, isSkinEnabled, isSkinEnabled, isSortEnabled, isSortEnabled, isStyleEnabled, isStyleEnabled, isSupport, isTocEnabled, isTocEnabled, isTocGroupbyNameVisible, isTocGroupbyNameVisible, isTocVisible, isToolbarEnabled, isToolbarEnabled, isToolbarVisible, isUnredoEnabled, isUnredoEnabled, isUserbarEnabled, isUserbarEnabled, isUserbarVisible, isZoomEnabled, isZoomEnabled, mainPage, publishRptCss, setAdvanceUserEnabled, setAdvanceUserEnabled, setAutoRefresh, setContextPath, setCreateEnabled, setCreateEnabled, setCssFolder, setDebug, setDHTMLJSPPath, setDrillEnabled, setDrillEnabled, setExportEnabled, setExportEnabled, setFilterEnabled, setFilterEnabled, setHelpImagePath, setHostName, setIgnoreServerSetting, setImageFolder, setImagePath, setJS_CSSPath, setJsFolder, setMainPage, setMenuEnabled, setMenuEnabled, setNavEnabled, setNavEnabled, setNavibarVisible, setPath, setPopupMenuEnabled, setPopupMenuEnabled, setPrintEnabled, setPrintEnabled, setRefreshEnabled, setRefreshEnabled, setRefreshInterval, setReportScroll, setResetEnabled, setResetEnabled, setSaveEnabled, setSaveEnabled, setSaveResultEnabled, setSaveResultEnabled, setSearchEnabled, setSearchEnabled, setSkinEnabled, setSkinEnabled, setSkins, setSortEnabled, setSortEnabled, setStyle, setStyleEnabled, setStyleEnabled, setTitle, setTitle, setTocEnabled, setTocEnabled, setTocGroupbyNameVisible, setTocGroupbyNameVisible, setTocVisible, setToolbarEnabled, setToolbarEnabled, setToolbarVisible, setUnredoEnabled, setUnredoEnabled, setURI, setUserAgent, setUserAutoRefresh, setUserbarEnabled, setUserbarEnabled, setUserbarVisible, setZoomEnabled, setZoomEnabled, welcomePage
 

Method Detail

setResourceManager

public void setResourceManager(ResourceManager rmg)
Sets the Resource Manager.

Parameters:
rmg - the Resource Manager

getResourceManager

public ResourceManager getResourceManager()
Gets the Resource Manager.

Returns:
the Resource Manager
See Also:
ResourceManager

setUserPreferenceManager

public void setUserPreferenceManager(UserPreferenceManager upm)
Sets the User Preference Manager.

Parameters:
upm - the User Preference Manager

getUserPreferenceManager

public UserPreferenceManager getUserPreferenceManager()
Gets the User Preference Manager.

See Also:
UserPreferenceManager

setUserDHTMLPreferenceManager

public void setUserDHTMLPreferenceManager(UserPreferenceManager upm)
Sets the User DHTML Preference Manager.

Parameters:
upm - the User DHTML Preference Manager.

getUserDHTMLPreferenceManager

public UserPreferenceManager getUserDHTMLPreferenceManager()
Gets the User DHTML Preference Manager.

Returns:
the User DHTML Preference Manager

setSkins

public void setSkins(java.io.File file)
              throws java.io.IOException
Sets the skin file path and file name.

Parameters:
file - skin file path and name
java.io.IOException

publishRptCss

public void publishRptCss(java.lang.String id,
                          java.io.PrintWriter out)
                   throws java.io.IOException
Outputs the CSS definition list of current report.

Parameters:
id - the session id
out - the PrintWriter
java.io.IOException

mainPage

public void mainPage(java.lang.String id,
                     java.io.PrintWriter out)
              throws java.io.IOException,
                     RptServerException
Outputs the content of the DHTML default main page.

Parameters:
id - the session id
out - the PrintWriter
java.io.IOException
RptServerException

welcomePage

public void welcomePage(java.lang.String id,
                        java.io.PrintWriter out,
                        java.util.Hashtable params)
                 throws java.io.IOException,
                        RptServerException
Outputs the content of the DHTML default welcome page. This method must be invoked otherwise the main page will not be invoked.

Parameters:
id - the session id
out - the PrintWriter
params - parameters needed to run the report
java.io.IOException
RptServerException

dispatch

public int dispatch(java.lang.String id,
                    java.io.OutputStream sout,
                    java.util.Hashtable params)
             throws RptServerException,
                    java.io.IOException
Responses and processes all the requests from DHTML client.

Parameters:
id - the session id
sout - the OutputStream
params - client request query in hashtable type
RptServerException
java.io.IOException

copyText

public void copyText(java.lang.String id,
                     java.io.PrintWriter out,
                     java.lang.String translate)
              throws java.io.IOException
Outputs the content of the specified text file to the PrintWriter.

Parameters:
id - the session id
out - the PrintWriter
translate - the text file name
java.io.IOException

copyOctet

public void copyOctet(java.lang.String id,
                      java.io.OutputStream out,
                      java.lang.String translate)
               throws java.io.IOException
Outputs the content of the specified binary file to the OutputStream.

Parameters:
id - the session id
out - the OutputStream
translate - octet file name
java.io.IOException

copyOctet

public void copyOctet(java.io.InputStream in,
                      java.io.OutputStream out)
               throws java.io.IOException
Opens an input stream of octet data.

Parameters:
in - any octet data source as a input stream.
out - response output stream.
java.io.IOException

openOctet

public java.io.InputStream openOctet(java.lang.String id,
                                     java.lang.String translate)
                              throws java.io.IOException
Opens an InputStream of the specified binary file.

Parameters:
id - the session id
translate - the binary file name
Returns:
the InputStream
java.io.IOException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
The same as javax.servlet.http.HttpServlet doGet method.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
ServletException
java.io.IOException

publishConnect

public void publishConnect(java.lang.String id,
                           java.io.OutputStream out)
                    throws java.io.IOException
Outputs the connection page.

Parameters:
id - the session id
out - the OutputStream
java.io.IOException

publishDynamicCss

public void publishDynamicCss(java.lang.String id,
                              java.io.PrintWriter out)
                       throws java.io.IOException
Outputs the dynamic css definition of current report content.

Parameters:
id - the session id
out - the PrintWriter
java.io.IOException

copyRstFile

public void copyRstFile(java.lang.String id,
                        java.io.OutputStream out)
                 throws java.io.IOException
Copy a part result file into the byte array. This method only gets a part contents each time. You must call this method many times until it return null. For example, byte b[]; while ( (b = getRstFile(id)) != null ) { out.write(b); }

Parameters:
id - the session id
out - the OutputStream
java.io.IOException

getUserSession

public UserSession getUserSession(HttpServletRequest request)
Gets the user session.

Parameters:
request - the HttpServletRequest
Returns:
the user session
See Also:
UserSession

getUserID

public java.lang.String getUserID(HttpServletRequest request)
Gets the user session id.

Parameters:
request - the HttpServletRequest
Returns:
the user session id