热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.cxf.service.model.EndpointInfo.getName()方法的使用及代码示例

本文整理了Java中org.apache.cxf.service.model.EndpointInfo.getName()方法的一些代码示例,展示了Endp

本文整理了Java中org.apache.cxf.service.model.EndpointInfo.getName()方法的一些代码示例,展示了EndpointInfo.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EndpointInfo.getName()方法的具体详情如下:
包路径:org.apache.cxf.service.model.EndpointInfo
类名称:EndpointInfo
方法名:getName

EndpointInfo.getName介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http

/**
* This method returns the name of the conduit, which is based on the
* endpoint name plus the SC_HTTP_CONDUIT_SUFFIX.
* @return
*/
public final String getConduitName() {
return endpointInfo.getName() + SC_HTTP_CONDUIT_SUFFIX;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http

public String getBeanName() {
String beanName = null;
if (endpointInfo.getName() != null) {
beanName = endpointInfo.getName().toString() + ".http-destination";
}
return beanName;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http

/**
* This is part of the Configurable interface which retrieves the
* configuration from spring injection.
*/
// REVISIT:What happens when the endpoint/bean name is null?
public String getBeanName() {
if (endpointInfo.getName() != null) {
return endpointInfo.getName().toString() + ".http-conduit";
}
return null;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-transports-http

private AbstractDestination[] getSOAPEndpoints(AbstractDestination[] destinations,
List privateEndpoints) {
List soapEndpoints = new ArrayList<>();
for (AbstractDestination sd : destinations) {
if (null != sd.getEndpointInfo().getName() && null != sd.getEndpointInfo().getInterface()
&& !isPrivate(sd.getEndpointInfo(), privateEndpoints)) {
soapEndpoints.add(sd);
}
}
return soapEndpoints.toArray(new AbstractDestination[0]);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

builder.endpointName(this.endpoint.getEndpointInfo().getName());

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

/**
* Obtain handler chain from annotations.
* @param server
*
*/
private void buildHandlerChain(Server server) {
AnnotationHandlerChainBuilder builder = new AnnotationHandlerChainBuilder();
@SuppressWarnings("rawtypes")
List chain = new ArrayList<>(handlers);
chain.addAll(builder.buildHandlerChainFromClass(getServiceBeanClass(),
server.getEndpoint().getEndpointInfo().getName(),
server.getEndpoint().getService().getName(),
this.getBindingId()));
for (Handler h : chain) {
injectResources(h);
}
((JaxWsEndpointImpl)server.getEndpoint()).getJaxwsBinding().setHandlerChain(chain);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

EndpointInfo endpointInfo = getEndpointInfo(exchange);
if (endpointInfo != null) {
ret = endpointInfo.getName();

代码示例来源:origin: apache/cxf

/**
* This method returns the name of the conduit, which is based on the
* endpoint name plus the SC_HTTP_CONDUIT_SUFFIX.
* @return
*/
public final String getConduitName() {
return endpointInfo.getName() + SC_HTTP_CONDUIT_SUFFIX;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

for (EndpointInfo ei : si.getEndpoints()) {
String bindingID = BindingID.getJaxwsBindingID(ei.getTransportId());
addPort(ei.getName(), bindingID, ei.getAddress());

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

private void buildHandlerChain(JaxWsClientProxy cp) {
AnnotationHandlerChainBuilder builder = new AnnotationHandlerChainBuilder();
JaxWsServiceFactoryBean sf = (JaxWsServiceFactoryBean)getServiceFactory();
@SuppressWarnings("rawtypes")
List chain = new ArrayList<>(handlers);
if (loadHandlers) {
chain.addAll(builder.buildHandlerChainFromClass(sf.getServiceClass(),
sf.getEndpointInfo().getName(),
sf.getServiceQName(),
this.getBindingId()));
}
if (!chain.isEmpty()) {
ResourceManager resourceManager = getBus().getExtension(ResourceManager.class);
List resolvers = resourceManager.getResourceResolvers();
resourceManager = new DefaultResourceManager(resolvers);
resourceManager.addResourceResolver(new WebServiceContextResourceResolver());
ResourceInjector injector = new ResourceInjector(resourceManager);
for (Handler h : chain) {
if (Proxy.isProxyClass(h.getClass()) && getServiceClass() != null) {
injector.inject(h, getServiceClass());
injector.construct(h, getServiceClass());
} else {
injector.inject(h);
injector.construct(h);
}
}
}
cp.getBinding().setHandlerChain(chain);
}

代码示例来源:origin: apache/cxf

public String getBeanName() {
String beanName = null;
if (endpointInfo.getName() != null) {
beanName = endpointInfo.getName().toString() + ".http-destination";
}
return beanName;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

builder.address(ep.getEndpointInfo().getAddress());
builder.serviceName(ep.getService().getName());
builder.endpointName(ep.getEndpointInfo().getName());
URI wsdlDescription = ep.getEndpointInfo().getProperty("URI", URI.class);
if (wsdlDescription == null) {

代码示例来源:origin: apache/cxf

public void addEndpoint(EndpointInfo ep) {
EndpointInfo ei = getEndpoint(ep.getName());
if (ei != null) {
endpoints.remove(ei);
}
endpoints.add(ep);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

portName = ei.getName();
} else {
portName = serviceFactory.getEndpointName();

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

for (ServiceInfo si : getService().getServiceInfos()) {
for (EndpointInfo ep : si.getEndpoints()) {
enames.add(ep.getName());

代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws

endpointName = endpoint.getEndpointInfo().getName();

代码示例来源:origin: apache/cxf

public void updateWSDLPublishedEndpointAddress(Definition def, EndpointInfo endpointInfo) {
synchronized (def) {
//writing a def is not threadsafe. Sync on it to make sure
//we don't get any ConcurrentModificationExceptions
if (endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL) != null) {
String epurl =
String.valueOf(endpointInfo.getProperty(PUBLISHED_ENDPOINT_URL));
updatePublishedEndpointUrl(epurl, def, endpointInfo.getName());
}
}
}

代码示例来源:origin: apache/cxf

private AbstractDestination[] getSOAPEndpoints(AbstractDestination[] destinations,
List privateEndpoints) {
List soapEndpoints = new ArrayList<>();
for (AbstractDestination sd : destinations) {
if (null != sd.getEndpointInfo().getName() && null != sd.getEndpointInfo().getInterface()
&& !isPrivate(sd.getEndpointInfo(), privateEndpoints)) {
soapEndpoints.add(sd);
}
}
return soapEndpoints.toArray(new AbstractDestination[0]);
}

代码示例来源:origin: apache/cxf

public void setEpInfo(Message message, final LogEvent event) {
EndpointInfo endpoint = getEPInfo(message);
event.setPortName(endpoint.getName());
event.setPortTypeName(endpoint.getName());
String opName = isSOAPMessage(message) ? getOperationName(message) : getRestOperationName(message);
event.setOperationName(opName);
if (endpoint.getService() != null) {
setServiceInfo(endpoint.getService(), event);
}
}

代码示例来源:origin: org.apache.cxf/cxf-core

public static QName getServiceQName(EndpointInfo ei) {
InterfaceInfo ii = ei.getInterface();
if (ii != null) {
return ii.getName();
} else if (ei.getService() != null) {
return ei.getService().getName();
} else {
return ei.getName();
}
}
}

推荐阅读
author-avatar
HurricaneCC
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有