-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some fixes for running cometd6 on jetty-10 #3702
Conversation
{ | ||
super.init(config); | ||
config.getServletContext().log("org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter is deprecated. Use org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message is wrong, it should be the other way around.
Use WebSocketUpgradeFilter.class.getName()
instead of the explicit string.
Also, you want this to be logged via a normal Logger
instance too, not only using the ServletContext.log
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the message.
The context logger is typically just a normal Logger also, so it get's the message out.
Signed-off-by: Greg Wilkins <gregw@webtide.com>
ec7b268
to
da34fba
Compare
Signed-off-by: Greg Wilkins <gregw@webtide.com>
import javax.servlet.ServletException; | ||
|
||
/** | ||
* @Deprecated Moved to #org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The javadoc deprecation as lower case d
for "deprecated".
super.init(config); | ||
config.getServletContext().log( | ||
WebSocketUpgradeFilter.class.getName() + | ||
" is deprecated Use " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a comma or a full stop? Capital U
for "Use"?
Signed-off-by: Greg Wilkins <gregw@webtide.com>
Signed-off-by: Greg Wilkins <gregw@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor other nit, otherwise looks good.
if (_dispatches==0) | ||
return type==REQUEST || type==ASYNC && _holder.isAsyncSupported(); | ||
return type==REQUEST || type==ASYNC && holder.isAsyncSupported(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit pick, can you properly indent this return
?
some minor fixes found while testing cometd6