All requests will be handled by registered filter if not specified otherwise.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | FILTERED_CLASSES
Tyrus classes scanned by container will be filtered. |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ApplicationEventListener | |
| private Boolean | Returns: parsedjava. value or null when the value is not boolean or when the init
parameter is not present.used to retrieve init parameter. ctx, String parameter name. paramName)Get |
| private <T extends Enum | |
| private Integer | Returns: parsedInteger value or null when the value is not integer or when the init parameter is
not present.used to retrieve init parameter. ctx, String parameter name. paramName)Get |
| public void | onStartup(Set<Class<?>>
the Set of application classes that extend, implement, or have been annotated with the class types specified
by the classes, final ServletContext HandlesTypes annotation, or null if there are no
matches, or this ServletContainerInitializer has not been annotated with HandlesTypesthe ServletContext of the web application that is being started and in which the classes
contained in c were found ctx)Implements jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. |
| FILTERED_CLASSES | back to summary |
|---|---|
| private static final Set<Class<?>> FILTERED_CLASSES Tyrus classes scanned by container will be filtered. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| TyrusServletContainerInitializer | back to summary |
|---|---|
| public TyrusServletContainerInitializer() | |
| createApplicationEventListener | back to summary |
|---|---|
| private ApplicationEventListener createApplicationEventListener(final ServletContext ctx) | |
| getBooleanContextParam | back to summary |
|---|---|
| private Boolean getBooleanContextParam(ServletContext ctx, String paramName) Get
| |
| getEnumContextParam | back to summary |
|---|---|
| private <T extends Enum | |
| getIntContextParam | back to summary |
|---|---|
| private Integer getIntContextParam(ServletContext ctx, String paramName) Get
| |
| onStartup | back to summary |
|---|---|
| public void onStartup(Set<Class<?>> classes, final ServletContext ctx) throws ServletException Implements jakarta. Doc from jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationEventListener | |
| private final String | |
| private final WebSocketEngine | |
| private final Integer | |
| private final Integer | |
| private final Integer | |
| private final Boolean | |
| private final DebugContext. | |
| private final DebugContext. | |
| private final TyrusServletUpgrade |
| Access | Constructor and Description |
|---|---|
| private | TyrusServerContainerImpl(Set<Class<?>> set, ApplicationEventListener applicationEventListener, Integer incomingBufferSize, Integer maxSessionsPerApp, Integer maxSessionsPerRemoteAddr, Boolean parallelBroadcastEnabled, DebugContext.
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private TyrusServletUpgrade | |
| private static String | |
| public WebSocketEngine | getWebSocketEngine()
Implements org. Return WebSocketEngine to upgrade requests and setting up the connection. |
| private static boolean | |
| public void | register(Class<?> endpointClass)
Implements abstract org.
|
| public void | register(ServerEndpointConfig serverEndpointConfig)
Implements abstract org.
|
| public void | upgradeHttpToWebSocket(Object
The servletRequest, Object HttpServletRequest to be processed as a WebSocket handshake as per
section 4.0 of RFC 6455.The servletResponse, ServerEndpointConfig HttpServletResponse to be used when processing the
httpServletRequest as a WebSocket handshake as per section 4.0 of RFC 6455.The server endpoint configuration to use to configure the WebSocket endpoint sec, Map<String, String> Provides a mapping of path parameter names and values, if any, to be used for the
WebSocket connection established by the call to this method. If no such mapping is
defined, an empty Map must be passed. pathParameters)Overrides org. Implements jakarta. Upgrade the HTTP connection represented by the |
| applicationEventListener | back to summary |
|---|---|
| private final ApplicationEventListener applicationEventListener | |
| contextPath | back to summary |
|---|---|
| private final String contextPath | |
| engine | back to summary |
|---|---|
| private final WebSocketEngine engine | |
| incomingBufferSize | back to summary |
|---|---|
| private final Integer incomingBufferSize | |
| maxSessionsPerApp | back to summary |
|---|---|
| private final Integer maxSessionsPerApp | |
| maxSessionsPerRemoteAddr | back to summary |
|---|---|
| private final Integer maxSessionsPerRemoteAddr | |
| parallelBroadcastEnabled | back to summary |
|---|---|
| private final Boolean parallelBroadcastEnabled | |
| tracingThreshold | back to summary |
|---|---|
| private final DebugContext. | |
| tracingType | back to summary |
|---|---|
| private final DebugContext. | |
| tyrusServletUpgrade | back to summary |
|---|---|
| private final TyrusServletUpgrade tyrusServletUpgrade | |
| TyrusServerContainerImpl | back to summary |
|---|---|
| private TyrusServerContainerImpl(Set<Class<?>> set, ApplicationEventListener applicationEventListener, Integer incomingBufferSize, Integer maxSessionsPerApp, Integer maxSessionsPerRemoteAddr, Boolean parallelBroadcastEnabled, DebugContext. | |
| computeRequestPath | back to summary |
|---|---|
| private static String computeRequestPath(String path, Map<String, String> pathParams) | |
| getServletUpgrade | back to summary |
|---|---|
| private TyrusServletUpgrade getServletUpgrade() | |
| getVariableName | back to summary |
|---|---|
| private static String getVariableName(String segment) | |
| getWebSocketEngine | back to summary |
|---|---|
| public WebSocketEngine getWebSocketEngine() Implements org. Doc from org. Return WebSocketEngine to upgrade requests and setting up the connection.
| |
| isVariable | back to summary |
|---|---|
| private static boolean isVariable(String segment) | |
| register | back to summary |
|---|---|
| public void register(Class<?> endpointClass) throws DeploymentException Implements abstract org.
| |
| register | back to summary |
|---|---|
| public void register(ServerEndpointConfig serverEndpointConfig) throws DeploymentException Implements abstract org.
| |
| upgradeHttpToWebSocket | back to summary |
|---|---|
| public void upgradeHttpToWebSocket(Object servletRequest, Object servletResponse, ServerEndpointConfig sec, Map<String, String> pathParameters) throws IOException, DeploymentException Overrides org. Implements jakarta. Doc from jakarta. Upgrade the HTTP connection represented by the This method is primarily intended to be used by frameworks that implement the front-controller pattern. It does not deploy the provided endpoint.
If the WebSocket implementation is not deployed as part of a Jakarta Servlet container, this method will throw an
| |