Package com.avoka.fc.core.servlet.rest
Class RestGroovyServiceInvokeV2Servlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.avoka.fc.core.servlet.rest.AbstractRestServlet
-
- com.avoka.fc.core.servlet.rest.RestGroovyServiceInvokeV2Servlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class RestGroovyServiceInvokeV2Servlet extends AbstractRestServlet
Provides a REST Groovy Service Invoke Servlet. This version was introduced in conjunction with changes to service name uniqueness.- Since:
- 5.0.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_RESPONSE
The name of the HttpResponse parameter that TM will inject if no such parameter was passed into the request-
Fields inherited from class com.avoka.fc.core.servlet.rest.AbstractRestServlet
CONTENT_TYPE_JSON, errorLogService, logger, userAccountDao
-
-
Constructor Summary
Constructors Constructor Description RestGroovyServiceInvokeV2Servlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doGet(HttpServletRequest request, HttpServletResponse response)
protected void
doPost(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, 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
-
-
-
-
Field Detail
-
PARAM_RESPONSE
public static final String PARAM_RESPONSE
The name of the HttpResponse parameter that TM will inject if no such parameter was passed into the request- See Also:
- Constant Field Values
-
-
Method Detail
-
getRestBasePath
protected String getRestBasePath()
- Specified by:
getRestBasePath
in classAbstractRestServlet
- Returns:
- the REST API base path
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
- Overrides:
doGet
in classHttpServlet
- Throws:
IOException
ServletException
- See Also:
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)
-
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
- Overrides:
doPost
in classHttpServlet
- Throws:
IOException
ServletException
- See Also:
HttpServlet.doPost(HttpServletRequest, HttpServletResponse)
-
-