com.sun.enterprise.deployment.WebService.getMappingFileUri()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(184)

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

WebService.getMappingFileUri介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.deployment/dol

String mappingFileUri = webService.getMappingFileUri();
File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri);
webService.setMappingFile(mappingFile);

代码示例来源:origin: org.glassfish.main.deployment/dol

String mappingFileUri = webService.getMappingFileUri();
File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri);
webService.setMappingFile(mappingFile);

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

if (endpoint.getEndpoint().getWebService().getMappingFileUri()!=null) {
  engine.createHandler((com.sun.xml.rpc.spi.runtime.SystemHandlerDelegate)null, endpoint.getEndpoint());
} else {

代码示例来源:origin: org.glassfish.deployment/dol

if(webService.getMappingFileUri() == null) {
  return;
    archive_.getEntry(webService.getMappingFileUri());
  if( mappingFileInputStream != null ) {
    mappingFileInputStream.close();
      "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.main.deployment/dol

if(webService.getMappingFileUri() == null) {
  return;
    archive_.getEntry(webService.getMappingFileUri());
  if( mappingFileInputStream != null ) {
    mappingFileInputStream.close();
      "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

for (WebService webService : webServices.getWebServices()) {
  if (webService.hasMappingFile() && 
    !webService.getMappingFileUri().endsWith(".xml")) {
    archivist.copyAnEntry(in, out, 
    webService.getMappingFileUri());

代码示例来源: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.webservices/jsr109-impl

private JaxrpcMappingDescriptor getJaxrpcMappingInfo(URL mappingFileUrl,
                           Descriptor desc)
    throws Exception {
  JaxrpcMappingDescriptor mappingDesc = null;
  InputStream is = null;
  try {
    is = mappingFileUrl.openStream();
    JaxrpcMappingDeploymentDescriptorFile jaxrpcDD =
        new JaxrpcMappingDeploymentDescriptorFile();
    // useful for validation errors...
    if (desc instanceof ServiceReferenceDescriptor) {
      ServiceReferenceDescriptor srd = (ServiceReferenceDescriptor) desc;
      jaxrpcDD.setDeploymentDescriptorPath(srd.getMappingFileUri());
      jaxrpcDD.setErrorReportingString(srd.getBundleDescriptor().getModuleDescriptor().getArchiveUri());
    }
    if (desc instanceof WebService) {
      WebService ws = (WebService) desc;
      jaxrpcDD.setDeploymentDescriptorPath(ws.getMappingFileUri());
      jaxrpcDD.setErrorReportingString(ws.getBundleDescriptor().getModuleDescriptor().getArchiveUri());
    }
    //jaxrpcDD.setXMLValidationLevel(Deployer.getValidationLevel());
    jaxrpcDD.setXMLValidationLevel("none");
    mappingDesc =  jaxrpcDD.read(is);
  } finally {
    if( is != null ) {
      is.close();
    }
  }
  return mappingDesc;
}

代码示例来源: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;
}

相关文章