public class DispatchServlet extends DispatchServlet
| Constructor and Description |
|---|
DispatchServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
***********************************************************************
Handles incoming requests from clients.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.util.regex.Pattern |
getDispatchRegex() |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req)
Gets the last modified date of the requested resource.
|
void |
init()
************************************************************************
Intitializes the servlet.
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This override checks to see if we are in secure mode and if not send a forbidden error.
|
destroydoDelete, doHead, doOptions, doPut, doTrace, servicepublic void init()
DispatchServletinit in class DispatchServletpublic java.util.regex.Pattern getDispatchRegex()
protected long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in class DispatchServletreq - The current requestpublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
DispatchServletOLFS. It uses
the methods processOpendapURL to extract the OPeNDAP URL
information from the incoming client request. This OPeNDAP URL information
is cached and made accessible through get and set methods.
After processOpendapURL is called loadIniFile()
is called to load configuration information from a .ini file,
If the standard behaviour of the servlet (extracting the OPeNDAP URL
information from the client request, or loading the .ini file) then
you should overload processOpendapURL and loadIniFile()
. We don't recommend overloading doGet() beacuse
the logic contained there may change in our core and cause your server
to behave unpredictably when future releases are installed.doGet in class DispatchServletrequest - The client's HttpServletRequest request
object.response - The server's HttpServletResponse response
object.ReqInfopublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doPost in class DispatchServletrequest - .response - .protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletreq - Same as for javax.servlet.http.HttpServlet.service()resp - Same as for javax.servlet.http.HttpServlet.service()javax.servlet.ServletException - Same as for javax.servlet.http.HttpServlet.service()java.io.IOException - Same as for javax.servlet.http.HttpServlet.service()