|
|||||||||
| 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
org.hd.d.pg2k.webSvr.threeD.DataServlet
public final class DataServlet
3D Walkthrough data servlet. Supports 3D walkthrough app by servicing its simple, small, incremental data requests.
All requests are GET requests.
Also contains static client-side send/receive code to keep everything in one place.
| Field Summary | |
|---|---|
static java.lang.String |
DSVNAME_HTTPFAIL
General stats event name: failures handling input HTTP requests. |
static java.lang.String |
DSVNAME_HTTPREJOP
General stats event name: inbound HTTP request rejected by request op-code. |
static java.lang.String |
DSVNAME_HTTPREQUEST
General stats event name: inbound HTTP request. |
private WebUtils.ServletLoggerWithFallback |
logger
Our logger which falls back to System.out if servlet log not available; never null. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
private StatsLogger.StatsConfig |
statsIDDSV
The stats set to which we log general tunnel servlet stats. |
private static DataSourceBean.AEPLinkedKey |
WTKey
Key for 3DWT-linked data in DataSourceBean. |
| Constructor Summary | |
|---|---|
DataServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Unhook from servlet logger. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Respond to a GET request from 3DWT clients. |
private static Tuple.Pair<LightweightMetaDataFetchInterface.GalleryBasicMetaData,java.util.List<Name.ExhibitFull>> |
getData(DataSourceBean dsb)
Get the filtered data associated with the current DataSourceBean; never null. |
private static DataSourceBean |
getDataSourceBean(javax.servlet.ServletContext ctxt,
javax.servlet.http.HttpServletRequest request)
Get singleton (per-servlet-context) data pipeline/cache instance. |
void |
init(javax.servlet.ServletConfig servletConfig)
Hook into servlet logger. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final WebUtils.ServletLoggerWithFallback logger
private final StatsLogger.StatsConfig statsIDDSV
public static final java.lang.String DSVNAME_HTTPREQUEST
public static final java.lang.String DSVNAME_HTTPFAIL
public static final java.lang.String DSVNAME_HTTPREJOP
private static final DataSourceBean.AEPLinkedKey WTKey
private static final long serialVersionUID
| Constructor Detail |
|---|
public DataServlet()
| Method Detail |
|---|
public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
private static DataSourceBean getDataSourceBean(javax.servlet.ServletContext ctxt,
javax.servlet.http.HttpServletRequest request)
This does not cache its return value.
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
doGet in class javax.servlet.http.HttpServletjava.io.IOException - if an input/output error occurs
private static Tuple.Pair<LightweightMetaDataFetchInterface.GalleryBasicMetaData,java.util.List<Name.ExhibitFull>> getData(DataSourceBean dsb)
throws java.io.IOException
This call should always be very fast except when doing the initial filtering/construction of the exhibit list when there would be a danger of races and redundant resource usage, so we serialise calls to eliminate this possibility.
java.io.IOException
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||