本文整理了Java中javax.wsdl.Port.getName()
方法的一些代码示例,展示了Port.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Port.getName()
方法的具体详情如下:
包路径:javax.wsdl.Port
类名称:Port
方法名:getName
[英]Get the name of this port.
[中]获取此端口的名称。
代码示例来源:origin: pentaho/pentaho-kettle
/**
* Get the name of the current port.
*
* @return Name of the current port.
*/
public String getPortName() {
return _port.getName();
}
代码示例来源:origin: wsdl4j/wsdl4j
/**
* Add a port to this service.
*
* @param port the port to be added
*/
public void addPort(Port port)
{
ports.put(port.getName(), port);
}
代码示例来源:origin: wsdl4j/wsdl4j
DOMUtils.printAttribute(Constants.ATTR_NAME, port.getName(), pw);
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
QName name = new QName(serviceName.getNamespaceURI(), port.getName());
代码示例来源:origin: axis/axis
/**
* Write out deployment and undeployment instructions for given WSDL port
*
* @param pw
* @param port
* @throws IOException
*/
protected void writeDeployPort(PrintWriter pw, Port port) throws IOException {
String serviceName = port.getName();
pw.println(" <service name=\"" + serviceName + "\"/>");
} // writeDeployPort
代码示例来源:origin: axis/axis
/**
* constructor
*
* @param port the WSDL port element
*/
public PortEntry(Port port) {
super(new QName(port.getName()));
this.port = port;
}
代码示例来源:origin: org.apache.axis/axis
/**
* Write out deployment and undeployment instructions for given WSDL port
*
* @param pw
* @param port
* @throws IOException
*/
protected void writeDeployPort(PrintWriter pw, Port port) throws IOException {
String serviceName = port.getName();
pw.println(" <service name=\"" + serviceName + "\"/>");
} // writeDeployPort
代码示例来源:origin: org.apache.axis/axis
/**
* constructor
*
* @param port the WSDL port element
*/
public PortEntry(Port port) {
super(new QName(port.getName()));
this.port = port;
}
代码示例来源:origin: org.wso2.wsdl4j/wsdl4j
/**
* Add a port to this service.
*
* @param port the port to be added
*/
public void addPort(Port port)
{
ports.put(port.getName(), port);
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
public String getPortName() {
if (isUnresolved()) {
return portName;
} else if (port != null) {
return port.getName();
} else {
return null;
}
}
代码示例来源:origin: org.ow2.orchestra/orchestra-axis
private String getServiceName(final Port port) {
final String endpointURL = this.getAddressFromPort(port);
String serviceName = port.getName();
if (endpointURL != null) {
serviceName = endpointURL.substring(this.expectedAddressPrefix.length());
}
return serviceName;
}
代码示例来源:origin: org.objectweb.celtix/celtix-rt
protected String findPortName(EndpointReferenceType reference) {
Port port = null;
String name = " ";
try {
port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
name = port.getName();
} catch (WSDLException e) {
// wsdlexception
}
return name;
}
代码示例来源:origin: apache/cxf
public static String getEndpointName(Binding binding, Definition wsdlDef) {
LOG.log(Level.FINE, "Getting endpoint name for an object reference");
Collection<Service> services = CastUtils.cast(wsdlDef.getServices().values());
for (Service serv : services) {
Collection<Port> ports = CastUtils.cast(serv.getPorts().values());
for (Port pt : ports) {
if (pt.getBinding().equals(binding)) {
return pt.getName();
}
}
}
return null;
}
代码示例来源:origin: org.wso2.bpel/ode-utils
/**
* @see #getBindingExtension(javax.wsdl.Binding)
*/
public static ExtensibilityElement getBindingExtension(Port port) {
Binding binding = port.getBinding();
if (binding == null) {
throw new IllegalArgumentException(msgs.msgBindingNotFound(port.getName()));
}
return getBindingExtension(binding);
}
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
public void visit(Port port, Object parent, WSDLTraversalContext ctx)
{
if (port != null && !containsLegalClaim(port.getDocumentationElement()))
errors.add(WSDL_PORT, port.getName());
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.wsi
public void visit(Port port, Object parent, WSDLTraversalContext ctx)
{
if (port != null && !containsLegalClaim(port.getDocumentationElement()))
errors.add(WSDL_PORT, port.getName());
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
protected Dispatch<SOAPMessage> createDispatchFromURI(String uri) {
QName serviceName = wsBinding.getService().getQName();
QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName());
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, uri);
return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
}
代码示例来源:origin: apache/cxf
private XNode getXNode(Service service, Port port) {
XNode vService = getXNode(service);
XPort pNode = new XPort();
pNode.setName(port.getName());
pNode.setParentNode(vService);
return pNode;
}
代码示例来源:origin: org.apache.cxf/cxf-tools-validator
private XNode getXNode(Service service, Port port) {
XNode vService = getXNode(service);
XPort pNode = new XPort();
pNode.setName(port.getName());
pNode.setParentNode(vService);
return pNode;
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
protected Dispatch<SOAPMessage> createDynamicDispatch() {
QName serviceName = wsBinding.getService().getQName();
QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName());
Service service = Service.create(serviceName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointReference.getDeployedURI());
return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
}
内容来源于网络,如有侵权,请联系作者删除!