Package ca.uhn.fhir.rest.client

Examples of ca.uhn.fhir.rest.client.BaseClientInvocation


  @Override
  protected BaseClientInvocation createClientInvocation(Object[] theArgs, IResource resource) {
    FhirContext context = getContext();

    BaseClientInvocation retVal = createCreateInvocation(resource, context);
   
    if (theArgs != null) {
      for (int idx = 0; idx < theArgs.length; idx++) {
        IParameter nextParam = getParameters().get(idx);
        nextParam.translateClientArgumentIntoQueryArgument(theArgs[idx], null, retVal);
View Full Code Here


    IResource resource = (IResource) theArgs[myResourceParameterIndex];
    if (resource == null) {
      throw new NullPointerException("Resource can not be null");
    }

    BaseClientInvocation retVal = createClientInvocation(theArgs, resource);
   
    TagList list = (TagList) resource.getResourceMetadata().get(ResourceMetadataKeyEnum.TAG_LIST);
    if (list != null) {
      for (Tag tag : list) {
        if (StringUtils.isNotBlank(tag.getTerm())) {
          retVal.addHeader(Constants.HEADER_CATEGORY, tag.toHeaderValue());
        }
      }
    }

    return retVal;
View Full Code Here

TOP

Related Classes of ca.uhn.fhir.rest.client.BaseClientInvocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.