Package ca.uhn.fhir.rest.client

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


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

    BaseHttpClientInvocation retVal = createClientInvocation(theArgs, resource);
    return retVal;
  }
View Full Code Here


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

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

    }

    IdDt id = (IdDt) (myIdParamIndex != null ? theArgs[myIdParamIndex] : null);

    String resourceName = getResourceName();
    BaseHttpClientInvocation retVal = createSearchInvocation(getContext(), resourceName, queryStringArgs, id, myCompartmentName, null);

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

      } else {
        searchStyle = SearchStyleEnum.POST;
      }
    }

    BaseHttpClientInvocation invocation;

    boolean compartmentSearch = false;
    if (theCompartmentName != null) {
      if (theId == null || !theId.hasIdPart()) {
        String msg = theContext.getLocalizer().getMessage(SearchMethodBinding.class.getName() + ".idNullForCompartmentSearch");
View Full Code Here

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

    BaseHttpClientInvocation retVal = createClientInvocation(theArgs, resource);
    return retVal;
  }
View Full Code Here

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

    BaseHttpClientInvocation retVal = MethodUtil.createCreateInvocation(theResource, context);

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

TOP

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

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.