public class BESThreddsDispatchHandler extends java.lang.Object implements DispatchHandler
| Constructor and Description |
|---|
BESThreddsDispatchHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when the servlet is shutdown.
|
long |
getLastModified(javax.servlet.http.HttpServletRequest req)
Since the user can modify the THREDDS catalogs without
changing the underlying data source, AND we can't ask the THREDDS
library to tell us about the last modified times of the catalog, AND we
don't know which time to return (catalog modified time, OR dataset
modified time) we punt and return -1.
|
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(DispatchServlet s,
org.jdom.Element config) |
void |
init(javax.servlet.http.HttpServlet s,
org.jdom.Element config)
Since a constructor cannot be defined for an interface there needs to
be a way to initialize the objects state.
|
boolean |
requestCanBeHandled(javax.servlet.http.HttpServletRequest request) |
public void init(javax.servlet.http.HttpServlet s,
org.jdom.Element config)
throws java.lang.Exception
DispatchHandlerinit in interface DispatchHandlers - This should be the IsoDispatchHandler that creates the
instance of IsoDispatchHandler that is being intialized.config - A JDOM Element objct containing the XML Element that
announced which implementation of IsoDispatchHandler to use. It may (or
may not) contain additional confguration information.java.lang.Exception - When the bad things happen.DispatchServletpublic void init(DispatchServlet s, org.jdom.Element config) throws java.lang.Exception
java.lang.Exceptionpublic boolean requestCanBeHandled(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
requestCanBeHandled in interface DispatchHandlerrequest - The request to be handled.java.lang.Exception - When the bad things happen.public void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
handleRequest in interface DispatchHandlerrequest - The request to be handled.response - The response object into which the response information
will be placed.java.lang.Exception - When the bad things happen.public long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in interface DispatchHandlerreq - The request for which to get the last modified time.HttpServletpublic void destroy()
DispatchHandlerdestroy in interface DispatchHandler