|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.fcrepo.server.management.GetNextPIDServlet
public class GetNextPIDServlet
Implements the "getNextPID" functionality of the Fedora Management LITE (API-M-LITE) interface using a java servlet front end. The syntax defined by API-M-LITE for getting a list of the next available PIDs has the following binding:
fedora.fcfg configuration file for the parameter pidNamespace.
| Nested Class Summary | |
|---|---|
class |
GetNextPIDServlet.GetNextPIDSerializerThread
A Thread to serialize an array of PIDs into XML. |
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary | |
|---|---|
static String |
ACTION_LABEL
|
| Constructor Summary | |
|---|---|
GetNextPIDServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Cleans up servlet resources. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process the Fedora API-M-LITE request to generate a list of next available PIDs. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
For now, treat a HTTP POST request just like a GET request. |
void |
getNextPID(Context context,
int numPIDs,
String namespace,
boolean xml,
javax.servlet.http.HttpServletResponse response)
Get the requested list of next Available PIDs by invoking the approriate method from the Management subsystem. |
void |
init()
Initialize servlet. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, 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 |
| Field Detail |
|---|
public static final String ACTION_LABEL
| Constructor Detail |
|---|
public GetNextPIDServlet()
| Method Detail |
|---|
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
Process the Fedora API-M-LITE request to generate a list of next available PIDs. Parse and validate the servlet input parameters and then execute the specified request.
doGet in class javax.servlet.http.HttpServletrequest - The servlet request.response - servlet The servlet response.
javax.servlet.ServletException - If an error occurs that effects the servlet's basic operation.
IOException - If an error occurrs with an input or output operation.
public void getNextPID(Context context,
int numPIDs,
String namespace,
boolean xml,
javax.servlet.http.HttpServletResponse response)
throws ServerException
Get the requested list of next Available PIDs by invoking the approriate method from the Management subsystem.
context - The context of this request.numPIDs - The number of PIDs requested.namespace - The namespace of the requested PIDs.xml - Boolean that determines format of response; true indicates
response format is xml; false indicates response format is html.response - The servlet response.
ServerException - If an error occurred while accessing the Fedora Management
subsystem.
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
For now, treat a HTTP POST request just like a GET request.
doPost in class javax.servlet.http.HttpServletrequest - The servet request.response - The servlet response.
javax.servlet.ServletException - If thrown by doGet.
IOException - If thrown by doGet.
public void init()
throws javax.servlet.ServletException
Initialize servlet.
init in class javax.servlet.GenericServletjavax.servlet.ServletException - If the servet cannot be initialized.public void destroy()
Cleans up servlet resources.
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 | |||||||||