| 构造器和说明 |
|---|
EndpointApiTemplate(org.apache.cxf.Bus bus,
EndpointCallback callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy(String pattern)
销毁指定路径匹配的Endpoint
|
org.apache.cxf.Bus |
getBus() |
EndpointCallback |
getCallback() |
ConcurrentMap<String,Endpoint> |
getEndpoints() |
org.springframework.util.PathMatcher |
getPathMatcher() |
org.springframework.web.util.UrlPathHelper |
getUrlPathHelper() |
List<Endpoint> |
pause(String pattern,
String cause)
暂停服务
|
Endpoint |
publish(String addr,
Object implementor)
为指定的addr发布Endpoint
|
Endpoint |
publish(String addr,
Object implementor,
EndpointCallback callback)
为指定的addr发布Endpoint
|
List<Endpoint> |
restore(String pattern)
恢复服务
|
void |
setBus(org.apache.cxf.Bus bus) |
void |
setCallback(EndpointCallback callback) |
void |
setEndpoints(Map<String,Endpoint> endpoints) |
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher) |
void |
setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper) |
public EndpointApiTemplate(org.apache.cxf.Bus bus,
EndpointCallback callback)
public Endpoint publish(String addr, Object implementor)
addr - :服务地址implementor - :服务实现public Endpoint publish(String addr, Object implementor, EndpointCallback callback)
addr - :服务地址implementor - :服务实现callback - :回调函数public List<Endpoint> pause(String pattern, String cause)
pattern - :服务地址或表达式cause - :暂停原因public List<Endpoint> restore(String pattern)
pattern - :服务地址或表达式public void destroy(String pattern)
pattern - :服务地址或表达式public org.apache.cxf.Bus getBus()
public void setBus(org.apache.cxf.Bus bus)
public ConcurrentMap<String,Endpoint> getEndpoints()
public EndpointCallback getCallback()
public void setCallback(EndpointCallback callback)
public org.springframework.web.util.UrlPathHelper getUrlPathHelper()
public void setUrlPathHelper(org.springframework.web.util.UrlPathHelper urlPathHelper)
public org.springframework.util.PathMatcher getPathMatcher()
public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
Copyright © 2019. All rights reserved.