|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
info.aduna.gee.publication.servlets.ServerZpadServlet
public class ServerZpadServlet
| Field Summary | |
|---|---|
protected static DatabasePreloader |
_databasePreloader
|
protected static Thread |
_transientThread
|
static MultiLevelExpiringCache |
cachedSzAdvanceds
|
static MultiLevelExpiringCache |
cachedSzCalendars
|
static MultiLevelExpiringCache |
cachedSzFinds
|
static MultiLevelExpiringCache |
cachedSzInCoverHierMenus
|
static MultiLevelExpiringCache |
cachedSzInCoverJousts
|
static MultiLevelExpiringCache |
cachedSzThemes
|
static MultiLevelExpiringCache |
cachedSzZpadRunnings
For efficiency, cache - SzZpadRunning.html - SzThemes.html - SzCalendar.html - SzFind.html - SzNotFound.html - SzAdvanced.html Refreshed by TemplateCache! Only because we use an overall cache size (see refresh()), it is acceptable to have the host as the first key argument in the MultiLevelExpiringCache. |
static Map |
threadToSession
|
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Fields inherited from interface info.aduna.gee.publication.UserTypes |
|---|
API_BIT, COVER_BUILDER_BIT, ENGINE_BIT, GUEST_BITS, OWNER_BITS, PRO_BITS, PROUSER_BIT, SERVER_BIT, SHOP_BIT, SHOW_BIT, SHOW_BITS, VISITOR_BIT |
| Constructor Summary | |
|---|---|
ServerZpadServlet()
|
|
| Method Summary | |
|---|---|
protected static void |
_setDaemonThreads(ServerZpadServlet servlet)
|
protected String |
_showURL(javax.servlet.http.HttpServletRequest request,
String host,
ZPadBrowser zpadBrowser,
Section theSection,
String theUser,
String theLanguage,
String theCover,
HashMap stubsMap,
javax.servlet.http.HttpSession theSession)
Show the URL of an Entry. |
protected static void |
_touchTransient(String host,
String theUser,
long tnow)
Note an access time for a user (compare to UNIX' touch). |
protected static void |
_touchTransient(ZPadBrowser zpadBrowser)
Note an access time for all channels behind a browser (compare to UNIX' touch). |
static Section |
addSection(ZPadBrowser zpadBrowser,
String host,
String theUser,
String theLanguage,
String theCover,
String theSectionIndicator,
javax.servlet.http.HttpSession theSession)
|
static ZPadBrowser |
addZPadBrowser(javax.servlet.http.HttpServletRequest request,
String host,
String theUser,
String theLanguage,
String theCover,
javax.servlet.http.HttpSession theSession)
Get (and if needed: add first) a ZPadBrowser |
static void |
checkTransient(ZPadBrowser zpadBrowser)
A zpadBrowser is removed from the browser cache. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static void |
forgetLanguage()
Useful for the side-effect only: forget the language for the current Thread. |
static String |
getFramesetURL(javax.servlet.http.HttpServletRequest request,
String cover,
String framename)
Get the URL of the frameset to use. |
static String |
getInitState(javax.servlet.http.HttpServletRequest request,
String user,
String cover)
Get the initial state. |
static String |
getLanguage(javax.servlet.http.HttpServletRequest request)
|
static String |
getLanguage(String serverPath,
String host,
String language)
Useful for the side-effect only: set the language for the current Thread. |
String |
getServletInfo()
|
void |
init(javax.servlet.ServletConfig config)
|
static void |
refresh(String host)
|
static void |
refresh(String host,
String user)
Forget everything about a user. |
static void |
refresh(String host,
SzState ulcState,
javax.servlet.http.HttpSession session)
ZPadBrowser identified by state requests for a refresh of all existing cached pages. |
static void |
reload(String serverPath,
String host,
String user,
String fileName,
WStorable newOne)
Reload an object stored in a (real!) user's directory. |
static void |
remove(String host,
String user)
Remove everything (..) of a user. |
void |
run()
The run for multiple Daemon tasks of the server. |
static void |
sendZpadIndex(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ulcStateString)
Send a list of all pages in a Zpad. |
static String |
setFrameAndPage(javax.servlet.http.HttpServletRequest request,
String host,
ZPadBrowser zpadBrowser,
Section theSection,
String theUser,
String theLanguage,
String theCover,
HashMap stubsMap,
String newSectionIndicator,
int newPage,
javax.servlet.http.HttpSession theSession,
int entryId)
|
String |
toString()
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Map threadToSession
protected static Thread _transientThread
protected static DatabasePreloader _databasePreloader
public static MultiLevelExpiringCache cachedSzZpadRunnings
public static MultiLevelExpiringCache cachedSzThemes
public static MultiLevelExpiringCache cachedSzInCoverJousts
public static MultiLevelExpiringCache cachedSzInCoverHierMenus
public static MultiLevelExpiringCache cachedSzCalendars
public static MultiLevelExpiringCache cachedSzFinds
public static MultiLevelExpiringCache cachedSzAdvanceds
| Constructor Detail |
|---|
public ServerZpadServlet()
| Method Detail |
|---|
protected static void _setDaemonThreads(ServerZpadServlet servlet)
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static void refresh(String host)
public static String getFramesetURL(javax.servlet.http.HttpServletRequest request,
String cover,
String framename)
public String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletException
IOExceptionpublic String toString()
toString in class Object
public static String getInitState(javax.servlet.http.HttpServletRequest request,
String user,
String cover)
public static void forgetLanguage()
public static String getLanguage(String serverPath,
String host,
String language)
public static String getLanguage(javax.servlet.http.HttpServletRequest request)
public static ZPadBrowser addZPadBrowser(javax.servlet.http.HttpServletRequest request,
String host,
String theUser,
String theLanguage,
String theCover,
javax.servlet.http.HttpSession theSession)
public static Section addSection(ZPadBrowser zpadBrowser,
String host,
String theUser,
String theLanguage,
String theCover,
String theSectionIndicator,
javax.servlet.http.HttpSession theSession)
public static String setFrameAndPage(javax.servlet.http.HttpServletRequest request,
String host,
ZPadBrowser zpadBrowser,
Section theSection,
String theUser,
String theLanguage,
String theCover,
HashMap stubsMap,
String newSectionIndicator,
int newPage,
javax.servlet.http.HttpSession theSession,
int entryId)
protected String _showURL(javax.servlet.http.HttpServletRequest request,
String host,
ZPadBrowser zpadBrowser,
Section theSection,
String theUser,
String theLanguage,
String theCover,
HashMap stubsMap,
javax.servlet.http.HttpSession theSession)
public void run()
run in interface Runnable
public static void refresh(String host,
SzState ulcState,
javax.servlet.http.HttpSession session)
public static void refresh(String host,
String user)
public static void reload(String serverPath,
String host,
String user,
String fileName,
WStorable newOne)
public static void remove(String host,
String user)
public static void sendZpadIndex(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String ulcStateString)
throws IOException
IOExceptionprotected static void _touchTransient(ZPadBrowser zpadBrowser)
protected static void _touchTransient(String host,
String theUser,
long tnow)
public static void checkTransient(ZPadBrowser zpadBrowser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||