Package dap4.d4ts
Class D4TSServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- dap4.servlet.DapController
-
- dap4.d4ts.D4TSServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class D4TSServlet extends dap4.servlet.DapController- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<FrontPage.Root>defaultrootsprotected static StringRESOURCEPATH
-
Constructor Summary
Constructors Constructor Description D4TSServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCapabilities(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt)protected voiddoFavicon(String icopath, dap4.core.util.DapContext cxt)protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)longgetBinaryWriteLimit()protected FrontPagegetFrontPage(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt)Isolate front page builder so we can override if desired for testing.StringgetResourcePath(dap4.servlet.DapRequest drq, String location)StringgetServletID()voidinitialize()-
Methods inherited from class dap4.servlet.DapController
addCommonHeaders, doData, doDMR, doDSR, getCache, getRequestState, handleRequest, init, printDMR, senderror, setCache
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
RESOURCEPATH
protected static final String RESOURCEPATH
- See Also:
- Constant Field Values
-
defaultroots
protected List<FrontPage.Root> defaultroots
-
-
Method Detail
-
initialize
public void initialize()
- Overrides:
initializein classdap4.servlet.DapController
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doFavicon
protected void doFavicon(String icopath, dap4.core.util.DapContext cxt) throws IOException
- Specified by:
doFaviconin classdap4.servlet.DapController- Throws:
IOException
-
doCapabilities
protected void doCapabilities(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt) throws IOException- Specified by:
doCapabilitiesin classdap4.servlet.DapController- Throws:
IOException
-
getResourcePath
public String getResourcePath(dap4.servlet.DapRequest drq, String location) throws dap4.core.util.DapException
- Specified by:
getResourcePathin classdap4.servlet.DapController- Throws:
dap4.core.util.DapException
-
getBinaryWriteLimit
public long getBinaryWriteLimit()
- Specified by:
getBinaryWriteLimitin classdap4.servlet.DapController
-
getServletID
public String getServletID()
- Specified by:
getServletIDin classdap4.servlet.DapController
-
getFrontPage
protected FrontPage getFrontPage(dap4.servlet.DapRequest drq, dap4.core.util.DapContext cxt) throws dap4.core.util.DapException
Isolate front page builder so we can override if desired for testing.- Parameters:
drq-cxt-- Returns:
- FrontPage object
- Throws:
dap4.core.util.DapException
-
-