|
||||||||||
| 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.dspace.app.webui.servlet.DSpaceServlet
org.dspace.app.webui.servlet.HTMLServlet
public class HTMLServlet
Servlet for HTML bitstream support.
If we receive a request like this:
http://dspace.foo.edu/html/123.456/789/foo/bar/index.html
we first check for a bitstream with the *exact* filename
foo/bar/index.html. Otherwise, we strip the path information
(up to three levels deep to prevent infinite URL spaces occurring) and see if
we have a bitstream with the filename index.html (with no
path). If this exists, it is served up. This is because if an end user
uploads a composite HTML document with the submit UI, we will not have
accurate path information, and so we assume that if the browser is requesting
foo/bar/index.html but we only have index.html, that this is the desired file
but we lost the path information on upload.
| Constructor Summary | |
|---|---|
HTMLServlet()
Create an HTML Servlet |
|
| Method Summary | |
|---|---|
protected void |
doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an incoming HTTP GET. |
protected void |
doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an incoming HTTP POST. |
| Methods inherited from class org.dspace.app.webui.servlet.DSpaceServlet |
|---|
doGet, doPost |
| 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, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLServlet()
| Method Detail |
|---|
protected void doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
DSpaceServlet
doDSPost in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP response
java.sql.SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
java.io.IOException
protected void doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
DSpaceServlet
doDSGet in class DSpaceServletcontext - a DSpace Context objectrequest - the HTTP requestresponse - the HTTP response
java.sql.SQLException - if a database error occurs
AuthorizeException - if some authorization error occurs
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||