Class HttpWhiteboardConstants
- java.lang.Object
 - 
- org.apache.felix.http.whiteboard.HttpWhiteboardConstants
 
 
- 
@Deprecated public class HttpWhiteboardConstants extends java.lang.ObjectDeprecated.Use the OSGi Http Whiteboard Service insteadTheHttpWhiteboardConstantsdefines 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.StringALIASDeprecated.The service registration property indicating the registration alias for aServletservice.static java.lang.StringCONTEXT_IDDeprecated.The service registration property indicating the name of aHttpContextservice.static java.lang.StringCONTEXT_SHAREDDeprecated.The service registration property indicating whether aHttpContextservice registered with theCONTEXT_IDservice registration property is shared across bundles or not.static java.lang.StringINIT_PREFIXDeprecated.Prefix for service registration properties being used as init parameters for theServletandFilterinitialization.static java.lang.StringPATTERNDeprecated.The service registration property indicating the URL patter for aFilterservice. 
 - 
 
- 
- 
Field Detail
- 
CONTEXT_ID
public static final java.lang.String CONTEXT_ID
Deprecated.The service registration property indicating the name of aHttpContextservice.If the property is set to a non-empty string for an
HttpContextservice it indicates the name by which it may be referred to byServletandFilterservices. This is also a required registration property forHttpServiceservices to be accepted by the Http Whiteboard registration.If the property is set for a
ServletorFilterservices it indicates the name of a registeredHttpContextwhich is to be used for the registration with the Http Service. If the property is not set for aServletorFilterservices 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 aHttpContextservice registered with theCONTEXT_IDservice registration property is shared across bundles or not. By defaultHttpContextservices are only available toServletandFilterservices registered by the same bundle.If this property is set to
trueforHttpContextservice, it may be referred to byServletorFilterservices from different bundles.Recommendation: Shared
HttpContextservices should either not implement thegetResourceat 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 theHttpContextbe shared.- See Also:
 - Constant Field Values
 
 
- 
ALIAS
public static final java.lang.String ALIAS
Deprecated.The service registration property indicating the registration alias for aServletservice. This value is used as the alias parameter for theHttpService.registerServletcall.A
Servletservice registered with this service property may also provide aCONTEXT_IDproperty which referrs to aHttpContextservice. If such a service is not registered (yet), the servlet will not be registered with the Http Service. Once theHttpContextservice 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 aFilterservice. This value is used as the pattern parameter for theExtHttpService.registerFiltercall.A
Filterservice registered with this service property may also provide aCONTEXT_IDproperty which referrs to aHttpContextservice. If such a service is not registered (yet), the filter will not be registered with the Http Service. Once theHttpContextservice becomes available, the filter is registered.The value of this service registration property is a single string being a regular expression.
Note:
Filterservices are only supported if the Http Service implements theorg.apache.felix.http.api.ExtHttpServiceinterface.- 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 theServletandFilterinitialization.- See Also:
 - Constant Field Values
 
 
 - 
 
 -