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

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

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

WebService.getBundleDescriptor介绍

暂无

代码示例

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

public BundleDescriptor getBundleDescriptor() {
  return getWebService().getBundleDescriptor();
}

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

public BundleDescriptor getBundleDescriptor() {
  return getWebService().getBundleDescriptor();
}

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

private boolean webServiceInContext(WebService webService) {
  BundleDescriptor contextBundleDescriptor =
    context.getModuleMetaData(BundleDescriptor.class);
  String moduleId = contextBundleDescriptor.getModuleID();
  return moduleId.equals(webService.getBundleDescriptor().getModuleID());
}

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

public String getGeneratedWsdlFilePath() {
  if (hasWsdlFile()) {
    String xmlDir = getBundleDescriptor().getApplication().getGeneratedXMLDirectory();
    if(!getBundleDescriptor().getModuleDescriptor().isStandalone()) {
      String uri = getBundleDescriptor().getModuleDescriptor().getArchiveUri();
      xmlDir = xmlDir + File.separator + uri.replaceAll("\\.", "_");
    }
    if(xmlDir == null) {
      return null;
    }
    return  xmlDir + File.separator + wsdlFileUri;
  } else {
    return getWsdlFileUrl().getPath();
  }
}

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

public String getGeneratedWsdlFilePath() {
  if (hasWsdlFile()) {
    String xmlDir = getBundleDescriptor().getApplication().getGeneratedXMLDirectory();
    if(!getBundleDescriptor().getModuleDescriptor().isStandalone()) {
      String uri = getBundleDescriptor().getModuleDescriptor().getArchiveUri();
      xmlDir = xmlDir + File.separator + uri.replaceAll("\\.", "_");
    }
    if(xmlDir == null) {
      return null;
    }
    return  xmlDir + File.separator + wsdlFileUri;
  } else {
    return getWsdlFileUrl().getPath();
  }
}

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

ClassLoader testerCL = svcEP.getWebService().getBundleDescriptor().getClassLoader();
if (testerCL != null ){
  Thread.currentThread().setContextClassLoader(testerCL);

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

public void accept(WebService webService) {
  try {
    ModuleDescriptor moduleDesc = 
      webService.getBundleDescriptor().getModuleDescriptor();

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

public void accept(WebService webService) {
  try {
    ModuleDescriptor moduleDesc =
      webService.getBundleDescriptor().getModuleDescriptor();

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

webService.getBundleDescriptor().getModuleDescriptor();
           webService.getBundleDescriptor()) ) {

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

endpointsCopy.addAll(endpoints);
BundleDescriptor bundle = webService.getBundleDescriptor();
WebServicesDescriptor wsd = bundle.getWebServices();
Collection webServices = wsd.getWebServices();

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

BundleDescriptor bundle = webService.getBundleDescriptor();

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

private void updateServletEndpointRuntime() {
  WebComponentDescriptor wc = ((WebBundleDescriptor)webService.getBundleDescriptor()).getWebComponentByCanonicalName(webComponentImpl.getCanonicalName());
  if(!(wc == webComponentImpl)){
    setWebComponentImpl(wc);

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

private void updateServletEndpointRuntime() {
  WebComponentDescriptor wc = ((WebBundleDescriptor)webService.getBundleDescriptor()).getWebComponentByCanonicalName(webComponentImpl.getCanonicalName());
  if(!(wc == webComponentImpl)){
    setWebComponentImpl(wc);

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

BundleDescriptor bundle = webService.getBundleDescriptor();
if( !isWsdlContent(wsdlFileUri, bundle) ) {
  String msg = localStrings.getLocalString(
String fullFileUri = webService.getBundleDescriptor().getWsdlDir() + "/" + wsdlFileUri;
wsdlFileInputStream = archive_.getEntry(fullFileUri);

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

BundleDescriptor bundle = webService.getBundleDescriptor();
if( !isWsdlContent(wsdlFileUri, bundle) ) {
  String msg = localStrings.getLocalString(
String fullFileUri = webService.getBundleDescriptor().getWsdlDir() + "/" + wsdlFileUri;
wsdlFileInputStream = archive_.getEntry(fullFileUri);

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

相关文章