public class DatastreamResolverServlet extends SpringServlet
It requires a single parameter named id that denotes the
temporary id of the requested datastresm. This id is in the form of a
DateTime stamp. The servlet will perform an in-memory hashtable lookup
using the temporary id to obtain the actual physical location of the
datastream and then return the contents of the datastream as a MIME-typed
stream. This servlet is invoked primarily by external mechanisms needing to
retrieve the contents of a datastream.
The servlet also requires that an external mechanism request a datastream within a finite time interval of the tempID's creation. This is to lessen the risk of unauthorized access. The time interval within which a mechanism must respond is set by the Fedora configuration parameter named datastreamMediationLimit and is specified in milliseconds. If this parameter is not supplied it defaults to 5000 milliseconds.
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_LABEL |
m_appContext, m_server, m_status| Constructor and Description |
|---|
DatastreamResolverServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the servlet request and resolves the physical location of the
specified datastream.
|
void |
init(javax.servlet.ServletConfig config)
Initialize servlet.
|
failStartupdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String ACTION_LABEL
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class SpringServletjavax.servlet.ServletException - If the servlet cannot be initialized.public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
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 destroy()
destroy in interface javax.servlet.Servletdestroy in class SpringServletCopyright © 2013 DuraSpace. All Rights Reserved.