congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ResourceBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
ResourceBinding
in
ca.uhn.fhir.rest.server

Best Java code snippets using ca.uhn.fhir.rest.server.ResourceBinding (Showing top 18 results out of 315)

origin: jamesagnew/hapi-fhir

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
  Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<>();
  for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
    String resourceName = next.getResourceName();
    for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
      if (resourceToMethods.containsKey(resourceName) == false) {
        resourceToMethods.put(resourceName, new ArrayList<>());
      }
      resourceToMethods.get(resourceName).add(nextMethodBinding);
    }
  }
  for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
    String resourceName = "";
    if (resourceToMethods.containsKey(resourceName) == false) {
      resourceToMethods.put(resourceName, new ArrayList<>());
    }
    resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
  return resourceToMethods;
}
origin: jamesagnew/hapi-fhir

    resourceBinding = myResourceNameToBinding.get(definition.getName());
  } else {
    resourceBinding = new ResourceBinding();
    resourceBinding.setResourceName(resourceName);
    myResourceNameToBinding.put(resourceName, resourceBinding);
resourceBinding.addMethod(foundMethodBinding);
ourLog.debug(" * Method: {}#{} is a handler", theProvider.getClass(), m.getName());
origin: jamesagnew/hapi-fhir

/**
 * Returns the method bindings for this server which are not specific to any particular resource type. This method is
 * internal to HAPI and developers generally do not need to interact with it. Use
 * with caution, as it may change.
 */
public List<BaseMethodBinding<?>> getServerBindings() {
  return myServerBinding.getMethodBindings();
}
origin: jamesagnew/hapi-fhir

@Override
public boolean equals(Object o) {
  if (!(o instanceof ResourceBinding))
    return false;
  return resourceName.equals(((ResourceBinding) o).getResourceName());
}
origin: ca.uhn.hapi.fhir/hapi-fhir-server

/**
 * Returns the method bindings for this server which are not specific to any particular resource type. This method is
 * internal to HAPI and developers generally do not need to interact with it. Use
 * with caution, as it may change.
 */
public List<BaseMethodBinding<?>> getServerBindings() {
  return myServerBinding.getMethodBindings();
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

  @Override
  public int compare(ResourceBinding theArg0, ResourceBinding theArg1) {
    return theArg0.getResourceName().compareToIgnoreCase(theArg1.getResourceName());
  }
});
origin: jamesagnew/hapi-fhir

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
 Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
 for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
  String resourceName = next.getResourceName();
  for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
   if (resourceToMethods.containsKey(resourceName) == false) {
    resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
   }
   resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
 }
 for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
  String resourceName = "";
  if (resourceToMethods.containsKey(resourceName) == false) {
   resourceToMethods.put(resourceName, new ArrayList<>());
  }
  resourceToMethods.get(resourceName).add(nextMethodBinding);
 }
 return resourceToMethods;
}
origin: jamesagnew/hapi-fhir

serverBindings.addAll(baseMethodBinding.getMethodBindings());
origin: ca.uhn.hapi.fhir/hapi-fhir-server

