Package ca.uhn.fhir.rest.client

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


    StringBuilder urlExtension = new StringBuilder();
    urlExtension.append(resourceName);
    urlExtension.append('/');
    urlExtension.append(id);
    PutClientInvocation retVal = new PutClientInvocation(getContext(), resource, urlExtension.toString());

    if (myVersionIdParameterIndex != null) {
      IdDt versionIdDt = (IdDt) theArgs[myVersionIdParameterIndex];
      if (versionIdDt != null) {
        String versionId = versionIdDt.getValue();
        if (StringUtils.isNotBlank(versionId)) {
          StringBuilder b = new StringBuilder();
          b.append('/');
          b.append(urlExtension);
          b.append("/_history/");
          b.append(versionId);
          retVal.addHeader(Constants.HEADER_CONTENT_LOCATION, b.toString());
        }
      }
    }

    return retVal;
View Full Code Here


    if (myVersionIdParameterIndex != null) {
      versionIdDt = (IdDt) theArgs[myVersionIdParameterIndex];
    }
    FhirContext context = getContext();

    PutClientInvocation retVal = createUpdateInvocation(theResource, idDt, versionIdDt, context);

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

    String resourceName = context.getResourceDefinition(theResource).getName();
    StringBuilder urlExtension = new StringBuilder();
    urlExtension.append(resourceName);
    urlExtension.append('/');
    urlExtension.append(id);
    PutClientInvocation retVal = new PutClientInvocation(context, theResource, urlExtension.toString());

    if (versionIdDt != null) {
      String versionId = versionIdDt.getValue();
      if (StringUtils.isNotBlank(versionId)) {
        StringBuilder b = new StringBuilder();
        b.append('/');
        b.append(urlExtension);
        b.append("/_history/");
        b.append(versionId);
        retVal.addHeader(Constants.HEADER_CONTENT_LOCATION, b.toString());
      }
    }
    return retVal;
  }
View Full Code Here

    StringBuilder urlExtension = new StringBuilder();
    urlExtension.append(resourceName);
    urlExtension.append('/');
    urlExtension.append(id);
    PutClientInvocation retVal = new PutClientInvocation(getContext(), resource, urlExtension.toString());

    if (myVersionIdParameterIndex != null) {
      IdDt versionIdDt = (IdDt) theArgs[myVersionIdParameterIndex];
      if (versionIdDt != null) {
        String versionId = versionIdDt.getValue();
        if (StringUtils.isNotBlank(versionId)) {
          StringBuilder b = new StringBuilder();
          b.append('/');
          b.append(urlExtension);
          b.append("/_history/");
          b.append(versionId);
          retVal.addHeader(Constants.HEADER_CONTENT_LOCATION, b.toString());
        }
      }
    }

    return retVal;
View Full Code Here

TOP

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

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.