Class HttpWhiteboardConstants
HttpWhiteboardConstants defines constants for values
used by the Http Whiteboard registration support.- Since:
- Http Whiteboard Bundle 2.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.The service registration property indicating the registration alias for aServletservice.static final StringDeprecated.The service registration property indicating the name of aHttpContextservice.static final StringDeprecated.The service registration property indicating whether aHttpContextservice registered with theCONTEXT_IDservice registration property is shared across bundles or not.static final StringDeprecated.Prefix for service registration properties being used as init parameters for theServletandFilterinitialization.static final StringDeprecated.The service registration property indicating the URL patter for aFilterservice. -
Method Summary
-
Field Details
-
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:
-
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:
-
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:
-
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:
-
INIT_PREFIX
Deprecated.Prefix for service registration properties being used as init parameters for theServletandFilterinitialization.- See Also:
-