org.dspace.app.webui.servlet
Class ControlledVocabularySearchServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.dspace.app.webui.servlet.DSpaceServlet
org.dspace.app.webui.servlet.ControlledVocabularySearchServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ControlledVocabularySearchServlet
- extends DSpaceServlet
Servlet that provides funcionality for searching the repository using a
controlled vocabulary as a basis for selecting the search keywords.
- Version:
- $Revision$
- Author:
- Miguel Ferreira
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles requests |
protected void |
doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle posts |
static String |
join(List<String> list,
String separator)
Joins each element present in a list with a separator |
| 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 |
ControlledVocabularySearchServlet
public ControlledVocabularySearchServlet()
doDSGet
protected void doDSGet(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
- Handles requests
- 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
join
public static String join(List<String> list,
String separator)
- Joins each element present in a list with a separator
- Parameters:
list - The list of elementsseparator - The separator that will be used between each element
- Returns:
- A string with all the elements concatened and separated by the
provided connector
doDSPost
protected void doDSPost(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
SQLException,
AuthorizeException
- Handle posts
- Overrides:
doDSPost 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.