org.frameworkset.web.socket.handler.AbstractTransportHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-websocket Show documentation
Show all versions of bboss-websocket Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
The newest version!
package org.frameworkset.web.socket.handler;
import java.nio.charset.Charset;
import org.frameworkset.web.socket.sockjs.SockJsServiceConfig;
import org.frameworkset.web.socket.sockjs.TransportHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class AbstractTransportHandler implements TransportHandler {
protected static final Charset UTF8_CHARSET = Charset.forName("UTF-8");
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
private SockJsServiceConfig serviceConfig;
@Override
public void initialize(SockJsServiceConfig serviceConfig) {
this.serviceConfig = serviceConfig;
}
public SockJsServiceConfig getServiceConfig() {
return this.serviceConfig;
}
}