public interface PaxWebConstants
Different constants used across Pax Web but not related to configuration that may be specified using
org.ops4j.pax.web PID or system/bundle context properties. For configuration related constants, see
PaxWebConfig.
Constants names use the following prefixes:
SERVICE_PROPERTY_ - for names of OSGi service registration propertiesINIT_PARAM_ - for legacy init parameters passed to HttpService
registration methods that are handled in special way by Pax Web.CONTEXT_PARAM_ - for ServletContext attributes set by Pax Web.DEFAULT_ - for miscellaneous default values (default VHost, default name, default context,
...| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_PARAM_BUNDLE_CONTEXT
Servlet context attribute containing the bundle context of the bundle registering the http context
according to 128.6.1 "Bundle Context Access" chapter of OSGi CMPN 128 "Web Applications Specification"
|
static String |
CONTEXT_PARAM_PAX_WEB_FACELETS_LIBRARIES
According to "11.1.3 Application Configuration Parameters" of JSF 2.3 specification,
javax.faces.FACELETS_LIBRARIES is a list of resource names relative to context root. |
static String |
CONTEXT_PARAM_SPRING_BUNDLE_CONTEXT
For legacy Spring-DM support,
BundleContext should be available under this param |
static String |
DEFAULT_CONTEXT_NAME
Default name for context (e.g.,
ServletContextHelper) |
static String |
DEFAULT_CONTEXT_PATH
Default
context path |
static String |
DEFAULT_INIT_PREFIX_PROP
Deprecated.
servlet.init./filter.init./context.init. should be used instead - see
HttpWhiteboardConstants. |
static String |
DEFAULT_JSP_SCI_CLASS
The only supported
ServletContainerInitializer class that configures JSP engine |
static String |
DEFAULT_JSP_SERVLET_CLASS
The only supported JSP servlet class name
|
static String |
DEFAULT_JSP_SERVLET_NAME
Default (not overrideable) JSP servlet name
|
static String |
DEFAULT_PAX_WEB_JSP_SYMBOLIC_NAME
Symbolic Name of pax-web-jsp bundle
|
static Integer |
DEFAULT_SESSION_TIMEOUT
Default session timeout
|
static String |
DEFAULT_SHARED_CONTEXT_NAME
Name for default shared contexts - Pax Web specific
|
static String |
DEFAULT_VIRTUAL_HOST_NAME
Default name for virtual host
|
static String |
DEFAULT_WEBSOCKET_JETTY_SCI_CLASS
The only supported
ServletContainerInitializer class that configures WebSocket
container for Jetty |
static String |
DEFAULT_WEBSOCKET_SCI_CLASS
The only supported
ServletContainerInitializer for generic configuration of
WebSocket container |
static String |
DEFAULT_WEBSOCKET_TOMCAT_SCI_CLASS
The only supported
ServletContainerInitializer class that configures WebSocket
container for Tomcat |
static String |
DEFAULT_WEBSOCKET_UNDERTOW_SCI_CLASS
The only supported
ServletContainerInitializer class that configures WebSocket
container for Undertow |
static String |
HEADER_CONNECTORS
Pax Web specific manifest header of the WAB to specify matching connector names/ids for given context/WAB
|
static String |
HEADER_CONTEXT_PATH
Manifest header key for web application bundles according to 128.3.1 WAB Definition.
|
static String |
HEADER_VIRTUAL_HOSTS
Pax Web specific manifest header of the WAB to specify matching virtual hosts for given context/WAB.
|
static String[] |
HTTPSERVICE_REGISTRATION_NAMES
Actual OSGi Http Service will be registered under these
objectClass names. |
static String |
INIT_PARAM_FILTER_MAPPING_DISPATCHER
Deprecated.
|
static String |
INIT_PARAM_FILTER_NAME
Deprecated.
|
static String |
INIT_PARAM_SERVLET_NAME
Deprecated.
|
static String |
PID
Service PID used for configuration.
|
static String |
SERVICE_PROPERTY_ASYNC_SUPPORTED
Deprecated.
|
static String |
SERVICE_PROPERTY_CONNECTORS
Improved name for the service registration property to configure connectors of the context
(
ServletContextHelper, HttpContext, etc.). |
static String |
SERVICE_PROPERTY_CONNECTORS_LEGACY
Deprecated.
|
static String |
SERVICE_PROPERTY_HTTP_CONTEXT_ID
Deprecated.
Use
HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME |
static String |
SERVICE_PROPERTY_HTTP_CONTEXT_PATH
Deprecated.
Use
HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_PATH |
static String |
SERVICE_PROPERTY_HTTP_CONTEXT_SHARED
Deprecated.
User
ServletContextHelper services which are "shared"
by default |
static String |
SERVICE_PROPERTY_INIT_PREFIX
Deprecated.
|
static String |
SERVICE_PROPERTY_INTERNAL
Service registration property to mark services as internal, so they're not processed by Pax Web
Whiteboard extender as normal Whiteboard services.
|
static String |
SERVICE_PROPERTY_LOAD_ON_STARTUP
Deprecated.
|
static String |
SERVICE_PROPERTY_SERVLET_ALIAS
Deprecated.
|
static String |
SERVICE_PROPERTY_SERVLET_NAMES
Deprecated.
|
static String |
SERVICE_PROPERTY_URL_PATTERNS
Deprecated.
|
static String |
SERVICE_PROPERTY_VIRTUAL_HOSTS
Improved name for the service registration property to configure virtual hosts of the context
(
ServletContextHelper, HttpContext, etc.). |
static String |
SERVICE_PROPERTY_VIRTUAL_HOSTS_LEGACY
Deprecated.
|
static String |
SERVICE_PROPERTY_WEB_SERVLETCONTEXT_NAME
Context name of the WAB bundle or bundle registering OSGi servlet context (Pax Web addition)
|
static String |
SERVICE_PROPERTY_WEB_SERVLETCONTEXT_PATH
Context path of the WAB bundle or bundle registering OSGi servlet context
|
static String |
SERVICE_PROPERTY_WEB_SYMBOLIC_NAME
Symbolic name of the WAB bundle or bundle registering OSGi servlet context
|
static String |
SERVICE_PROPERTY_WEB_VERSION
Version of the WAB bundle or bundle registering OSGi servlet context
|
static String |
SERVICE_PROPERTY_WEBSOCKET
Service registration property indication WebSocket registration.
|
static String |
SERVICE_PROPERTY_WEBSOCKET_LEGACY
Deprecated.
|
static final String PID
static final String[] HTTPSERVICE_REGISTRATION_NAMES
objectClass names.static final String DEFAULT_CONTEXT_NAME
ServletContextHelper)static final String DEFAULT_SHARED_CONTEXT_NAME
static final String DEFAULT_VIRTUAL_HOST_NAME
static final String DEFAULT_JSP_SERVLET_NAME
static final String DEFAULT_JSP_SERVLET_CLASS
static final String DEFAULT_JSP_SCI_CLASS
ServletContainerInitializer class that configures JSP enginestatic final String DEFAULT_WEBSOCKET_JETTY_SCI_CLASS
ServletContainerInitializer class that configures WebSocket
container for Jettystatic final String DEFAULT_WEBSOCKET_TOMCAT_SCI_CLASS
ServletContainerInitializer class that configures WebSocket
container for Tomcatstatic final String DEFAULT_WEBSOCKET_UNDERTOW_SCI_CLASS
ServletContainerInitializer class that configures WebSocket
container for Undertowstatic final String DEFAULT_WEBSOCKET_SCI_CLASS
ServletContainerInitializer for generic configuration of
WebSocket containerstatic final String DEFAULT_CONTEXT_PATH
context pathstatic final Integer DEFAULT_SESSION_TIMEOUT
static final String DEFAULT_PAX_WEB_JSP_SYMBOLIC_NAME
static final String HEADER_CONTEXT_PATH
static final String HEADER_VIRTUAL_HOSTS
hosst@connector syntax, a slash has to be used instead of at-sign.static final String HEADER_CONNECTORS
static final String SERVICE_PROPERTY_INTERNAL
static final String SERVICE_PROPERTY_WEBSOCKET
HttpWhiteboardConstants.HTTP_WHITEBOARD_LISTENER@Deprecated static final String SERVICE_PROPERTY_WEBSOCKET_LEGACY
@Deprecated static final String SERVICE_PROPERTY_VIRTUAL_HOSTS_LEGACY
Pax Web specific service property used when registering:
ServletContextHelperMappingHttpContextMappingServletContextHelperHttpContextContextMapping.getVirtualHosts() takes precedence).
The value should be String, array of Strings or Collection of Strings. When missing, context is assumed to be associated with all virtual hosts.
static final String SERVICE_PROPERTY_VIRTUAL_HOSTS
Improved name for the service registration property to configure virtual hosts of the context
(ServletContextHelper, HttpContext, etc.).
See http://www.eclipse.org/jetty/documentation/jetty-9/index.html#configuring-virtual-hosts
@Deprecated static final String SERVICE_PROPERTY_CONNECTORS_LEGACY
Pax Web specific service property used when registering:
ServletContextHelperMappingHttpContextMappingServletContextHelperHttpContextContextMapping.getConnectors() takes precedence).
The value should be String, array of Strings or Collection of Strings. When missing, context is assumed to be accessible through all connectors.
static final String SERVICE_PROPERTY_CONNECTORS
Improved name for the service registration property to configure connectors of the context
(ServletContextHelper, HttpContext, etc.).
See http://www.eclipse.org/jetty/documentation/jetty-9/index.html#configuring-virtual-hosts
@Deprecated static final String SERVICE_PROPERTY_HTTP_CONTEXT_ID
HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME@Deprecated static final String SERVICE_PROPERTY_HTTP_CONTEXT_SHARED
ServletContextHelper services which are "shared"
by defaultHttpContext services.@Deprecated static final String SERVICE_PROPERTY_HTTP_CONTEXT_PATH
HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_PATH@Deprecated static final String SERVICE_PROPERTY_SERVLET_ALIAS
@Deprecated static final String SERVICE_PROPERTY_URL_PATTERNS
@Deprecated static final String SERVICE_PROPERTY_SERVLET_NAMES
@Deprecated static final String SERVICE_PROPERTY_ASYNC_SUPPORTED
<async-supported> configuration@Deprecated static final String SERVICE_PROPERTY_LOAD_ON_STARTUP
<load-on-startup> configuration@Deprecated static final String SERVICE_PROPERTY_INIT_PREFIX
@Deprecated static final String DEFAULT_INIT_PREFIX_PROP
servlet.init./filter.init./context.init. should be used instead - see
HttpWhiteboardConstants.@Deprecated static final String INIT_PARAM_SERVLET_NAME
Init parameter that can be used to specify servlet name.
WebContainer provides registration methods, where servlet name can be specified directly. Also
according to Http Service and Whiteboard Service specifications, servlet name defaults to FQCN of the servlet.
@Deprecated static final String INIT_PARAM_FILTER_NAME
Init parameter that can be used to specify filter name.
WebContainer provides registration methods, where filter name can be specified directly. Also
according to Http Service and Whiteboard Service specifications, filter name defaults to FQCN of the servlet.
@Deprecated static final String INIT_PARAM_FILTER_MAPPING_DISPATCHER
DispatcherType.REQUESTDispatcherType.FORWARDDispatcherType.INCLUDEDispatcherType.ERRORDispatcherType.ASYNCvalues are not case sensitive.
static final String CONTEXT_PARAM_BUNDLE_CONTEXT
static final String CONTEXT_PARAM_SPRING_BUNDLE_CONTEXT
BundleContext should be available under this paramstatic final String CONTEXT_PARAM_PAX_WEB_FACELETS_LIBRARIES
According to "11.1.3 Application Configuration Parameters" of JSF 2.3 specification,
javax.faces.FACELETS_LIBRARIES is a list of resource names relative to context root. This is not
supposed to find resources in embedded JARs, but there's no other easy way to let MyFaces find such taglib
resources in Pax Web.
Normally, org.apache.myfaces.view.facelets.util.Classpath#_searchResource() assumes that the
URL is JarURLConnection when doing recursive search and does a special GAE check. Nothing that could
help us provide nice OSGi-aware discovery mechanism. That's why this context parameter will provide special
Map that can be used when searching for FACELET resources.
static final String SERVICE_PROPERTY_WEB_SYMBOLIC_NAME
static final String SERVICE_PROPERTY_WEB_VERSION
static final String SERVICE_PROPERTY_WEB_SERVLETCONTEXT_PATH
static final String SERVICE_PROPERTY_WEB_SERVLETCONTEXT_NAME
Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.