Class HttpWhiteboardConstants
- java.lang.Object
-
- org.apache.felix.http.whiteboard.HttpWhiteboardConstants
-
@Deprecated public class HttpWhiteboardConstants extends java.lang.Object
Deprecated.Use the OSGi Http Whiteboard Service insteadTheHttpWhiteboardConstants
defines constants for values used by the Http Whiteboard registration support.- Since:
- Http Whiteboard Bundle 2.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALIAS
Deprecated.The service registration property indicating the registration alias for aServlet
service.static java.lang.String
CONTEXT_ID
Deprecated.The service registration property indicating the name of aHttpContext
service.static java.lang.String
CONTEXT_SHARED
Deprecated.The service registration property indicating whether aHttpContext
service registered with theCONTEXT_ID
service registration property is shared across bundles or not.static java.lang.String
INIT_PREFIX
Deprecated.Prefix for service registration properties being used as init parameters for theServlet
andFilter
initialization.static java.lang.String
PATTERN
Deprecated.The service registration property indicating the URL patter for aFilter
service.
-
-
-
Field Detail
-
CONTEXT_ID
public static final java.lang.String CONTEXT_ID
Deprecated.The service registration property indicating the name of aHttpContext
service.If the property is set to a non-empty string for an
HttpContext
service it indicates the name by which it may be referred to byServlet
andFilter
services. This is also a required registration property forHttpService
services to be accepted by the Http Whiteboard registration.If the property is set for a
Servlet
orFilter
services it indicates the name of a registeredHttpContext
which is to be used for the registration with the Http Service. If the property is not set for aServlet
orFilter
services or its value is the empty string, a default HttpContext is used which does no security handling and has no MIME type support and which returns resources from the servlet's or the filter's bundle.The value of this service registration property is a single string.
- See Also:
- Constant Field Values
-
CONTEXT_SHARED
public static final java.lang.String CONTEXT_SHARED
Deprecated.The service registration property indicating whether aHttpContext
service registered with theCONTEXT_ID
service registration property is shared across bundles or not. By defaultHttpContext
services are only available toServlet
andFilter
services registered by the same bundle.If this property is set to
true
forHttpContext
service, it may be referred to byServlet
orFilter
services from different bundles.Recommendation: Shared
HttpContext
services should either not implement thegetResource
at all or be registered as service factories to ensure no access to foreign bundle resources is not allowed through this backdoor.The value of this service registration is a single boolean or string. Only if the boolean value is
true
(either byBoolean.booleanValue()
or byBoolean.valueOf(String)
) will theHttpContext
be shared.- See Also:
- Constant Field Values
-
ALIAS
public static final java.lang.String ALIAS
Deprecated.The service registration property indicating the registration alias for aServlet
service. This value is used as the alias parameter for theHttpService.registerServlet
call.A
Servlet
service registered with this service property may also provide aCONTEXT_ID
property which referrs to aHttpContext
service. If such a service is not registered (yet), the servlet will not be registered with the Http Service. Once theHttpContext
service becomes available, the servlet is registered.The value of this service registration property is a single string starting with a slash.
- See Also:
- Constant Field Values
-
PATTERN
public static final java.lang.String PATTERN
Deprecated.The service registration property indicating the URL patter for aFilter
service. This value is used as the pattern parameter for theExtHttpService.registerFilter
call.A
Filter
service registered with this service property may also provide aCONTEXT_ID
property which referrs to aHttpContext
service. If such a service is not registered (yet), the filter will not be registered with the Http Service. Once theHttpContext
service becomes available, the filter is registered.The value of this service registration property is a single string being a regular expression.
Note:
Filter
services are only supported if the Http Service implements theorg.apache.felix.http.api.ExtHttpService
interface.- See Also:
- Constant Field Values
-
INIT_PREFIX
public static final java.lang.String INIT_PREFIX
Deprecated.Prefix for service registration properties being used as init parameters for theServlet
andFilter
initialization.- See Also:
- Constant Field Values
-
-