org.dspace.app.webui.servlet
Class BitstreamServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dspace.app.webui.servlet.DSpaceServlet
org.dspace.app.webui.servlet.BitstreamServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class BitstreamServlet
- extends DSpaceServlet
Servlet for retrieving bitstreams. The bits are simply piped to the user. If
there is an If-Modified-Since header, only a 304 status code
is returned if the containing item has not been modified since that date.
/bitstream/handle/sequence_id/filename
- Version:
- $Revision$
- Author:
- Robert Tansley
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an incoming HTTP GET. |
void |
init(javax.servlet.ServletConfig arg0)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, 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 |
BitstreamServlet
public BitstreamServlet()
init
public void init(javax.servlet.ServletConfig arg0)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Servlet- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
doDSGet
protected void doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
- Description copied from class:
DSpaceServlet
- Process an incoming HTTP GET. If an exception is thrown, or for some
other reason the passed in context is not completed, it will be aborted
and any changes made by this method discarded when this method returns.
- Overrides:
doDSGet in class DSpaceServlet
- Parameters:
context - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP response
- Throws:
SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
IOException
Copyright © 2013 DuraSpace. All Rights Reserved.