Class ODataServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.olingo.odata2.core.servlet.ODataServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class ODataServlet
extends jakarta.servlet.http.HttpServlet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ThreadLocal<Locale> static ThreadLocal<jakarta.servlet.http.HttpServletRequest> static ThreadLocal<jakarta.servlet.http.HttpServletResponse> Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateResponse(jakarta.servlet.http.HttpServletResponse resp, ODataResponse response) protected voidcreateResponse(jakarta.servlet.http.HttpServletResponse resp, ODataResponse response, boolean omitResponseBody) protected ODataServiceFactorygetServiceFactory(jakarta.servlet.http.HttpServletRequest request) Get the service factory instance which is used for creation of theODataServicewhich handles the processing of the request.protected voidhandle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String xHttpMethod, String xHttpMethodOverride, ODataServiceFactory serviceFactory) protected voidhandleRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, ODataServiceFactory serviceFactory) protected voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
REQUEST
-
RESPONSE
-
LOCALE
-
-
Constructor Details
-
ODataServlet
public ODataServlet()
-
-
Method Details
-
service
protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
getServiceFactory
Get the service factory instance which is used for creation of theODataServicewhich handles the processing of the request.- Parameters:
request- the http request which is processed as an OData request- Returns:
- an instance of an ODataServiceFactory
-
handle
protected void handle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String xHttpMethod, String xHttpMethodOverride, ODataServiceFactory serviceFactory) throws IOException - Throws:
IOException
-
handleRedirect
protected void handleRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, ODataServiceFactory serviceFactory) throws IOException - Throws:
IOException
-
createResponse
protected void createResponse(jakarta.servlet.http.HttpServletResponse resp, ODataResponse response) throws IOException - Throws:
IOException
-
createResponse
protected void createResponse(jakarta.servlet.http.HttpServletResponse resp, ODataResponse response, boolean omitResponseBody) throws IOException - Throws:
IOException
-