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, service
public 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.Servlet
init
in class javax.servlet.GenericServlet
config
- javax.servlet.ServletException
public 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.Servlet
destroy
in class javax.servlet.GenericServlet
public 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.HttpServlet
request
- response
- javax.servlet.ServletException
java.io.IOException
public static java.lang.String getDateStamp()
public final void setDebug(boolean db)
db
- The new debug value