public class MetadataVocabServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
MetadataVocabServlet()
Constructor for the MetadataServlet object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MetadataVocabReloadListener listener)
Registers a Listener to be notified of MetadataVocabReloadEvents.
|
void |
destroy()
Shut down sequence.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Standard doPost method forwards to doGet
|
static java.lang.String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log
files and output to standout:
|
void |
init(javax.servlet.ServletConfig config)
The standard
HttpServlet init method, called only when the
servlet is first loaded. |
void |
loadVocabs()
Load/reload a vocab instance (invoked by newVocabsChecker when it detects
that the base loader file timestamp has changed)
|
void |
removeListener(MetadataVocabReloadListener listener)
Description of the Method
|
void |
setDebug(boolean db)
Sets the debug attribute of the DDSServlet object
|
static void |
synchWithCollectionManager(javax.servlet.ServletContext context)
Grab the MetadataVocab and RepositoryManager from the servlet context, and
if both exist, invoke the synchronization of the CM "enabled" states with
their corresponding vocabulary "display" states.
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic MetadataVocabServlet()
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
HttpServlet init method, called only when the
servlet is first loaded.init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - javax.servlet.ServletExceptionpublic void loadVocabs()
public static void synchWithCollectionManager(javax.servlet.ServletContext context)
context - public void addListener(MetadataVocabReloadListener listener)
listener - The feature to be added to the Listener attributepublic void removeListener(MetadataVocabReloadListener listener)
listener - Description of the Parameterpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletrequest - response - javax.servlet.ServletExceptionjava.io.IOExceptionpublic static java.lang.String getDateStamp()
public final void setDebug(boolean db)
db - The new debug value