Class OldalbumServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- no.priv.bang.servlet.frontend.FrontendServlet
-
- no.priv.bang.oldalbum.web.frontend.OldalbumServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class OldalbumServlet extends no.priv.bang.servlet.frontend.FrontendServlet- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private no.priv.bang.oldalbum.services.OldAlbumServiceoldalbumprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OldalbumServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()protected voidaddMetaTagIfNotEmpty(org.jsoup.nodes.Document html, String property, String content)(package private) voidaddOpenGraphHeaderElements(org.jsoup.nodes.Document html, String pathInfo)private List<String>combineDynamicAndStaticRoutes()(package private) InputStreamgetClasspathResource(String resource)List<String>getRoutes()protected org.jsoup.nodes.DocumentloadHtmlFile(String htmlFile)protected voidprocessResource(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, String pathInfo, String resource, String contentType)voidsetLogService(org.osgi.service.log.LogService logservice)voidsetOldalbumService(no.priv.bang.oldalbum.services.OldAlbumService oldalbum)protected booleanthisIsAResourceThatShouldBeProcessed(javax.servlet.http.HttpServletRequest request, String pathInfo, String resource, String contentType)-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
oldalbum
private no.priv.bang.oldalbum.services.OldAlbumService oldalbum
-
-
Method Detail
-
setLogService
public void setLogService(org.osgi.service.log.LogService logservice)
- Overrides:
setLogServicein classno.priv.bang.servlet.frontend.FrontendServlet
-
setOldalbumService
public void setOldalbumService(no.priv.bang.oldalbum.services.OldAlbumService oldalbum)
-
activate
public void activate()
-
getRoutes
public List<String> getRoutes()
- Overrides:
getRoutesin classno.priv.bang.servlet.frontend.FrontendServlet
-
thisIsAResourceThatShouldBeProcessed
protected boolean thisIsAResourceThatShouldBeProcessed(javax.servlet.http.HttpServletRequest request, String pathInfo, String resource, String contentType)- Overrides:
thisIsAResourceThatShouldBeProcessedin classno.priv.bang.servlet.frontend.FrontendServlet
-
processResource
protected void processResource(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, String pathInfo, String resource, String contentType) throws IOException- Overrides:
processResourcein classno.priv.bang.servlet.frontend.FrontendServlet- Throws:
IOException
-
addOpenGraphHeaderElements
void addOpenGraphHeaderElements(org.jsoup.nodes.Document html, String pathInfo)
-
addMetaTagIfNotEmpty
protected void addMetaTagIfNotEmpty(org.jsoup.nodes.Document html, String property, String content)
-
loadHtmlFile
protected org.jsoup.nodes.Document loadHtmlFile(String htmlFile) throws IOException
- Throws:
IOException
-
getClasspathResource
InputStream getClasspathResource(String resource)
-
-