infoservice
Class InfoServiceCommands.HTTPResponseGetter

java.lang.Object
  extended by infoservice.InfoServiceCommands.HTTPResponseGetter
Enclosing class:
InfoServiceCommands

private abstract class InfoServiceCommands.HTTPResponseGetter
extends java.lang.Object


Field Summary
private static long CACHE_MS
           
private static long CACHE_SERIALS_MS
           
private  HttpResponseStructure m_cachedCompressedResponse
           
private  HttpResponseStructure m_cachedResponse
           
private  HttpResponseStructure m_cachedSerialsCompressedResponse
           
private  HttpResponseStructure m_cachedSerialsResponse
           
private  long m_lastSerialsUpdate
           
private  long m_lastUpdate
           
private  java.lang.Object SYNC_CACHE
           
private  java.lang.Object SYNC_CACHE_SERIALS
           
 
Constructor Summary
InfoServiceCommands.HTTPResponseGetter()
           
 
Method Summary
protected  HttpResponseStructure fetchResponse(int a_supportedEncodings)
           
 HttpResponseStructure fetchResponse(int a_supportedEncodings, boolean a_bSerialsOnly)
          Sends the complete list of all known db entries to the client.
protected  HttpResponseStructure fetchSerialsResponse(int a_supportedEncodings)
           
abstract  java.lang.Class getDatabaseClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_SERIALS_MS

private static final long CACHE_SERIALS_MS
See Also:
Constant Field Values

CACHE_MS

private static final long CACHE_MS
See Also:
Constant Field Values

m_cachedSerialsResponse

private HttpResponseStructure m_cachedSerialsResponse

m_cachedSerialsCompressedResponse

private HttpResponseStructure m_cachedSerialsCompressedResponse

SYNC_CACHE_SERIALS

private final java.lang.Object SYNC_CACHE_SERIALS

m_lastSerialsUpdate

private long m_lastSerialsUpdate

m_cachedResponse

private HttpResponseStructure m_cachedResponse

m_cachedCompressedResponse

private HttpResponseStructure m_cachedCompressedResponse

SYNC_CACHE

private final java.lang.Object SYNC_CACHE

m_lastUpdate

private long m_lastUpdate
Constructor Detail

InfoServiceCommands.HTTPResponseGetter

public InfoServiceCommands.HTTPResponseGetter()
Method Detail

getDatabaseClass

public abstract java.lang.Class getDatabaseClass()

fetchResponse

protected HttpResponseStructure fetchResponse(int a_supportedEncodings)

fetchSerialsResponse

protected HttpResponseStructure fetchSerialsResponse(int a_supportedEncodings)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

fetchResponse

public HttpResponseStructure fetchResponse(int a_supportedEncodings,
                                           boolean a_bSerialsOnly)
Sends the complete list of all known db entries to the client.

Parameters:
a_supportedEncodings - defines the encoding supported by the client (deflate, gzip,...)
a_bSerialsOnly - only return a list with db entry serial numbers so that the caller may decide which db entries have changed since the last request
Returns:
The HTTP response for the client.