infoservice
Class InfoServiceCommands.HTTPResponseGetter
java.lang.Object
infoservice.InfoServiceCommands.HTTPResponseGetter
- Enclosing class:
- InfoServiceCommands
private abstract class InfoServiceCommands.HTTPResponseGetter
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
InfoServiceCommands.HTTPResponseGetter
public InfoServiceCommands.HTTPResponseGetter()
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.