gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-21 10:09:05 26 4
gpt4 key购买 nike

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

WebService.hasMappingFile介绍

暂无

代码示例

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

/**
  * Creates a new EjbRuntimeEndpointInfo instance depending on the type
  * and version of the web service implementation.
  * @param   
  */
public EjbRuntimeEndpointInfo createEjbEndpointInfo(WebServiceEndpoint webServiceEndpoint,
                EjbEndpointFacade ejbContainer,
                Object servant, Class tieClass) {
   EjbRuntimeEndpointInfo info = null;
   if (webServiceEndpoint.getWebService().hasMappingFile()) {
     info = new Ejb2RuntimeEndpointInfo(webServiceEndpoint, ejbContainer, servant, tieClass);
   } else {
     info = new EjbRuntimeEndpointInfo(webServiceEndpoint, ejbContainer, servant);
   }
   return info;
 }

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

if( webService.hasMappingFile() ) {
  String mappingFileUri = webService.getMappingFileUri();
  File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri);

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

if( webService.hasMappingFile() ) {
  String mappingFileUri = webService.getMappingFileUri();
  File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri);

代码示例来源:origin: org.glassfish.ejb/ejb-container

if(endpoint_.getWebService().hasMappingFile()) {

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

private EndpointImpl createEndpointInfo(WebServiceEndpoint endpoint) {
  
  try { 
    String endpointURL = endpoint.getEndpointAddressUri();
    EndpointType endpointType;            
    XModuleType moduleType = endpoint.getWebService().getWebServicesDescriptor().getModuleType();
    if (XModuleType.EJB == moduleType) {
      endpointType = EndpointType.EJB_ENDPOINT;
    } else {
      endpointType = EndpointType.SERVLET_ENDPOINT;
    }
    EndpointImpl newEndpoint;
    // At this point, we can depend on presence of mapping file to distinguish between JAXRPC and JAXWS
    // service
    if(endpoint.getWebService().hasMappingFile()) {
      newEndpoint = new JAXRPCEndpointImpl(endpointURL, endpointType);
    } else {
      newEndpoint = new JAXWSEndpointImpl(endpointURL, endpointType);
    }
    newEndpoint.setDescriptor(endpoint);
    return newEndpoint;
  
  } catch(Exception e) {
    sLogger.log(Level.SEVERE,"Exception in creating endpoint", e);
  }                         
  return null;
}

代码示例来源:origin: org.glassfish.main.ejb/ejb-container

if(endpoint_.getWebService().hasMappingFile()) {

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

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com