info.aduna.gee.publication.servlets.util
Class ResponseUtil

java.lang.Object
  extended by info.aduna.gee.publication.servlets.util.ResponseUtil

public class ResponseUtil
extends Object

...


Constructor Summary
ResponseUtil()
           
 
Method Summary
static long estimatedNumberOfEntries(long datSize)
          Under all circumstances, we should use the same estimation for the number of Entries given a total size of the Zpad database.
static long getUserLastModified(javax.servlet.http.HttpServletRequest request, UserInfo userInfo)
          The user is (his *characteristics* are) last modified: * At the "touch" time of his directory (see changeCover) * At the date of his zpad.cat (if any)
static long getZpadLastModified(javax.servlet.http.HttpServletRequest request, UserInfo userInfo)
          The user's Zpad is last modified iff his zpad.dat has changed.
static void sendResponsePacket(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String responseInPackage, long lastModified)
           
static void sendResponseTemplate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String templateName, UserInfo userInfo, CoverInfo coverInfo, HashMap stubsMap, long lastModified)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseUtil

public ResponseUtil()
Method Detail

estimatedNumberOfEntries

public static long estimatedNumberOfEntries(long datSize)
Under all circumstances, we should use the same estimation for the number of Entries given a total size of the Zpad database.

Parameters:
datSize - the Zpad database size.
Returns:
the estimated number of Entries.

sendResponseTemplate

public static void sendResponseTemplate(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        String templateName,
                                        UserInfo userInfo,
                                        CoverInfo coverInfo,
                                        HashMap stubsMap,
                                        long lastModified)
                                 throws IOException
Throws:
IOException

sendResponsePacket

public static void sendResponsePacket(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      String responseInPackage,
                                      long lastModified)
                               throws IOException
Throws:
IOException

getUserLastModified

public static long getUserLastModified(javax.servlet.http.HttpServletRequest request,
                                       UserInfo userInfo)
The user is (his *characteristics* are) last modified: * At the "touch" time of his directory (see changeCover) * At the date of his zpad.cat (if any)


getZpadLastModified

public static long getZpadLastModified(javax.servlet.http.HttpServletRequest request,
                                       UserInfo userInfo)
The user's Zpad is last modified iff his zpad.dat has changed.



Copyright © 1997-2008 Aduna. All Rights Reserved.