@Service(value=javax.servlet.Servlet.class)
@Reference(name="httpService",
referenceInterface=org.osgi.service.http.HttpService.class)
public class ConfigFactoryServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.http.HttpService |
httpService |
protected org.slf4j.Logger |
log |
protected String |
message |
protected String |
path |
protected static String |
PROP_MESSAGE |
protected static String |
PROP_PATH |
Constructor and Description |
---|
ConfigFactoryServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(Map<String,Object> config) |
protected void |
bindHttpService(org.osgi.service.http.HttpService s) |
protected void |
deactivate(Map<String,Object> config) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
register() |
protected void |
unbindHttpService(org.osgi.service.http.HttpService s) |
protected void |
unregister() |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
@Property(value="default message") protected static final String PROP_MESSAGE
@Property(value="/default_path") protected static final String PROP_PATH
protected String message
protected String path
protected final org.slf4j.Logger log
protected org.osgi.service.http.HttpService httpService
@Activate protected void activate(Map<String,Object> config) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
@Deactivate protected void deactivate(Map<String,Object> config) throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
protected void register() throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
protected void unregister() throws javax.servlet.ServletException, org.osgi.service.http.NamespaceException
javax.servlet.ServletException
org.osgi.service.http.NamespaceException
protected void bindHttpService(org.osgi.service.http.HttpService s)
protected void unbindHttpService(org.osgi.service.http.HttpService s)
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.