@Deprecate a method as it's not needed anymore
This commit is contained in:
parent
8a5e249d6f
commit
aaca9df99a
@ -239,6 +239,7 @@ public abstract class WebSocketServerHandshaker {
|
||||
for (String supportedSubprotocol: subprotocols) {
|
||||
if (SUB_PROTOCOL_WILDCARD.equals(supportedSubprotocol)
|
||||
|| requestedSubprotocol.equals(supportedSubprotocol)) {
|
||||
selectedSubprotocol = requestedSubprotocol;
|
||||
return requestedSubprotocol;
|
||||
}
|
||||
}
|
||||
@ -258,6 +259,7 @@ public abstract class WebSocketServerHandshaker {
|
||||
return selectedSubprotocol;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
protected void setSelectedSubprotocol(String value) {
|
||||
selectedSubprotocol = value;
|
||||
}
|
||||
|
@ -141,7 +141,6 @@ public class WebSocketServerHandshaker00 extends WebSocketServerHandshaker {
|
||||
throw new WebSocketHandshakeException("Requested subprotocol(s) not supported: " + subprotocols);
|
||||
} else {
|
||||
res.headers().add(SEC_WEBSOCKET_PROTOCOL, selectedSubprotocol);
|
||||
setSelectedSubprotocol(selectedSubprotocol);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,6 @@ public class WebSocketServerHandshaker07 extends WebSocketServerHandshaker {
|
||||
throw new WebSocketHandshakeException("Requested subprotocol(s) not supported: " + subprotocols);
|
||||
} else {
|
||||
res.headers().add(Names.SEC_WEBSOCKET_PROTOCOL, selectedSubprotocol);
|
||||
setSelectedSubprotocol(selectedSubprotocol);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
@ -125,7 +125,6 @@ public class WebSocketServerHandshaker08 extends WebSocketServerHandshaker {
|
||||
throw new WebSocketHandshakeException("Requested subprotocol(s) not supported: " + subprotocols);
|
||||
} else {
|
||||
res.headers().add(Names.SEC_WEBSOCKET_PROTOCOL, selectedSubprotocol);
|
||||
setSelectedSubprotocol(selectedSubprotocol);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
@ -124,7 +124,6 @@ public class WebSocketServerHandshaker13 extends WebSocketServerHandshaker {
|
||||
"Requested subprotocol(s) not supported: " + subprotocols);
|
||||
} else {
|
||||
res.headers().add(Names.SEC_WEBSOCKET_PROTOCOL, selectedSubprotocol);
|
||||
setSelectedSubprotocol(selectedSubprotocol);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user