org.voovan.http.extend.engineio.EIOHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of voovan-web Show documentation
Show all versions of voovan-web Show documentation
Voovan is a java framwork and it not depends on any third-party framework.
package org.voovan.http.extend.engineio;
import org.voovan.http.websocket.WebSocketSession;
import org.voovan.http.websocket.exception.WebSocketFilterException;
import org.voovan.network.exception.SendMessageException;
/**
* 类文字命名
*
* @author: helyho
* Voovan Framework.
* WebSite: https://github.com/helyho/Voovan
* Licence: Apache v2 License
*/
public abstract class EIOHandler {
private WebSocketSession webSocketSession;
private EIOSession eioSession;
public void setWebSocketSession(WebSocketSession webSocketSession) {
this.webSocketSession = webSocketSession;
}
public EIOSession getEIOSession(){
if(eioSession == null){
eioSession = new EIOSession(this.webSocketSession, this);
}
return eioSession;
}
public void send(String msg) throws SendMessageException, WebSocketFilterException {
this.getEIOSession().send(msg);
}
public abstract String execute(String msg);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy