Package com.avoka.fc.core.servlet.rest
Class RestApplicationPackageV1Servlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.avoka.fc.core.servlet.rest.AbstractRestServlet
-
- com.avoka.fc.core.servlet.rest.RestApplicationPackageV1Servlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public class RestApplicationPackageV1Servlet extends AbstractRestServlet
Provides a Application Package REST API Servlet.- Since:
- 5.1.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_ARCHIVE_FILE
The parameter pointing to the archive file for upload operationsstatic String
PARAM_IMPORT_DELIVERY_CHANNELS
The parameter indicating whether to import delivery channelsstatic String
PARAM_IMPORT_FORMS
The parameter indicating whether to import formsstatic String
PARAM_IMPORT_ORG_PROPERTIES
The parameter indicating whether to import formsstatic String
PARAM_IMPORT_SERVICE_CONNECTIONS
The parameter indicating whether to import service connectionsstatic String
PARAM_IMPORT_SERVICES
The parameter indicating whether to import service definitionsstatic String
PARAM_INCLUDE_ALL_VERSIONS
The parameter indicating whether to export all form versions when creating an application archive to downloadstatic String
PARAM_OVERWRITE_EXISTING
The parameter indicating whether to overwrite existing application packagesstatic String
PARAM_PRESERVE_DELIVERY_CHANNELS
The parameter indicating whether to preserve existing delivery channels and their configuration during importstatic String
PARAM_PRESERVE_SERVICE_CONNECTIONS
The parameter indicating whether to preserve existing service connections and their configuration during importstatic String
PARAM_PRESERVE_SERVICES
The parameter indicating whether to preserve existing service definitions and their configuration during import-
Fields inherited from class com.avoka.fc.core.servlet.rest.AbstractRestServlet
CONTENT_TYPE_JSON, errorLogService, logger, userAccountDao
-
-
Constructor Summary
Constructors Constructor Description RestApplicationPackageV1Servlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doDelete(HttpServletRequest request, HttpServletResponse response)
protected void
doGet(HttpServletRequest request, HttpServletResponse response)
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
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
-
PARAM_ARCHIVE_FILE
public static final String PARAM_ARCHIVE_FILE
The parameter pointing to the archive file for upload operations- See Also:
- Constant Field Values
-
PARAM_INCLUDE_ALL_VERSIONS
public static final String PARAM_INCLUDE_ALL_VERSIONS
The parameter indicating whether to export all form versions when creating an application archive to download- See Also:
- Constant Field Values
-
PARAM_IMPORT_DELIVERY_CHANNELS
public static final String PARAM_IMPORT_DELIVERY_CHANNELS
The parameter indicating whether to import delivery channels- See Also:
- Constant Field Values
-
PARAM_IMPORT_FORMS
public static final String PARAM_IMPORT_FORMS
The parameter indicating whether to import forms- See Also:
- Constant Field Values
-
PARAM_IMPORT_ORG_PROPERTIES
public static final String PARAM_IMPORT_ORG_PROPERTIES
The parameter indicating whether to import forms- See Also:
- Constant Field Values
-
PARAM_IMPORT_SERVICES
public static final String PARAM_IMPORT_SERVICES
The parameter indicating whether to import service definitions- See Also:
- Constant Field Values
-
PARAM_IMPORT_SERVICE_CONNECTIONS
public static final String PARAM_IMPORT_SERVICE_CONNECTIONS
The parameter indicating whether to import service connections- See Also:
- Constant Field Values
-
PARAM_PRESERVE_DELIVERY_CHANNELS
public static final String PARAM_PRESERVE_DELIVERY_CHANNELS
The parameter indicating whether to preserve existing delivery channels and their configuration during import- See Also:
- Constant Field Values
-
PARAM_PRESERVE_SERVICES
public static final String PARAM_PRESERVE_SERVICES
The parameter indicating whether to preserve existing service definitions and their configuration during import- See Also:
- Constant Field Values
-
PARAM_PRESERVE_SERVICE_CONNECTIONS
public static final String PARAM_PRESERVE_SERVICE_CONNECTIONS
The parameter indicating whether to preserve existing service connections and their configuration during import- See Also:
- Constant Field Values
-
PARAM_OVERWRITE_EXISTING
public static final String PARAM_OVERWRITE_EXISTING
The parameter indicating whether to overwrite existing application packages- 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()
-
doGet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
- See Also:
HttpServlet.doGet(HttpServletRequest, HttpServletResponse)
-
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)
-
doDelete
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
- Overrides:
doDelete
in classHttpServlet
- Throws:
ServletException
IOException
- See Also:
HttpServlet.doDelete(HttpServletRequest, HttpServletResponse)
-
-