public class BeGenericServlet extends BasicServlet
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.http.HttpServletRequest |
servletRequest |
gson
Constructor and Description |
---|
BeGenericServlet() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
buildErrorResponse(ResponseFormat requestErrorWrapper)
New error response mechanism
|
protected javax.ws.rs.core.Response |
buildOkResponse(ResponseFormat errorResponseWrapper,
Object entity) |
protected javax.ws.rs.core.Response |
buildOkResponse(ResponseFormat errorResponseWrapper,
Object entity,
Map<String,String> additionalHeaders) |
protected ArtifactsBusinessLogic |
getArtifactBL(javax.servlet.ServletContext context) |
protected <SomeBusinessLogic> |
getBusinessLogic(javax.servlet.ServletContext context,
Supplier<Class<SomeBusinessLogic>> businessLogicClassGen) |
protected ComponentBusinessLogic |
getComponentBL(ComponentTypeEnum componentTypeEnum,
javax.servlet.ServletContext context) |
protected ComponentsCleanBusinessLogic |
getComponentCleanerBL(javax.servlet.ServletContext context) |
protected ComponentInstanceBusinessLogic |
getComponentInstanceBL(javax.servlet.ServletContext context,
ComponentTypeEnum containerComponentType) |
protected ComponentsUtils |
getComponentsUtils() |
protected String |
getContentDispositionValue(String artifactFileName) |
protected ElementBusinessLogic |
getElementBL(javax.servlet.ServletContext context) |
protected IElementDAO |
getElementDao(Class<? extends IElementDAO> clazz,
javax.servlet.ServletContext context) |
protected GroupBusinessLogic |
getGroupBL(javax.servlet.ServletContext context) |
protected MonitoringBusinessLogic |
getMonitoringBL(javax.servlet.ServletContext context) |
protected ProductBusinessLogic |
getProductBL(javax.servlet.ServletContext context) |
protected ResourceBusinessLogic |
getResourceBL(javax.servlet.ServletContext context) |
protected ServiceBusinessLogic |
getServiceBL(javax.servlet.ServletContext context) |
protected UserBusinessLogic |
getUserAdminManager(javax.servlet.ServletContext context) |
protected String |
initHeaderParam(String headerValue,
javax.servlet.http.HttpServletRequest request,
String headerName)
Used to support Unit Test.
Header Params are not supported in Unit Tests |
protected javax.ws.rs.core.Response buildErrorResponse(ResponseFormat requestErrorWrapper)
protected javax.ws.rs.core.Response buildOkResponse(ResponseFormat errorResponseWrapper, Object entity)
protected javax.ws.rs.core.Response buildOkResponse(ResponseFormat errorResponseWrapper, Object entity, Map<String,String> additionalHeaders)
protected UserBusinessLogic getUserAdminManager(javax.servlet.ServletContext context)
protected ResourceBusinessLogic getResourceBL(javax.servlet.ServletContext context)
protected ComponentsCleanBusinessLogic getComponentCleanerBL(javax.servlet.ServletContext context)
protected ServiceBusinessLogic getServiceBL(javax.servlet.ServletContext context)
protected ProductBusinessLogic getProductBL(javax.servlet.ServletContext context)
protected ArtifactsBusinessLogic getArtifactBL(javax.servlet.ServletContext context)
protected ElementBusinessLogic getElementBL(javax.servlet.ServletContext context)
protected MonitoringBusinessLogic getMonitoringBL(javax.servlet.ServletContext context)
protected <SomeBusinessLogic> SomeBusinessLogic getBusinessLogic(javax.servlet.ServletContext context, Supplier<Class<SomeBusinessLogic>> businessLogicClassGen)
protected GroupBusinessLogic getGroupBL(javax.servlet.ServletContext context)
protected ComponentInstanceBusinessLogic getComponentInstanceBL(javax.servlet.ServletContext context, ComponentTypeEnum containerComponentType)
protected IElementDAO getElementDao(Class<? extends IElementDAO> clazz, javax.servlet.ServletContext context)
protected ComponentsUtils getComponentsUtils()
protected String initHeaderParam(String headerValue, javax.servlet.http.HttpServletRequest request, String headerName)
protected ComponentBusinessLogic getComponentBL(ComponentTypeEnum componentTypeEnum, javax.servlet.ServletContext context)
Copyright © 2017. All rights reserved.