All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.priv.bang.oldalbum.web.frontend.PagesServlet Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
package no.priv.bang.oldalbum.web.frontend;

import static org.osgi.service.http.whiteboard.HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME;

import javax.servlet.Servlet;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardContextSelect;
import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardServletName;
import org.osgi.service.http.whiteboard.propertytypes.HttpWhiteboardServletPattern;
import org.osgi.service.log.LogService;

import no.priv.bang.servlet.jersey.JerseyServlet;

@Component(service=Servlet.class, immediate=true)
@HttpWhiteboardContextSelect("(" + HTTP_WHITEBOARD_CONTEXT_NAME + "=oldalbum)")
@HttpWhiteboardServletName("oldalbumpages")
@HttpWhiteboardServletPattern("/pages/*")
public class PagesServlet extends JerseyServlet {

    private static final long serialVersionUID = -4441841049428866032L;

    @Override
    @Reference
    public void setLogService(LogService logService) {
        super.setLogService(logService);
    }

    public void activate() {
        // Called when component is activated
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy