Package dev.getelements.elements.webui
Class WebUIAngularServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclipse.jetty.ee10.servlet.ResourceServlet
dev.getelements.elements.jetty.StaticContentServlet
dev.getelements.elements.webui.WebUIAngularServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoGetConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoGetIndex(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoNotFound(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String encodedPathInContext) com.fasterxml.jackson.databind.ObjectMappervoidinit(jakarta.servlet.ServletConfig servletConfig) protected StringvoidsetApiOutsideUrl(String apiOutsideUrl) voidsetHttpContextRoot(HttpContextRoot httpContextRoot) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Methods inherited from class dev.getelements.elements.jetty.StaticContentServlet
getEncodedPathInContextMethods inherited from class org.eclipse.jetty.ee10.servlet.ResourceServlet
doHead, doOptions, doTrace, getResourceService, init, initContextHandlerMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doPatch, doPost, doPut, getLastModified, isSensitiveHeader, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
RESOURCE_BASE
- See Also:
-
-
Constructor Details
-
WebUIAngularServlet
public WebUIAngularServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig servletConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletException
-
loadIndex
- Throws:
IOException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classorg.eclipse.jetty.ee10.servlet.ResourceServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
doNotFound
protected void doNotFound(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String encodedPathInContext) throws IOException - Overrides:
doNotFoundin classorg.eclipse.jetty.ee10.servlet.ResourceServlet- Throws:
IOException
-
doGetIndex
protected void doGetIndex(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
doGetConfig
protected void doGetConfig(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Throws:
IOException
-
getApiOutsideUrl
-
setApiOutsideUrl
@Inject public void setApiOutsideUrl(@Named("dev.getelements.elements.api.url") String apiOutsideUrl) -
getHttpContextRoot
-
setHttpContextRoot
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
@Inject public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-