public class StaticCatalogDispatch extends java.lang.Object implements DispatchHandler
| Constructor and Description |
|---|
StaticCatalogDispatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called when the servlet is shutdown.
|
java.lang.String |
getCatalogKeyFromRelativeUrl(java.lang.String relativeUrl) |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element configuration)
Since a constructor cannot be defined for an interface there needs to
be a way to initialize the objects state.
|
void |
init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element configuration,
BesApi besApi) |
boolean |
requestCanBeHandled(javax.servlet.http.HttpServletRequest request) |
void |
sendThreddsCatalogResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Returns the appropriate THREDDS catalog response.
|
public java.lang.String getCatalogKeyFromRelativeUrl(java.lang.String relativeUrl)
throws java.io.IOException
java.io.IOExceptionpublic void sendThreddsCatalogResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
request - response - java.lang.Exceptionpublic void init(javax.servlet.http.HttpServlet servlet,
org.jdom.Element configuration)
throws java.lang.Exception
DispatchHandlerinit in interface DispatchHandlerservlet - This should be the IsoDispatchHandler that creates the
instance of IsoDispatchHandler that is being intialized.configuration - 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(javax.servlet.http.HttpServlet servlet,
org.jdom.Element configuration,
BesApi besApi)
throws java.lang.Exception
init in interface DispatchHandlerjava.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 we need to get a last modified date.HttpServletpublic void destroy()
DispatchHandlerdestroy in interface DispatchHandler