public class DataProviderServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_LANG |
protected HandleService |
handleService |
| Constructor and Description |
|---|
DataProviderServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
detectContentType(javax.servlet.http.HttpServletRequest request,
String lang) |
protected String |
detectLanguage(javax.servlet.http.HttpServletRequest request) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
String |
getServletInfo()
Returns a short description of the servlet.
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP
GET and
POST methods. |
protected void |
serveNamedGraph(String uri,
String lang,
String contentType,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected static final String DEFAULT_LANG
protected final transient HandleService handleService
protected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET and
POST methods.request - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occursprotected void serveNamedGraph(String uri, String lang, String contentType, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected String detectContentType(javax.servlet.http.HttpServletRequest request, String lang)
protected String detectLanguage(javax.servlet.http.HttpServletRequest request)
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET method.doGet in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occursprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
POST method.doPost in class javax.servlet.http.HttpServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occurspublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServletCopyright © 2016 DuraSpace. All rights reserved.