|
||||||||||
| 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.AbstractBrowserServlet
public abstract class AbstractBrowserServlet
Servlet for browsing through indices, as they are defined in the configuration. This class can take a wide variety of inputs from the user interface: - type: the type of browse (index name) being performed - order: (ASC | DESC) the direction for result sorting - value: A specific value to find items around. For example the author name or subject - month: integer specification of the month of a date browse - year: integer specification of the year of a date browse - starts_with: string value at which to start browsing - vfocus: start browsing with a value of this string - focus: integer id of the item at which to start browsing - rpp: integer number of results per page to display - sort_by: integer specification of the field to search on - etal: integer number to limit multiple value items specified in config to
| Constructor Summary | |
|---|---|
AbstractBrowserServlet()
|
|
| Method Summary | |
|---|---|
protected BrowserScope |
getBrowserScopeForRequest(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a BrowserScope from the current request |
protected void |
processBrowse(Context context,
BrowserScope scope,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Do the usual DSpace GET method. |
protected abstract void |
showError(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Display the error page |
protected abstract void |
showFullPage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected abstract void |
showNoResultsPage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Display the No Results page |
protected abstract void |
showSinglePage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Display the single page. |
| Methods inherited from class org.dspace.app.webui.servlet.DSpaceServlet |
|---|
doDSGet, doDSPost, 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 AbstractBrowserServlet()
| Method Detail |
|---|
protected BrowserScope getBrowserScopeForRequest(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
context - The database contextrequest - The servlet requestresponse - The servlet response
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
protected void processBrowse(Context context,
BrowserScope scope,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
protected abstract void showError(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
context - request - response -
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
protected abstract void showNoResultsPage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
context - request - response -
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
protected abstract void showSinglePage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
context - request - response -
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
protected abstract void showFullPage(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException,
java.sql.SQLException,
AuthorizeException
javax.servlet.ServletException
java.io.IOException
java.sql.SQLException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||