Package org.codice.ddf.landing
Class LandingPage
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.codice.ddf.landing.LandingPage
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class LandingPage
extends javax.servlet.http.HttpServlet
A simple HttpServlet to serve up a landing page that displays deployment-specific information
such as data source availability and announcements. Announcements are implemented as configurable
properties. The Title and Version are retrieved via the
BrandingPlugin. Additionally, a
phone number, email address, external website, and description are configurable properties.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) expanded(int index) extractAnnouncement(String announcement) extractDate(String announcement, boolean reformat) org.codice.ddf.branding.BrandingRegistrygetTitle()in(int index) noAnnouncements(List<String> announcements) voidsetAnnouncements(List<String> announcements) voidsetBackground(String background) voidsetBranding(org.codice.ddf.branding.BrandingRegistry branding) voidsetDescription(String description) voidvoidsetExternalUrl(String externalUrl) voidsetForeground(String foreground) voidvoidsetLinksTitle(String linksTitle) voidvoidvoidsetSourceAvailabilityHeader(ddf.platform.resource.bundle.locator.ResourceBundleLocator resourceBundleLocator) Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
LandingPage
public LandingPage()
-
-
Method Details
-
setSourceAvailabilityHeader
public void setSourceAvailabilityHeader(ddf.platform.resource.bundle.locator.ResourceBundleLocator resourceBundleLocator) -
getAnnouncements
-
setBranding
public void setBranding(org.codice.ddf.branding.BrandingRegistry branding) -
getBranding
public org.codice.ddf.branding.BrandingRegistry getBranding() -
setDescription
-
setPhone
-
setEmail
-
setExternalUrl
-
setAnnouncements
-
setLinks
-
getParsedLinks
-
setBackground
-
setForeground
-
setLogo
-
getProductImage
-
getLinksTitle
-
setLinksTitle
-
getTitle
-
getVersion
-
getFavicon
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
extractDate
-
extractAnnouncement
-
expanded
-
in
-
noAnnouncements
-