|
||||||||||
| 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
|
+--edu.ucsb.adl.middleware.CollectionAvailabilityServlet
Servlet that allows a collection to be enabled or disabled. The
servlet is invoked by an HTTP GET request containing two
URL-encoded parameters: op, the operation to perform,
which must be "enable" or "disable"; and
collection, the name of a collection. If the URL of
this servlet is S, then an example of a complete URL might
be:
S?op=enable&collection=adl_catalog
The successful HTTP status code is 200 (OK). Error status codes
include 400 (bad request) and 500 (internal server error).
$Log: CollectionAvailabilityServlet.java,v $
Revision 1.3 2006/06/21 18:07:58 gjanee
To make web browsers a little happier, servlets that formerly
returned HTTP status code 204 (no content) now return status code
200 (OK) and return the plain text "DONE\n".
Revision 1.2 2004/03/02 22:01:48 gjanee
If the middleware_configuration_file servlet
initialization parameter is not available, we now look for it as a
context-wide initialization parameter.
Revision 1.1 2002/09/26 04:14:22 gjanee
Initial revision
| Constructor Summary | |
CollectionAvailabilityServlet()
Creates a CollectionAvailabilityServlet. |
|
| Method Summary | |
void |
destroy()
Frees all resources held by the servlet. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs the HTTP GET service described above. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, 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 CollectionAvailabilityServlet()
CollectionAvailabilityServlet.
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - Must contain the following initialization parameter:
middleware_configuration_file, the filename of an
ADL middleware configuration file. If the filename is not
absolute, it is interpreted relative to the middleware web
application directory.
javax.servlet.UnavailableException - If the initialization fails.
javax.servlet.ServletException
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
doGet in class javax.servlet.http.HttpServletrequest - The HTTP request.response - The HTTP response.
java.io.IOException - On any I/O error.public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||