本文整理了Java中com.sun.enterprise.deployment.WebService.getName()
方法的一些代码示例,展示了WebService.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebService.getName()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebService
类名称:WebService
方法名:getName
暂无
代码示例来源:origin: org.glassfish.main.deployment/dol
public WebService getWebServiceByName(String webServiceName) {
for (WebService webService : webServices) {
if( webService.getName().equals(webServiceName) ) {
return webService;
}
}
return null;
}
代码示例来源:origin: org.glassfish.deployment/dol
public WebService getWebServiceByName(String webServiceName) {
for (WebService webService : webServices) {
if( webService.getName().equals(webServiceName) ) {
return webService;
}
}
return null;
}
代码示例来源:origin: org.glassfish.main.deployment/dol
protected void accept(WebService webService) {
DOLUtils.getDefaultLogger().info(webService.getName());
}
代码示例来源:origin: org.glassfish.deployment/dol
public void accept(WebService webService) {
DOLUtils.getDefaultLogger().info(webService.getName());
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
myEndpoint.getDescriptor().getWebService().getName());
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private NoMetadataModelInfo createNoMetadataModelInfo
(WebService webService, JaxrpcMappingDescriptor mappingDesc)
throws Exception {
NoMetadataModelInfo modelInfo = rpcFactory.createNoMetadataModelInfo();
URL wsdlFileUrl = webService.getWsdlFileUrl();
Collection endpoints = webService.getEndpoints();
if( endpoints.size() != 1 ) {
throw new Exception
("Deployment code generation error for webservice " +
webService.getName() + ". " +
" jaxrpc-mapping-file is required if web service has " +
"multiple endpoints");
}
WebServiceEndpoint endpoint = (WebServiceEndpoint)
endpoints.iterator().next();
modelInfo.setLocation(wsdlFileUrl.toExternalForm());
modelInfo.setInterfaceName(endpoint.getServiceEndpointInterface());
modelInfo.setPortName(endpoint.getWsdlPort());
addNamespaceMappingRegistry(modelInfo, mappingDesc);
return modelInfo;
}
代码示例来源:origin: org.glassfish.deployment/dol
DOLUtils.getDefaultLogger().log
(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorMappingFailure",
new Object[] {webService.getName() , rootLocation_});
代码示例来源:origin: org.glassfish.main.deployment/dol
DOLUtils.getDefaultLogger().log
(Level.SEVERE, DOLUtils.INVALID_DESC_MAPPING,
new Object[] {webService.getName() , rootLocation_});
代码示例来源:origin: org.glassfish.deployment/dol
/**
* write the descriptor class to a DOM tree and return it
*
* @param parent node for the DOM tree
* @param node name for the descriptor
* @param the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, String nodeName,
WebService webService) {
Node webServiceNode =
super.writeDescriptor(parent, nodeName, webService);
appendTextChild(webServiceNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
webService.getName());
if( webService.hasClientPublishUrl() ) {
URL url = webService.getClientPublishUrl();
appendTextChild(webServiceNode,
WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL,
url.toExternalForm());
}
return webServiceNode;
}
代码示例来源:origin: org.glassfish.main.deployment/dol
public String getEndpointAddressUri() {
if (implementedByEjbComponent() && !hasEndpointAddressUri()) {
setEndpointAddressUri("/" + getWebService().getName() + "/" + getEndpointName());
}
return endpointAddressUri;
}
代码示例来源:origin: org.glassfish.main.deployment/dol
/**
* write the descriptor class to a DOM tree and return it
*
* @param parent node for the DOM tree
* @param node name for the descriptor
* @param the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, String nodeName,
WebService webService) {
Node webServiceNode =
super.writeDescriptor(parent, nodeName, webService);
appendTextChild(webServiceNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
webService.getName());
if( webService.hasClientPublishUrl() ) {
URL url = webService.getClientPublishUrl();
appendTextChild(webServiceNode,
WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL,
url.toExternalForm());
}
return webServiceNode;
}
代码示例来源:origin: org.glassfish.main.deployment/dol
"enterprise.deployment.util.wsdlpackagedinwrongservicelocation",
"wsdl file {0} for web service {1} must be packaged in or below {2}",
new Object[] {wsdlFileUri, webService.getName(), bundle.getWsdlDir()});
DOLUtils.getDefaultLogger().severe(msg);
throw new RuntimeException(msg);
"enterprise.deployment.util.servicewsdlfilenotfound",
"wsdl file {0} does not exist for web service {1}",
new Object[] {wsdlFileUri, webService.getName()});
DOLUtils.getDefaultLogger().severe(msg);
throw new RuntimeException(msg);
"enterprise.deployment.util.servicewsdlfilenotreadable",
"wsdl file {0} for service-ref {1} cannot be opened : {2}",
new Object[] {webService.getWsdlFileUri(), webService.getName(), ioe.getMessage()});
DOLUtils.getDefaultLogger().severe(msg);
throw new RuntimeException(ioe);
"enterprise.deployment.util.servicemappingfilenotfound",
"Web Service mapping file {0} for web service {1} not found",
new Object[] {webService.getMappingFileUri(), webService.getName()});
DOLUtils.getDefaultLogger().severe(msg);
throw new RuntimeException(msg);
"enterprise.deployment.util.servicemappingfilenotreadable",
"Web Service mapping file {0} for web service {1} not found {2} ",
new Object[] {webService.getMappingFileUri(), webService.getName(), ioe});
DOLUtils.getDefaultLogger().severe(msg);
throw new RuntimeException(ioe);
代码示例来源:origin: org.glassfish.deployment/dol
} else {
uri = "/" + getWebService().getName() + "/" +
getEndpointName();
setEndpointAddressUri(uri);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
if((endpoint.getDescriptor().isSecure()) ||
(endpoint.getDescriptor().getMessageSecurityBinding() != null)) {
String message = endpoint.getDescriptor().getWebService().getName() +
"is a secured web service; Tester feature is not supported for secured services";
(new WsUtil()).writeInvalidMethodType(hresp, message);
代码示例来源:origin: org.glassfish.deployment/dol
public Node writeDescriptor(Node parent, String nodeName,
WebService descriptor) {
Node topNode =
super.writeDescriptor(parent, nodeName, descriptor);
//TODO is this needed?
//writeDisplayableComponentInfo(topNode, descriptor);
appendTextChild(topNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
descriptor.getName());
appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE,
descriptor.getType());
appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE,
descriptor.getClientPublishUrl().toString());
WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode();
for (WebServiceEndpoint next : descriptor.getEndpoints()) {
endpointNode.writeDescriptor
(topNode, WebServicesTagNames.PORT_COMPONENT, next);
}
return topNode;
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
(endpt.getDescriptor().getMessageSecurityBinding() != null) ||
endpoint.hasSecurePipeline())) {
String message = endpt.getDescriptor().getWebService().getName() +
"is a secured web service; Tester feature is not supported for secured services";
(new WsUtil()).writeInvalidMethodType(response, message);
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private void jaxrpcWebService(WebService webService, ArrayList<String> files)
throws Exception {
if((webService.getWsdlFileUrl() == null) ||
(webService.getMappingFileUri() == null)) {
throw new Exception(localStrings.getLocalString(
"enterprise.webservice.jaxrpcFilesNotFound",
"Service {0} seems to be a JAXRPC based web service but without "+
"the mandatory WSDL and Mapping file. Deployment cannot proceed",
new Object[] {webService.getName()}));
}
ModelInfo modelInfo = createModelInfo(webService);
String args[] = createJaxrpcCompileArgs(true, false);
CompileTool wscompile =
rpcFactory.createCompileTool(System.out, "wscompile");
wscompileForWebServices = wscompile;
WsCompile delegate = new WsCompile(wscompile, webService);
delegate.setModelInfo(modelInfo);
wscompile.setDelegate(delegate);
jaxrpc(args, delegate, webService, files);
}
代码示例来源:origin: org.glassfish.main.deployment/dol
public Node writeDescriptor(Node parent, String nodeName,
WebService descriptor) {
Node topNode =
super.writeDescriptor(parent, nodeName, descriptor);
//TODO is this needed?
//writeDisplayableComponentInfo(topNode, descriptor);
appendTextChild(topNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
descriptor.getName());
appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE,
descriptor.getType());
if (descriptor.getClientPublishUrl() != null) {
appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE,
descriptor.getClientPublishUrl().toString());
}
WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode();
for (WebServiceEndpoint next : descriptor.getEndpoints()) {
endpointNode.writeDescriptor
(topNode, WebServicesTagNames.PORT_COMPONENT, next);
}
return topNode;
}
代码示例来源:origin: org.glassfish.deployment/dol
/**
* write the method descriptor class to a query-method DOM tree and
* return it
*
* @param parent node in the DOM tree
* @param node name for the root element of this xml fragment
* @param the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, String nodeName,
WebService descriptor) {
Node topNode =
super.writeDescriptor(parent, nodeName, descriptor);
writeDisplayableComponentInfo(topNode, descriptor);
appendTextChild(topNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
descriptor.getName());
appendTextChild(topNode, WebServicesTagNames.WSDL_FILE,
descriptor.getWsdlFileUri());
appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE,
descriptor.getMappingFileUri());
WebServiceEndpointNode endpointNode = new WebServiceEndpointNode();
for(WebServiceEndpoint next : descriptor.getEndpoints()) {
endpointNode.writeDescriptor
(topNode, WebServicesTagNames.PORT_COMPONENT, next);
}
return topNode;
}
代码示例来源:origin: org.glassfish.main.webservices/webservices-connector
/**
* write the method descriptor class to a query-method DOM tree and
* return it
*
* @param parent node in the DOM tree
* @param nodeName name for the root element of this xml fragment
* @param descriptor the descriptor to write
* @return the DOM tree top node
*/
public Node writeDescriptor(Node parent, String nodeName,
WebService descriptor) {
Node topNode =
super.writeDescriptor(parent, nodeName, descriptor);
writeDisplayableComponentInfo(topNode, descriptor);
appendTextChild(topNode,
WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
descriptor.getName());
appendTextChild(topNode, WebServicesTagNames.WSDL_FILE,
descriptor.getWsdlFileUri());
appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE,
descriptor.getMappingFileUri());
WebServiceEndpointNode endpointNode = new WebServiceEndpointNode();
for(WebServiceEndpoint next : descriptor.getEndpoints()) {
endpointNode.writeDescriptor
(topNode, WebServicesTagNames.PORT_COMPONENT, next);
}
return topNode;
}
内容来源于网络,如有侵权,请联系作者删除!