Package org.dspace.rdf.providing
Class DataProviderServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.dspace.rdf.providing.DataProviderServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class DataProviderServlet
extends jakarta.servlet.http.HttpServlet
- Author:
- Pascal-Nicolas Becker (dspace -at- pascal -hyphen- becker -dot- de)
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdetectContentType(jakarta.servlet.http.HttpServletRequest request, String lang) protected StringdetectLanguage(jakarta.servlet.http.HttpServletRequest request) protected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handles the HTTPGETmethod.protected voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Handles the HTTPPOSTmethod.Returns a short description of the servlet.protected voidprocessRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Processes requests for both HTTPGETandPOSTmethods.protected voidserveNamedGraph(String uri, String lang, String contentType, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPatch, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
Field Details
-
DEFAULT_LANG
- See Also:
-
handleService
-
-
Constructor Details
-
DataProviderServlet
public DataProviderServlet()
-
-
Method Details
-
processRequest
protected void processRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Processes requests for both HTTPGETandPOSTmethods.- Parameters:
request- servlet requestresponse- servlet response- Throws:
jakarta.servlet.ServletException- if a servlet-specific error occursIOException- if an I/O error occurs
-
serveNamedGraph
protected void serveNamedGraph(String uri, String lang, String contentType, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
detectContentType
-
detectLanguage
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Handles the HTTPGETmethod.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
request- servlet requestresponse- servlet response- Throws:
jakarta.servlet.ServletException- if a servlet-specific error occursIOException- if an I/O error occurs
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException Handles the HTTPPOSTmethod.- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Parameters:
request- servlet requestresponse- servlet response- Throws:
jakarta.servlet.ServletException- if a servlet-specific error occursIOException- if an I/O error occurs
-
getServletInfo
Returns a short description of the servlet.- Specified by:
getServletInfoin interfacejakarta.servlet.Servlet- Overrides:
getServletInfoin classjakarta.servlet.GenericServlet- Returns:
- a String containing servlet description
-