public class org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol extends org.apache.dubbo.rpc.protocol.AbstractProxyProtocol
{
public static final int DEFAULT_PORT;
private final org.apache.cxf.bus.extension.ExtensionManagerBus bus;
private org.apache.cxf.binding.soap.SoapTransportFactory transportFactory;
private org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean;
private org.apache.cxf.transport.http.DestinationRegistry destinationRegistry;
private org.apache.dubbo.remoting.http.HttpBinder httpBinder;
private org.apache.cxf.endpoint.Server server;
public void <init>()
{
org.apache.cxf.bus.extension.ExtensionManagerBus v, v;
java.lang.Class[] v;
org.apache.cxf.transport.servlet.ServletDestinationFactory v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
v = newarray (java.lang.Class)[1];
v[0] = class "Lorg/apache/cxf/interceptor/Fault;";
specialinvoke v.<org.apache.dubbo.rpc.protocol.AbstractProxyProtocol: void <init>(java.lang.Class[])>(v);
v = new org.apache.cxf.bus.extension.ExtensionManagerBus;
specialinvoke v.<org.apache.cxf.bus.extension.ExtensionManagerBus: void <init>()>();
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.bus.extension.ExtensionManagerBus bus> = v;
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.binding.soap.SoapTransportFactory transportFactory> = null;
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean> = null;
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.transport.http.DestinationRegistry destinationRegistry> = null;
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.endpoint.Server server> = null;
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.bus.extension.ExtensionManagerBus bus>;
v = new org.apache.cxf.transport.servlet.ServletDestinationFactory;
specialinvoke v.<org.apache.cxf.transport.servlet.ServletDestinationFactory: void <init>()>();
virtualinvoke v.<org.apache.cxf.bus.extension.ExtensionManagerBus: void setExtension(java.lang.Object,java.lang.Class)>(v, class "Lorg/apache/cxf/transport/http/HttpDestinationFactory;");
return;
}
public void setHttpBinder(org.apache.dubbo.remoting.http.HttpBinder)
{
org.apache.dubbo.remoting.http.HttpBinder v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
v := @parameter: org.apache.dubbo.remoting.http.HttpBinder;
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.dubbo.remoting.http.HttpBinder httpBinder> = v;
return;
}
public int getDefaultPort()
{
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
return 80;
}
protected java.lang.Runnable doExport(java.lang.Object, java.lang.Class, org.apache.dubbo.common.URL) throws org.apache.dubbo.rpc.RpcException
{
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$WebServiceHandler v;
org.apache.dubbo.rpc.protocol.AbstractProxyProtocol$ProxyProtocolServer v;
org.apache.dubbo.common.URL v;
org.apache.cxf.bus.extension.ExtensionManagerBus v;
java.util.Map v, v;
org.apache.cxf.frontend.ServerFactoryBean v, v, v, v, v, v, v, v;
java.lang.String v, v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$URLHashMethodNameSoapActionServiceConfiguration v;
org.apache.dubbo.remoting.http.HttpBinder v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$1 v;
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean v;
org.apache.cxf.endpoint.Server v;
org.apache.cxf.transport.http.DestinationRegistryImpl v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
java.util.List v;
org.apache.dubbo.remoting.http.HttpServer v;
java.lang.Class v;
java.lang.Object v, v;
org.apache.cxf.binding.soap.SoapTransportFactory v, v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.Class;
v := @parameter: org.apache.dubbo.common.URL;
v = new org.apache.cxf.binding.soap.SoapTransportFactory;
specialinvoke v.<org.apache.cxf.binding.soap.SoapTransportFactory: void <init>()>();
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.binding.soap.SoapTransportFactory transportFactory> = v;
v = new org.apache.cxf.transport.http.DestinationRegistryImpl;
specialinvoke v.<org.apache.cxf.transport.http.DestinationRegistryImpl: void <init>()>();
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.transport.http.DestinationRegistry destinationRegistry> = v;
v = virtualinvoke v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: java.lang.String getAddr(org.apache.dubbo.common.URL)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: java.util.Map serverMap>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.dubbo.remoting.http.HttpBinder httpBinder>;
v = new org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$WebServiceHandler;
specialinvoke v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$WebServiceHandler: void <init>(org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol)>(v);
v = interfaceinvoke v.<org.apache.dubbo.remoting.http.HttpBinder: org.apache.dubbo.remoting.http.HttpServer bind(org.apache.dubbo.common.URL,org.apache.dubbo.remoting.http.HttpHandler)>(v, v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: java.util.Map serverMap>;
v = new org.apache.dubbo.rpc.protocol.AbstractProxyProtocol$ProxyProtocolServer;
specialinvoke v.<org.apache.dubbo.rpc.protocol.AbstractProxyProtocol$ProxyProtocolServer: void <init>(org.apache.dubbo.rpc.protocol.AbstractProxyProtocol,org.apache.dubbo.remoting.RemotingServer)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
label:
v = new org.apache.cxf.frontend.ServerFactoryBean;
specialinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void <init>()>();
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean> = v;
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getAbsolutePath()>();
virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void setAddress(java.lang.String)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void setServiceClass(java.lang.Class)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void setServiceBean(java.lang.Object)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.bus.extension.ExtensionManagerBus bus>;
virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void setBus(org.apache.cxf.Bus)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.binding.soap.SoapTransportFactory transportFactory>;
virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: void setDestinationFactory(org.apache.cxf.transport.DestinationFactory)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
v = virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean getServiceFactory()>();
v = virtualinvoke v.<org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean: java.util.List getConfigurations()>();
v = new org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$URLHashMethodNameSoapActionServiceConfiguration;
specialinvoke v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$URLHashMethodNameSoapActionServiceConfiguration: void <init>(org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol)>(v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.frontend.ServerFactoryBean serverFactoryBean>;
v = virtualinvoke v.<org.apache.cxf.frontend.ServerFactoryBean: org.apache.cxf.endpoint.Server create()>();
v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.endpoint.Server server> = v;
v = new org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$1;
specialinvoke v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol$1: void <init>(org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol,java.lang.String)>(v, v);
return v;
}
protected java.lang.Object doRefer(java.lang.Class, org.apache.dubbo.common.URL) throws org.apache.dubbo.rpc.RpcException
{
org.apache.cxf.transport.Conduit v;
org.apache.dubbo.common.URL v, v;
org.apache.cxf.bus.extension.ExtensionManagerBus v;
int v, v;
java.lang.String v, v, v, v, v, v;
boolean v, v;
org.apache.cxf.frontend.ClientProxyFactoryBean v;
org.apache.cxf.endpoint.Client v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
java.lang.Class v;
java.lang.Object v;
org.apache.cxf.transports.http.configuration.HTTPClientPolicy v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
v := @parameter: java.lang.Class;
v := @parameter: org.apache.dubbo.common.URL;
v = new org.apache.cxf.frontend.ClientProxyFactoryBean;
specialinvoke v.<org.apache.cxf.frontend.ClientProxyFactoryBean: void <init>()>();
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getParameter(java.lang.String)>("service.path.prefix");
v = staticinvoke <org.apache.cxf.common.util.StringUtils: boolean isEmpty(java.lang.String)>(v);
if v != 0 goto label;
v = "servlet";
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getParameter(java.lang.String)>("server");
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String getPath()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/\u0001");
v = virtualinvoke v.<org.apache.dubbo.common.URL: org.apache.dubbo.common.URL setPath(java.lang.String)>(v);
label:
v = virtualinvoke v.<org.apache.dubbo.common.URL: org.apache.dubbo.common.URL setProtocol(java.lang.String)>("http");
v = virtualinvoke v.<org.apache.dubbo.common.URL: java.lang.String toIdentityString()>();
virtualinvoke v.<org.apache.cxf.frontend.ClientProxyFactoryBean: void setAddress(java.lang.String)>(v);
virtualinvoke v.<org.apache.cxf.frontend.ClientProxyFactoryBean: void setServiceClass(java.lang.Class)>(v);
v = v.<org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol: org.apache.cxf.bus.extension.ExtensionManagerBus bus>;
virtualinvoke v.<org.apache.cxf.frontend.ClientProxyFactoryBean: void setBus(org.apache.cxf.Bus)>(v);
v = virtualinvoke v.<org.apache.cxf.frontend.ClientProxyFactoryBean: java.lang.Object create()>();
v = staticinvoke <org.apache.cxf.frontend.ClientProxy: org.apache.cxf.endpoint.Client getClient(java.lang.Object)>(v);
v = interfaceinvoke v.<org.apache.cxf.endpoint.Client: org.apache.cxf.transport.Conduit getConduit()>();
v = new org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
specialinvoke v.<org.apache.cxf.transports.http.configuration.HTTPClientPolicy: void <init>()>();
v = virtualinvoke v.<org.apache.dubbo.common.URL: int getParameter(java.lang.String,int)>("connect.timeout", 3000);
virtualinvoke v.<org.apache.cxf.transports.http.configuration.HTTPClientPolicy: void setConnectionTimeout(long)>(v);
v = virtualinvoke v.<org.apache.dubbo.common.URL: int getParameter(java.lang.String,int)>("timeout", 1000);
virtualinvoke v.<org.apache.cxf.transports.http.configuration.HTTPClientPolicy: void setReceiveTimeout(long)>(v);
virtualinvoke v.<org.apache.cxf.transport.http.HTTPConduit: void setClient(org.apache.cxf.transports.http.configuration.HTTPClientPolicy)>(v);
return v;
}
protected int getErrorCode(java.lang.Throwable)
{
java.lang.Throwable v;
int v;
boolean v, v, v;
org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol v;
v := @this: org.apache.dubbo.rpc.protocol.webservice.WebServiceProtocol;
v := @parameter: java.lang.Throwable;
v = v instanceof org.apache.cxf.interceptor.Fault;
if v == 0 goto label;
v = virtualinvoke v.<java.lang.Throwable: java.lang.Throwable getCause()>();
label:
v = v instanceof java.net.SocketTimeoutException;
if v == 0 goto label;
return 2;
label:
v = v instanceof java.io.IOException;
if v == 0 goto label;
return 1;
label:
v = specialinvoke v.<org.apache.dubbo.rpc.protocol.AbstractProxyProtocol: int getErrorCode(java.lang.Throwable)>(v);
return v;
}
}