|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.dlese.dpc.vocab.MetadataVocabServlet
public class MetadataVocabServlet
Provided as an intialization (and administrative) servlet for the DLESE Metadata UI system (OPML-based controlled vocabularies)
Constructor Summary | |
---|---|
MetadataVocabServlet()
Constructor for the MetadataServlet object |
Method Summary | |
---|---|
void |
addListener(MetadataVocabReloadListener listener)
Registers a Listener to be notified of MetadataVocabReloadEvents. |
void |
destroy()
Shut down sequence. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Standard doPost method forwards to doGet |
static String |
getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout: |
void |
init(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(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. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetadataVocabServlet()
Method Detail |
---|
public void init(ServletConfig config) throws ServletException
HttpServlet
init method, called only when the
servlet is first loaded.
init
in interface Servlet
init
in class GenericServlet
config
-
ServletException
public void loadVocabs()
public static void synchWithCollectionManager(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 Servlet
destroy
in class GenericServlet
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- response
-
ServletException
IOException
public static String getDateStamp()
public final void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |