Consumes only requests with HandshakeRequest#SEC_WEBSOCKET_KEY headers present, all others are passed back
to
FilterChain.
| Modifier and Type | Field and Description |
|---|---|
| private TyrusServletUpgrade |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | appendTraceHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse)
|
| public void | destroy()
Overrides default jakarta. Called by the web container to indicate to a filter that it is being taken out of service. |
| public void | doFilter(final ServletRequest
the request, final ServletResponse ServletRequest object contains the client's requestthe response, FilterChain ServletResponse object contains the filter's responsethe filterChain)FilterChain for invoking the next filter or the resourceImplements jakarta. The |
| public void | init(FilterConfig
a filterConfig)FilterConfig object containing the filter's configuration and initialization
parametersOverrides default jakarta. Called by the web container to indicate to a filter that it is being placed into service. |
| public void | sessionCreated(HttpSessionEvent
the HttpSessionEvent containing the session se)Overrides default jakarta. Receives notification that a session has been created. |
| public void | sessionDestroyed(HttpSessionEvent
the HttpSessionEvent containing the session se)Overrides default jakarta. Receives notification that a session is about to be invalidated. |
| tyrusServletUpgrade | back to summary |
|---|---|
| private TyrusServletUpgrade tyrusServletUpgrade | |
| TyrusServletFilter | back to summary |
|---|---|
| pack-priv TyrusServletFilter(TyrusServletUpgrade tyrusServletUpgrade) | |
| appendTraceHeaders | back to summary |
|---|---|
| private static void appendTraceHeaders(HttpServletResponse httpServletResponse, TyrusUpgradeResponse tyrusUpgradeResponse) | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides default jakarta. Doc from jakarta. Called by the web container to indicate to a filter that it is being taken out of service. This method is only called once all threads within the filter's doFilter method have exited or after a timeout period has passed. After the web container calls this method, it will not call the doFilter method again on this instance of the filter. This method gives the filter an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the filter's current state in memory.
| |
| doFilter | back to summary |
|---|---|
| public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain filterChain) throws IOException, ServletException Implements jakarta. Doc from jakarta. The A typical implementation of this method would follow the following pattern:
| |
| init | back to summary |
|---|---|
| public void init(FilterConfig filterConfig) throws ServletException Overrides default jakarta. Doc from jakarta. Called by the web container to indicate to a filter that it is being placed into service.
The servlet container calls the init method exactly once after instantiating the filter. The init method must
complete successfully before the filter is asked to do any filtering work. The container will ensure that actions
performed in the The web container cannot place the filter into service if the init method either
| |
| sessionCreated | back to summary |
|---|---|
| public void sessionCreated(HttpSessionEvent se) Overrides default jakarta. Doc from jakarta. Receives notification that a session has been created.
| |
| sessionDestroyed | back to summary |
|---|---|
| public void sessionDestroyed(HttpSessionEvent se) Overrides default jakarta. Doc from jakarta. Receives notification that a session is about to be invalidated.
| |