Tabnine Logo
WebEndpoint.name
Code IndexAdd Tabnine to your IDE (free)

How to use
name
method
in
javax.xml.ws.WebEndpoint

Best Java code snippets using javax.xml.ws.WebEndpoint.name (Showing top 8 results out of 315)

origin: org.jboss.ws.cxf/jbossws-cxf-client

private static PortMatch portNameMatches(final QName portQName, final Method targetMethod) {
 final String portName = portQName != null ? portQName.getLocalPart() : null;
 if (portName == null) { //no port specified, so we *might* have a valid match...
   return PortMatch.MAYBE;
 }
 WebEndpoint webEndpointAnnotation = targetMethod.getAnnotation(WebEndpoint.class);
 if (webEndpointAnnotation == null || webEndpointAnnotation.name() == null || webEndpointAnnotation.name().isEmpty()) {
   return PortMatch.MAYBE; // no way to match, no port specified using @WebEndpoint
 }
 return webEndpointAnnotation.name().equals(portName) ? PortMatch.YES : PortMatch.NO;
}
origin: org.glassfish.webservices/jsr109-impl

private String getPortClass(Endpoint ep, Class serviceClass)
                    throws Exception {
  String pkg = serviceClass.getPackage().getName();
  for(Method m : serviceClass.getMethods()) {
    WebEndpoint webEP = (WebEndpoint) 
      m.getAnnotation(WebEndpoint.class);
    if(webEP == null || webEP.name() == null ||
        webEP.name().length() == 0) {
      continue;
    }
    String getPortMethodName = "get" + 
        JAXBRIContext.mangleNameToClassName(webEP.name());
    Method getPortMethod = 
        serviceClass.getMethod(getPortMethodName, (Class[])null);
    return getPortMethod.getReturnType().getName();
  }
  return null;
}

origin: com.sun.xml.ws/jaxws-rt

  @Override
  public Void run() {
    WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class);
    if(wsc==null) {
      throw new WebServiceException("Service Interface Annotations required, exiting...");
    }
    String tns = wsc.targetNamespace();
    try {
      JAXWSUtils.getFileOrURL(wsc.wsdlLocation());
    } catch (IOException e) {
      // TODO: report a reasonable error message
      throw new WebServiceException(e);
    }
    for (Method method : sc.getDeclaredMethods()) {
      WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class);
      if (webEndpoint != null) {
        String endpointName = webEndpoint.name();
        QName portQName = new QName(tns, endpointName);
        portQNames.add(portQName);
      }
      Class<?> seiClazz = method.getReturnType();
      if (seiClazz!=void.class) {
        classes.add(seiClazz);
      }
    }
    return null;
  }
});
origin: javaee/metro-jax-ws

  @Override
  public Void run() {
    WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class);
    if(wsc==null) {
      throw new WebServiceException("Service Interface Annotations required, exiting...");
    }
    String tns = wsc.targetNamespace();
    try {
      JAXWSUtils.getFileOrURL(wsc.wsdlLocation());
    } catch (IOException e) {
      // TODO: report a reasonable error message
      throw new WebServiceException(e);
    }
    for (Method method : sc.getDeclaredMethods()) {
      WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class);
      if (webEndpoint != null) {
        String endpointName = webEndpoint.name();
        QName portQName = new QName(tns, endpointName);
        portQNames.add(portQName);
      }
      Class<?> seiClazz = method.getReturnType();
      if (seiClazz!=void.class) {
        classes.add(seiClazz);
      }
    }
    return null;
  }
});
origin: com.sun.xml.ws/rt

  @Override
  public Void run() {
    WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class);
    if(wsc==null) {
      throw new WebServiceException("Service Interface Annotations required, exiting...");
    }
    String tns = wsc.targetNamespace();
    try {
      JAXWSUtils.getFileOrURL(wsc.wsdlLocation());
    } catch (IOException e) {
      // TODO: report a reasonable error message
      throw new WebServiceException(e);
    }
    for (Method method : sc.getDeclaredMethods()) {
      WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class);
      if (webEndpoint != null) {
        String endpointName = webEndpoint.name();
        QName portQName = new QName(tns, endpointName);
        portQNames.add(portQName);
      }
      Class<?> seiClazz = method.getReturnType();
      if (seiClazz!=void.class) {
        classes.add(seiClazz);
      }
    }
    return null;
  }
});
origin: apache/axis2-java

/**
 * This method will drive the attachment of @WebEndpoint annotation data to the
 * <code>MethodDescriptionComposite</code>
 *
 * @param mdc    - <code>MethodDescriptionComposite</code>
 * @param method - <code>Method</code>
 */
private void attachWebEndpointAnnotation(MethodDescriptionComposite mdc, Method
    method) {
  WebEndpoint webEndpoint = (WebEndpoint)ConverterUtils.getAnnotation(
      WebEndpoint.class, method);
  if (webEndpoint != null) {
    WebEndpointAnnot weAnnot = WebEndpointAnnot.createWebEndpointAnnotImpl();
    weAnnot.setName(webEndpoint.name());
    mdc.setWebEndpointAnnot(weAnnot);
  }
}
origin: org.apache.axis2/axis2-metadata

/**
 * This method will drive the attachment of @WebEndpoint annotation data to the
 * <code>MethodDescriptionComposite</code>
 *
 * @param mdc    - <code>MethodDescriptionComposite</code>
 * @param method - <code>Method</code>
 */
private void attachWebEndpointAnnotation(MethodDescriptionComposite mdc, Method
    method) {
  WebEndpoint webEndpoint = (WebEndpoint)ConverterUtils.getAnnotation(
      WebEndpoint.class, method);
  if (webEndpoint != null) {
    WebEndpointAnnot weAnnot = WebEndpointAnnot.createWebEndpointAnnotImpl();
    weAnnot.setName(webEndpoint.name());
    mdc.setWebEndpointAnnot(weAnnot);
  }
}
origin: org.mule.modules/mule-module-cxf

if (we != null && we.name().equals(port) && m.getParameterTypes().length == 0)
javax.xml.wsWebEndpointname

Popular methods of WebEndpoint

  • <init>

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now