Update to latest http whiteboard api
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1656517 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/api/src/main/java/org/osgi/service/http/whiteboard/HttpWhiteboardConstants.java b/http/api/src/main/java/org/osgi/service/http/whiteboard/HttpWhiteboardConstants.java
index fd6113b..45dda1c 100644
--- a/http/api/src/main/java/org/osgi/service/http/whiteboard/HttpWhiteboardConstants.java
+++ b/http/api/src/main/java/org/osgi/service/http/whiteboard/HttpWhiteboardConstants.java
@@ -16,6 +16,7 @@
package org.osgi.service.http.whiteboard;
+import javax.servlet.Servlet;
import org.osgi.framework.Filter;
import org.osgi.service.http.context.ServletContextHelper;
import org.osgi.service.http.runtime.HttpServiceRuntimeConstants;
@@ -90,6 +91,23 @@
public static final String HTTP_WHITEBOARD_CONTEXT_PATH = "osgi.http.whiteboard.context.path";
/**
+ * Service property prefix referencing a {@link ServletContextHelper}
+ * service.
+ *
+ * <p>
+ * For {@link ServletContextHelper} services this prefix can be used for
+ * service properties to mark them as initialization parameters which can be
+ * retrieved from the associated servlet context. The prefix is removed from
+ * the service property name to build the initialization parameter name.
+ *
+ * <p>
+ * For {@link ServletContextHelper} services, the value of each
+ * initialization parameter service property must be of type {@code String}.
+ *
+ */
+ public static final String HTTP_WHITEBOARD_CONTEXT_INIT_PARAM_PREFIX = "context.init.";
+
+ /**
* Service property referencing a {@link ServletContextHelper} service.
*
* <p>
@@ -189,6 +207,22 @@
public static final String HTTP_WHITEBOARD_SERVLET_ASYNC_SUPPORTED = "osgi.http.whiteboard.servlet.asyncSupported";
/**
+ * Service property prefix referencing a {@link Servlet} service.
+ *
+ * <p>
+ * For {@link Servlet} services this prefix can be used for service
+ * properties to mark them as initialization parameters which can be
+ * retrieved from the associated servlet config. The prefix is removed from
+ * the service property name to build the initialization parameter name.
+ *
+ * <p>
+ * For {@link Servlet} services, the value of each initialization parameter
+ * service property must be of type {@code String}.
+ *
+ */
+ public static final String HTTP_WHITEBOARD_SERVLET_INIT_PARAM_PREFIX = "servlet.init.";
+
+ /**
* Service property specifying the servlet filter name of a {@code Filter}
* service.
*
@@ -299,6 +333,22 @@
public static final String HTTP_WHITEBOARD_FILTER_DISPATCHER = "osgi.http.whiteboard.filter.dispatcher";
/**
+ * Service property prefix referencing a {@link Filter} service.
+ *
+ * <p>
+ * For {@link Filter} services this prefix can be used for service
+ * properties to mark them as initialization parameters which can be
+ * retrieved from the associated filter config. The prefix is removed from
+ * the service property name to build the initialization parameter name.
+ *
+ * <p>
+ * For {@link Filter} services, the value of each initialization parameter
+ * service property must be of type {@code String}.
+ *
+ */
+ public static final String HTTP_WHITEBOARD_FILTER_INIT_PARAM_PREFIX = "filter.init.";
+
+ /**
* Possible value for the {@link #HTTP_WHITEBOARD_FILTER_DISPATCHER}
* property indicating the servlet filter is applied to client requests.
*