Tabnine Logo
TypeConverter.convert
Code IndexAdd Tabnine to your IDE (free)

How to use
convert
method
in
org.apache.xmlrpc.common.TypeConverter

Best Java code snippets using org.apache.xmlrpc.common.TypeConverter.convert (Showing top 12 results out of 315)

origin: org.openengsb.connector/org.openengsb.connector.trac

  public Object invoke(Object proxy, Method method, Object[] args)
    throws InvocationTargetException, IllegalAccessException, XmlRpcException {
    if (isObjectMethodLocal() && method.getDeclaringClass().equals(Object.class)) {
      return method.invoke(proxy, args);
    }
    String classname = clazz.getName().replaceFirst(clazz.getPackage().getName() + ".", "").toLowerCase();
    classname = classname.replace("$", "."); // dirty hack TODO
    String methodName = classname + "." + method.getName();
    Object result = client.execute(methodName, args);
    TypeConverter typeConverter = typeConverterFactory.getTypeConverter(method.getReturnType());
    return typeConverter.convert(result);
  }
});
origin: xmlrpc/xmlrpc-client

  public Object invoke(Object pProxy, Method pMethod, Object[] pArgs) throws Throwable {
    if (isObjectMethodLocal()  &&  pMethod.getDeclaringClass().equals(Object.class)) {
      return pMethod.invoke(pProxy, pArgs);
    }
    String methodName = pClass.getName() + "." + pMethod.getName();
    Object result = client.execute(methodName, pArgs);
    TypeConverter typeConverter = typeConverterFactory.getTypeConverter(pMethod.getReturnType());
    return typeConverter.convert(result);
  }
});
origin: org.apache.xmlrpc/xmlrpc-client

return typeConverter.convert(result);
origin: rosjava/rosjava_core

return typeConverter.convert(result);
origin: org.sonatype.sisu/sisu-xmlrpc-client

return typeConverter.convert(result);
origin: rosjava/rosjava_core

return typeConverter.convert(result);
origin: sonia.trac/javatrac

 public Object invoke(Object pProxy, Method pMethod, Object[] pArgs) throws Throwable {
   String tracClassName = Utils.findTracClassName(aClass);
   if(tracClassName == null){
     throw new TracException(MessageUtils.registerErrorLog(log, "core.no.trac.classname.found", aClass.getName()));
   }
   TracClassMethod tracClassMethodMetadata = Utils.getTracClassMethodAnnotation(pMethod);
   String methodName = Utils.buildTracMethodNameInvocation(tracClassName, tracClassMethodMetadata);
   Object result = null;
   try {
     result = getClient().execute(methodName, pArgs);
   } catch (XmlRpcInvocationException e) {
     throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.invocation.exception", e.getMessage()), e);
   } catch(XmlRpcException e){
     throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.xmlrpc.exception", e.getMessage()), e);
   }
   catch (Throwable e){
     throw new TracException(MessageUtils.registerErrorLog(log, "core.invocation.factory.unknown.exception", e.getMessage()), e);
   }
   Class returnType = tracClassMethodMetadata.tracReturnType();
   if(returnType == Object.class){
     returnType = pMethod.getReturnType();
   }
   TypeConverter typeConverter = typeConverterFactory.getTypeConverter(returnType);
   return typeConverter.convert(result);
  }
});
origin: org.apache.xmlrpc/xmlrpc-server

args[j] = converters[j].convert(args[j]);
origin: org.sonatype.sisu/sisu-xmlrpc-server

args[j] = converters[j].convert(args[j]);
origin: org.apache.continuum/continuum-xmlrpc-server

args[j] = converters[j].convert( args[j] );
origin: org.apache.maven.continuum/continuum-xmlrpc-server

args[j] = converters[j].convert( args[j] );
origin: rosjava/rosjava_core

args[j] = converters[j].convert(args[j]);
org.apache.xmlrpc.commonTypeConverterconvert

Javadoc

Converts the given object into the required representation.

Popular methods of TypeConverter

  • isConvertable
    Returns, whether the TypeConverter is ready to handle the given object. If so, #convert(Object) may
  • backConvert
    Converts the given object into its generic representation.

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Top PhpStorm plugins
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