congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractDelegatingContract
Code IndexAdd Tabnine to your IDE (free)

How to use
AbstractDelegatingContract
in
com.palantir.conjure.java.client.jaxrs.feignimpl

Best Java code snippets using com.palantir.conjure.java.client.jaxrs.feignimpl.AbstractDelegatingContract (Showing top 2 results out of 315)

origin: com.palantir.conjure.java.runtime/conjure-java-jaxrs-client

@Override
public final List<MethodMetadata> parseAndValidatateMetadata(Class<?> targetType) {
  List<MethodMetadata> mdList = delegate.parseAndValidatateMetadata(targetType);
  Map<String, MethodMetadata> methodMetadataByConfigKey = new LinkedHashMap<String, MethodMetadata>();
  for (MethodMetadata md : mdList) {
    methodMetadataByConfigKey.put(md.configKey(), md);
  }
  for (Method method : targetType.getMethods()) {
    if (method.getDeclaringClass() == Object.class) {
      continue;
    }
    String configKey = Feign.configKey(targetType, method);
    MethodMetadata metadata = methodMetadataByConfigKey.get(configKey);
    if (metadata != null) {
      processMetadata(targetType, method, metadata);
    }
  }
  return mdList;
}
origin: palantir/conjure-java-runtime

@Override
public final List<MethodMetadata> parseAndValidatateMetadata(Class<?> targetType) {
  List<MethodMetadata> mdList = delegate.parseAndValidatateMetadata(targetType);
  Map<String, MethodMetadata> methodMetadataByConfigKey = new LinkedHashMap<String, MethodMetadata>();
  for (MethodMetadata md : mdList) {
    methodMetadataByConfigKey.put(md.configKey(), md);
  }
  for (Method method : targetType.getMethods()) {
    if (method.getDeclaringClass() == Object.class) {
      continue;
    }
    String configKey = Feign.configKey(targetType, method);
    MethodMetadata metadata = methodMetadataByConfigKey.get(configKey);
    if (metadata != null) {
      processMetadata(targetType, method, metadata);
    }
  }
  return mdList;
}
com.palantir.conjure.java.client.jaxrs.feignimplAbstractDelegatingContract

Javadoc

Base class that provides the structure for a delegating Contract. Delegates the initial #parseAndValidatateMetadata(Class) call to the wrapped Contract and then calls #processMetadata(Class,Method,MethodMetadata)on all of the methods that have metadata from the initial call.

Most used methods

  • processMetadata

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 12 Jupyter Notebook extensions
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