|
||||||||||
| 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.access.ListDatastreamsServlet
public class ListDatastreamsServlet
Implements listDatastreams method of Fedora Access LITE (API-A-LITE) interface using a java servlet front end.
protocol://hostname:port/fedora/listDatastreams/PID[/dateTime][?xml=BOOLEAN]
This syntax requests a list of datastreams for the specified digital object. The xml parameter determines the type of output returned. If the parameter is omitted or has a value of "false", a MIME-typed stream consisting of an html table is returned providing a browser-savvy means of viewing the object profile. If the value specified is "true", then a MIME-typed stream consisting of XML is returned.
| Nested Class Summary | |
|---|---|
class |
ListDatastreamsServlet.DatastreamDefSerializerThread
A Thread to serialize a DatastreamDef object into XML. |
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary | |
|---|---|
static String |
ACTION_LABEL
|
| Constructor Summary | |
|---|---|
ListDatastreamsServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Cleans up servlet resources. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process Fedora Access Request. |
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 |
init()
Initialize servlet. |
void |
listDatastreams(Context context,
String PID,
Date asOfDateTime,
boolean xml,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| 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 ListDatastreamsServlet()
| Method Detail |
|---|
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
Process Fedora Access Request. 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 listDatastreams(Context context,
String PID,
Date asOfDateTime,
boolean xml,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ServerException
ServerException
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 | |||||||||