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

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

本文整理了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,

相关文章