@Override
public boolean equals(Object o) {
  if (!(o instanceof ResourceBinding))
    return false;
  return resourceName.equals(((ResourceBinding) o).getResourceName());
}
origin: jamesagnew/hapi-fhir

    resourceBinding = myResourceNameToBinding.get(definition.getName());
  } else {
    resourceBinding = new ResourceBinding();
    resourceBinding.setResourceName(resourceName);
    myResourceNameToBinding.put(resourceName, resourceBinding);
resourceBinding.addMethod(foundMethodBinding);
ourLog.debug(" * Method: {}#{} is a handler", theProvider.getClass(), m.getName());
origin: jamesagnew/hapi-fhir

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
 Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
 for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
  String resourceName = next.getResourceName();
  for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
   if (resourceToMethods.containsKey(resourceName) == false) {
    resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
   }
   resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
 }
 for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
  String resourceName = "";
  if (resourceToMethods.containsKey(resourceName) == false) {
   resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
  }
  resourceToMethods.get(resourceName).add(nextMethodBinding);
 }
 return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-server

    resourceBinding = myResourceNameToBinding.get(definition.getName());
  } else {
    resourceBinding = new ResourceBinding();
    resourceBinding.setResourceName(resourceName);
    myResourceNameToBinding.put(resourceName, resourceBinding);
resourceBinding.addMethod(foundMethodBinding);
ourLog.debug(" * Method: {}#{} is a handler", theProvider.getClass(), m.getName());
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
  Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
  for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
    String resourceName = next.getResourceName();
    for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
      if (resourceToMethods.containsKey(resourceName) == false) {
        resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
      }
      resourceToMethods.get(resourceName).add(nextMethodBinding);
    }
  }
  for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
    String resourceName = "";
    if (resourceToMethods.containsKey(resourceName) == false) {
      resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
    }
    resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
  return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
 Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
 for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
  String resourceName = next.getResourceName();
  for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
   if (resourceToMethods.containsKey(resourceName) == false) {
    resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
   }
   resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
 }
 for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
  String resourceName = "";
  if (resourceToMethods.containsKey(resourceName) == false) {
   resourceToMethods.put(resourceName, new ArrayList<>());
  }
  resourceToMethods.get(resourceName).add(nextMethodBinding);
 }
 return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2.1

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
  Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<>();
  for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
    String resourceName = next.getResourceName();
    for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
      if (resourceToMethods.containsKey(resourceName) == false) {
        resourceToMethods.put(resourceName, new ArrayList<>());
      }
      resourceToMethods.get(resourceName).add(nextMethodBinding);
    }
  }
  for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
    String resourceName = "";
    if (resourceToMethods.containsKey(resourceName) == false) {
      resourceToMethods.put(resourceName, new ArrayList<>());
    }
    resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
  return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-hl7org-dstu2

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
 Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
 for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
  String resourceName = next.getResourceName();
  for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
   if (resourceToMethods.containsKey(resourceName) == false) {
    resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
   }
   resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
 }
 for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
  String resourceName = "";
  if (resourceToMethods.containsKey(resourceName) == false) {
   resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
  }
  resourceToMethods.get(resourceName).add(nextMethodBinding);
 }
 return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-r4

private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings() {
 Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();
 for (ResourceBinding next : getServerConfiguration().getResourceBindings()) {
  String resourceName = next.getResourceName();
  for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
   if (resourceToMethods.containsKey(resourceName) == false) {
    resourceToMethods.put(resourceName, new ArrayList<BaseMethodBinding<?>>());
   }
   resourceToMethods.get(resourceName).add(nextMethodBinding);
  }
 }
 for (BaseMethodBinding<?> nextMethodBinding : getServerConfiguration().getServerBindings()) {
  String resourceName = "";
  if (resourceToMethods.containsKey(resourceName) == false) {
   resourceToMethods.put(resourceName, new ArrayList<>());
  }
  resourceToMethods.get(resourceName).add(nextMethodBinding);
 }
 return resourceToMethods;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu

RestResource resource = rest.addResource();
String resourceName = next.getResourceName();
RuntimeResourceDefinition def = myServerConfiguration.getFhirContext().getResourceDefinition(resourceName);
resource.getType().setValue(def.getName());
for (BaseMethodBinding<?> nextMethodBinding : next.getMethodBindings()) {
  if (nextMethodBinding.getRestOperationType() != null) {
    RestfulOperationTypeEnum resOp = RestfulOperationTypeEnum.VALUESET_BINDER.fromCodeString(nextMethodBinding.getRestOperationType().getCode());
ca.uhn.fhir.rest.serverResourceBinding

Javadoc

Created by dsotnikov on 2/25/2014.

Most used methods

  • getMethodBindings
  • getResourceName
  • <init>
  • addMethod
  • setResourceName
  • getMethod

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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