Codota Logo
WebEndpoint.name
Code IndexAdd Codota 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)

  • Common ways to obtain WebEndpoint
private void myMethod () {
WebEndpoint w =
  • Codota IconMethod method;method.getAnnotation(WebEndpoint.class)
  • Smart code suggestions by Codota
}
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
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSharedPreferences (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now