| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private TyrusWebSocketEngine | |
| private static final Logger | |
| private TyrusServerContainer | |
| private final Map | |
| private final boolean | |
| private JAXBContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | appendAllHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse)
|
| private static void | appendTraceHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse)
|
| public void | |
| pack-priv TyrusHttpUpgradeHandler | |
| private Map | |
| private synchronized JAXBContext | |
| pack-priv void | |
| pack-priv boolean | Returns: Return true if response is set, i.e. in filter chain the next filter should not be invoked.servlet request httpServletRequest, HttpServletResponse servlet response httpServletResponse)provide the HTTP upgrade |
| engine | back to summary |
|---|---|
| private TyrusWebSocketEngine engine | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| serverContainer | back to summary |
|---|---|
| private TyrusServerContainer serverContainer | |
| sessionToHandler | back to summary |
|---|---|
| private final Map<HttpSession, TyrusHttpUpgradeHandler> sessionToHandler | |
| wsadlEnabled | back to summary |
|---|---|
| private final boolean wsadlEnabled | |
| wsadlJaxbContext | back to summary |
|---|---|
| private JAXBContext wsadlJaxbContext | |
| TyrusServletUpgrade | back to summary |
|---|---|
| pack-priv TyrusServletUpgrade(TyrusWebSocketEngine engine, boolean wsadlEnabled) | |
| appendAllHeaders | back to summary |
|---|---|
| private static void appendAllHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse) | |
| appendTraceHeaders | back to summary |
|---|---|
| private static void appendTraceHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse) | |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| destroySession | back to summary |
|---|---|
| pack-priv TyrusHttpUpgradeHandler destroySession(HttpSession session) | |
| getInitParams | back to summary |
|---|---|
| private Map | |
| getWsadlJaxbContext | back to summary |
|---|---|
| private synchronized JAXBContext getWsadlJaxbContext() throws JAXBException | |
| init | back to summary |
|---|---|
| pack-priv void init(ServletContext servletContext) throws ServletException | |
| upgrade | back to summary |
|---|---|
| pack-priv boolean upgrade(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException, ServletException provide the HTTP upgrade
| |
| Modifier and Type | Field and Description |
|---|---|
| private TyrusHttpUpgradeHandler |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | destroy()
Overrides org. Implements jakarta. It is called when the client is disconnected. |
| pack-priv WebConnection | |
| public void | init(WebConnection
the WebConnection object associated to this upgrade request wc)Overrides org. Implements jakarta. It is called once the HTTP Upgrade process has been completed and the upgraded connection is ready to start using the new protocol. |
| public void | onAllDataRead()
Overrides org. Implements jakarta. Invoked when all data for the current request has been read. |
| public void | onDataAvailable()
Overrides org. Implements jakarta. When an instance of the |
| public void | onError(Throwable
the throwable to indicate why the read operation failed t)Overrides org. Implements jakarta. Invoked when an error occurs processing the request. |
| public void | preInit(WebSocketEngine.
The WebSocket UpgradeInfo. upgradeInfo,The Tyrus SPI Writer. writer, boolean Whether the authentication has been used. authenticated)Overrides org. Sets the required information before |
| public void | sessionDestroyed()
Overrides org. Called when related |
| pack-priv void | |
| public void | setIncomingBufferSize(int
The new incoming frame buffer size value. incomingBufferSize)Overrides org. Override the default |
| handler | back to summary |
|---|---|
| private TyrusHttpUpgradeHandler handler | |
| TyrusHttpUpgradeHandlerProxy | back to summary |
|---|---|
| private TyrusHttpUpgradeHandlerProxy() | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides org. Implements jakarta. Doc from jakarta. It is called when the client is disconnected.
| |
| getWebConnection | back to summary |
|---|---|
| pack-priv WebConnection getWebConnection() Overrides org.
| |
| init | back to summary |
|---|---|
| public void init(WebConnection wc) Overrides org. Implements jakarta. Doc from jakarta. It is called once the HTTP Upgrade process has been completed and the upgraded connection is ready to start using the new protocol.
| |
| onAllDataRead | back to summary |
|---|---|
| public void onAllDataRead() Overrides org. Implements jakarta. Doc from jakarta. Invoked when all data for the current request has been read.
| |
| onDataAvailable | back to summary |
|---|---|
| public void onDataAvailable() Overrides org. Implements jakarta. Doc from jakarta. When an instance of the
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Overrides org. Implements jakarta. Doc from jakarta. Invoked when an error occurs processing the request. | |
| preInit | back to summary |
|---|---|
| public void preInit(WebSocketEngine. Overrides org. Doc from org. Sets the required information before
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed() Overrides org. Doc from org. Called when related Implementation is required to call onClose() on server-side with corresponding close code (1008, see WebSocket spec 7.2) - only when there is an authorized user for this session.
| |
| setHandler | back to summary |
|---|---|
| pack-priv void setHandler(TyrusHttpUpgradeHandler handler) | |
| setIncomingBufferSize | back to summary |
|---|---|
| public void setIncomingBufferSize(int incomingBufferSize) Overrides org. Doc from org. Override the default
| |