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 void
doGet
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected void
doGetConfig
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected void
doGetIndex
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected void
doNotFound
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String encodedPathInContext) com.fasterxml.jackson.databind.ObjectMapper
void
init
(jakarta.servlet.ServletConfig servletConfig) protected String
void
setApiOutsideUrl
(String apiOutsideUrl) void
setHttpContextRoot
(HttpContextRoot httpContextRoot) void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Methods inherited from class dev.getelements.elements.jetty.StaticContentServlet
getEncodedPathInContext
Methods inherited from class org.eclipse.jetty.ee10.servlet.ResourceServlet
doHead, doOptions, doTrace, getResourceService, init, initContextHandler
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doPatch, doPost, doPut, getLastModified, isSensitiveHeader, service, service
Methods 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:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in 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:
doGet
in classorg.eclipse.jetty.ee10.servlet.ResourceServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
doNotFound
protected void doNotFound(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, String encodedPathInContext) throws IOException - Overrides:
doNotFound
in 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)
-