类 RestProtocol
- java.lang.Object
-
- com.alibaba.dubbo.rpc.protocol.AbstractProtocol
-
- com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol
-
- com.alibaba.dubbo.rpc.protocol.rest.RestProtocol
-
- 所有已实现的接口:
Protocol
public class RestProtocol extends AbstractProxyProtocol
-
-
构造器概要
构造器 构造器 说明 RestProtocol()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
destroy()
Destroy protocol:
1.int
getDefaultPort()
Get default port when user doesn't config the port.void
setHttpBinder(HttpBinder httpBinder)
-
从类继承的方法 com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol
addRpcException, export, getProxyFactory, refer, setProxyFactory
-
-
-
-
方法详细资料
-
setHttpBinder
public void setHttpBinder(HttpBinder httpBinder)
-
getDefaultPort
public int getDefaultPort()
从接口复制的说明:Protocol
Get default port when user doesn't config the port.- 返回:
- default port
-
destroy
public void destroy()
从接口复制的说明:Protocol
Destroy protocol:
1. Cancel all services this protocol exports and refers
2. Release all occupied resources, for example: connection, port, etc.
3. Protocol can continue to export and refer new service even after it's destroyed.- 指定者:
destroy
在接口中Protocol
- 覆盖:
destroy
在类中AbstractProtocol
-
-