@@ -61,7 +61,7 @@ public WsOauthHandlerBase(String name) {
6161 }, 30 , 30 , TimeUnit .SECONDS );
6262 }
6363
64- void setTokenHandler (OauthTokenManager tokenHandler ) {
64+ public void setTokenHandler (OauthTokenManager tokenHandler ) {
6565 this .tokenHandler = tokenHandler ;
6666 }
6767
@@ -96,7 +96,7 @@ public boolean isConnected(Session session) {
9696 public void onConnect (WsConnectContext ctx ) throws Exception {
9797 handleConnect (ctx );
9898 }
99-
99+
100100 protected void handleConnect (WsConnectContext ctx ) throws Exception {
101101 log .debug ("(" + name + ") New client tries to connect: [{}]" , ctx .session .getRemoteAddress ());
102102 String token = ctx .header ("Authorization" );
@@ -161,7 +161,7 @@ protected void handleMessage(WsMessageContext ctx) throws Exception {
161161 public void onBinaryMsg (WsBinaryMessageContext ctx ) throws Exception {
162162 handleBinaryMessage (ctx );
163163 }
164-
164+
165165 protected void handleBinaryMessage (WsBinaryMessageContext ctx ) throws Exception {
166166 log .debug ("(" + name + ") Received binary message from [{}]: [{}] bytes" , ctx .session .getRemoteAddress (),
167167 ctx .data ().length );
@@ -179,7 +179,7 @@ protected void handleBinaryMessage(WsBinaryMessageContext ctx) throws Exception
179179 public void onClose (WsCloseContext ctx ) throws Exception {
180180 handleClose (ctx );
181181 }
182-
182+
183183 protected void handleClose (WsCloseContext ctx ) throws Exception {
184184 log .debug ("(" + name + ") Disconnected client: [{}]" , ctx .session .getRemoteAddress ());
185185 removeClient (ctx .session );
@@ -189,7 +189,7 @@ protected void handleClose(WsCloseContext ctx) throws Exception {
189189 public void onError (WsErrorContext ctx ) throws Exception {
190190 handleError (ctx );
191191 }
192-
192+
193193 protected void handleError (WsErrorContext ctx ) throws Exception {
194194 Throwable t = ctx .error ();
195195 if (t instanceof EOFException || t instanceof IOException ) {
0 commit comments