Search in sources :

Example 1 with HessianSkeleton

use of com.caucho.hessian.server.HessianSkeleton in project dubbo by alibaba.

the class HessianProtocol method doExport.

protected <T> Runnable doExport(T impl, Class<T> type, URL url) throws RpcException {
    String addr = url.getIp() + ":" + url.getPort();
    HttpServer server = serverMap.get(addr);
    if (server == null) {
        server = httpBinder.bind(url, new HessianHandler());
        serverMap.put(addr, server);
    }
    final String path = url.getAbsolutePath();
    HessianSkeleton skeleton = new HessianSkeleton(impl, type);
    skeletonMap.put(path, skeleton);
    return new Runnable() {

        public void run() {
            skeletonMap.remove(path);
        }
    };
}
Also used : HttpServer(com.alibaba.dubbo.remoting.http.HttpServer) HessianSkeleton(com.caucho.hessian.server.HessianSkeleton)

Example 2 with HessianSkeleton

use of com.caucho.hessian.server.HessianSkeleton in project spring-framework by spring-projects.

the class HessianExporter method prepare.

/**
	 * Initialize this exporter.
	 */
public void prepare() {
    checkService();
    checkServiceInterface();
    this.skeleton = new HessianSkeleton(getProxyForService(), getServiceInterface());
}
Also used : HessianSkeleton(com.caucho.hessian.server.HessianSkeleton)

Aggregations

HessianSkeleton (com.caucho.hessian.server.HessianSkeleton)2 HttpServer (com.alibaba.dubbo.remoting.http.HttpServer)1