Package com.avoka.fc.core.servlet.rest
Class RestTasksV1Servlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.avoka.fc.core.servlet.rest.AbstractRestServlet
-
- com.avoka.fc.core.servlet.rest.RestTasksV1Servlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class RestTasksV1Servlet extends AbstractRestServlet
Provides a REST Tasks API Servlet.- Since:
- 4.3.4
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RestTasksV1Servlet.TaskVO
Provides a create task request class.
-
Field Summary
Fields Modifier and Type Field Description static String
FORM_DATA_XML
The POST "formDataXml" request parameter.static String
FORM_STATUS
The PUT "formStatus" request parameter.static String
INPUT_XML_DATA
The POST "inputXmlData" request parameter.static String
PROCESSING_STATUS
The POST "processingStatus" request parameter.static String
TASK
The POST "task" request parameter.-
Fields inherited from class com.avoka.fc.core.servlet.rest.AbstractRestServlet
CONTENT_TYPE_JSON, errorLogService, logger, userAccountDao
-
-
Constructor Summary
Constructors Constructor Description RestTasksV1Servlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPost(HttpServletRequest request, HttpServletResponse response)
protected void
doPut(HttpServletRequest request, HttpServletResponse response)
protected String
getRestBasePath()
-
Methods inherited from class com.avoka.fc.core.servlet.rest.AbstractRestServlet
getMultiPartRequestMap, getNonEmptyRequestPaths, getRequestParamsMap, getRequestPaths, getThreadObjectContext, getUserAccount, isAuthorized, isAuthorized, logRequest, marshallJsonObject, renderJsonResponse, renderResponse, setNoCacheHeaders
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
-
-
-
Field Detail
-
TASK
public static final String TASK
The POST "task" request parameter.- See Also:
- Constant Field Values
-
FORM_DATA_XML
public static final String FORM_DATA_XML
The POST "formDataXml" request parameter.- See Also:
- Constant Field Values
-
INPUT_XML_DATA
public static final String INPUT_XML_DATA
The POST "inputXmlData" request parameter.- See Also:
- Constant Field Values
-
FORM_STATUS
public static final String FORM_STATUS
The PUT "formStatus" request parameter.- See Also:
- Constant Field Values
-
PROCESSING_STATUS
public static final String PROCESSING_STATUS
The POST "processingStatus" request parameter.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRestBasePath
protected String getRestBasePath()
- Specified by:
getRestBasePath
in classAbstractRestServlet
- Returns:
- the REST API base path
- See Also:
AbstractRestServlet.getRestBasePath()
-
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doPost
in classHttpServlet
- Throws:
ServletException
IOException
- See Also:
HttpServlet.doPost(HttpServletRequest, HttpServletResponse)
-
doPut
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doPut
in classHttpServlet
- Throws:
ServletException
IOException
- See Also:
HttpServlet.doPut(HttpServletRequest, HttpServletResponse)
-
-