|
||||||||||
| 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.SpringServlet
org.fcrepo.server.access.SpringAccessServlet
org.fcrepo.server.access.FedoraAccessServlet
public class FedoraAccessServlet
Implements the three methods GetObjectProfile, GetDissemination, and GetDatastreamDissemination of the Fedora Access LITE (API-A-LITE) interface using a java servlet front end. The syntax defined by API-A-LITE defines three bindings for these methods:
protocol://hostname:port/fedora/get/PID/sDefPID/methodName[/dateTime][? parmArray]
This syntax requests a dissemination of the specified object using the specified method of the associated service definition object. The result is returned as a MIME-typed stream.
protocol://hostname:port/fedora/get/PID[/dateTime][?xml=BOOLEAN]
This syntax requests an object profile 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.
protocol://hostname:port/fedora/get/PID/DSID[/dateTime]
This syntax requests a datastream dissemination for the specified digital object. It is used to return the contents of a datastream.
| Nested Class Summary | |
|---|---|
class |
FedoraAccessServlet.ProfileSerializerThread
A Thread to serialize an ObjectProfile object into XML. |
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Fields inherited from class org.fcrepo.server.access.SpringAccessServlet |
|---|
m_access |
| Fields inherited from class org.fcrepo.server.SpringServlet |
|---|
m_appContext, m_server, m_status |
| Constructor Summary | |
|---|---|
FedoraAccessServlet()
|
|
| Method Summary | |
|---|---|
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 |
getDatastreamDissemination(Context context,
String PID,
String dsID,
Date asOfDateTime,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
|
void |
getDissemination(Context context,
String PID,
String sDefPID,
String methodName,
Property[] userParms,
Date asOfDateTime,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
This method calls the Fedora Access Subsystem to retrieve a MIME-typed stream corresponding to the dissemination request. |
void |
getObjectProfile(Context context,
String PID,
Date asOfDateTime,
boolean xml,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class org.fcrepo.server.access.SpringAccessServlet |
|---|
destroy, init |
| Methods inherited from class org.fcrepo.server.SpringServlet |
|---|
failStartup |
| 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 |
| Constructor Detail |
|---|
public FedoraAccessServlet()
| 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 getObjectProfile(Context context,
String PID,
Date asOfDateTime,
boolean xml,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ServerException
ServerException
public void getDatastreamDissemination(Context context,
String PID,
String dsID,
Date asOfDateTime,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
throws IOException,
ServerException
IOException
ServerException
public void getDissemination(Context context,
String PID,
String sDefPID,
String methodName,
Property[] userParms,
Date asOfDateTime,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request)
throws IOException,
ServerException
This method calls the Fedora Access Subsystem to retrieve a MIME-typed stream corresponding to the dissemination request.
context - The read only context of the request.PID - The persistent identifier of the Digital Object.sDefPID - The persistent identifier of the Service Definition object.methodName - The method name.userParms - An array of user-supplied method parameters.asOfDateTime - The version datetime stamp of the digital object.response - The servlet response.request - The servlet request.
IOException - If an error occurrs with an input or output operation.
ServerException - If an error occurs in the Access 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||