@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); RpcContext context = RpcContext.getContext(); for (String key : context.getAttachments().keySet()) { connection.addHeader(Constants.DEFAULT_EXCHANGER + key, context.getAttachment(key)); } return connection; } }
@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); RpcContext context = RpcContext.getContext(); for (String key : context.getAttachments().keySet()) { connection.addHeader(Constants.DEFAULT_EXCHANGER + key, context.getAttachment(key)); } return connection; } }
@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); RpcContext context = RpcContext.getContext(); for (String key : context.getAttachments().keySet()) { connection.addHeader(Constants.DEFAULT_EXCHANGER + key, context.getAttachment(key)); } return connection; } }
@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); RpcContext context = RpcContext.getContext(); for (String key : context.getAttachments().keySet()) { connection.addHeader(Constants.DEFAULT_EXCHANGER + key, context.getAttachment(key)); } return connection; } }
@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); String interfaze = HessianUrlUtil.extractInterface(url.toString()); ReferenceConfig referenceConfig = referenceConfigMap.get(interfaze); String secretKey = referenceConfig.getSecretKey(); int version = referenceConfig.getVersion(); connection.addHeader(ThunderConstant.INTERFACE_ATTRIBUTE_NAME, interfaze); connection.addHeader(ThunderConstant.SECRET_KEY_ATTRIBUTE_NAME, secretKey); connection.addHeader(ThunderConstant.VERSION_ATTRIBUTE_NAME, String.valueOf(version)); return connection; } };
@Override public HessianConnection open(URL url) throws IOException { HessianConnection connection = super.open(url); RpcContext context = RpcContext.getContext(); for (String key : context.getAttachments().keySet()) { connection.addHeader(Constants.DEFAULT_EXCHANGER + key, context.getAttachment(key)); } return connection; } }