Search in sources :

Example 1 with HttpBinding

use of com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding in project sofa-boot by sofastack.

the class HttpBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new HttpBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new HttpBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : HttpBindingParam(com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam) HttpBinding(com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 2 with HttpBinding

use of com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding in project sofa-boot by sofastack.

the class HttpBindingConverter method convert.

@Override
public RpcBinding convert(SofaReference sofaReferenceAnnotation, SofaReferenceBinding sofaReferenceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new HttpBindingParam();
    convertReferenceAnnotation(bindingParam, sofaReferenceBindingAnnotation, bindingConverterContext);
    return new HttpBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : HttpBindingParam(com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam) HttpBinding(com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 3 with HttpBinding

use of com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding in project sofa-boot by alipay.

the class HttpBindingConverter method convert.

@Override
public RpcBinding convert(SofaReference sofaReferenceAnnotation, SofaReferenceBinding sofaReferenceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new HttpBindingParam();
    convertReferenceAnnotation(bindingParam, sofaReferenceBindingAnnotation, bindingConverterContext);
    return new HttpBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : HttpBindingParam(com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam) HttpBinding(com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Example 4 with HttpBinding

use of com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding in project sofa-boot by alipay.

the class HttpBindingConverter method convert.

@Override
public RpcBinding convert(SofaService sofaServiceAnnotation, SofaServiceBinding sofaServiceBindingAnnotation, BindingConverterContext bindingConverterContext) {
    RpcBindingParam bindingParam = new HttpBindingParam();
    convertServiceAnnotation(bindingParam, sofaServiceAnnotation, sofaServiceBindingAnnotation, bindingConverterContext);
    return new HttpBinding(bindingParam, bindingConverterContext.getApplicationContext(), bindingConverterContext.isInBinding());
}
Also used : HttpBindingParam(com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam) HttpBinding(com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding) RpcBindingParam(com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)

Aggregations

HttpBinding (com.alipay.sofa.rpc.boot.runtime.binding.HttpBinding)4 HttpBindingParam (com.alipay.sofa.rpc.boot.runtime.param.HttpBindingParam)4 RpcBindingParam (com.alipay.sofa.rpc.boot.runtime.param.RpcBindingParam)4