Examples of IParameter


Examples of ca.uhn.fhir.rest.param.IParameter

      queryStringArgs.put(Constants.PARAM_QUERY, Collections.singletonList(myQueryName));
    }

    if (theArgs != null) {
      for (int idx = 0; idx < theArgs.length; idx++) {
        IParameter nextParam = myParameters.get(idx);
        nextParam.translateClientArgumentIntoQueryArgument(theArgs[idx], queryStringArgs);
      }
    }

    return new GetClientInvocation(queryStringArgs, getResourceName());
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

    assert theId == null;
    assert theVersionId == null;

    Object[] params = new Object[myParameters.size()];
    for (int i = 0; i < myParameters.size(); i++) {
      IParameter param = myParameters.get(i);
      params[i] = param.translateQueryParametersIntoServerArgument(parameterValues, null);
    }

    Object response;
    try {
      response = this.getMethod().invoke(theResourceProvider, params);
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

    IParser parser = encoding.newParser(getContext());
    IResource resource = parser.parseResource(theRequest.getInputReader());

    Object[] params = new Object[getParameters().size()];
    for (int i = 0; i < getParameters().size(); i++) {
      IParameter param = getParameters().get(i);
      if (param == null) {
        continue;
      }
      params[i] = param.translateQueryParametersIntoServerArgument(theRequest.getParameters(), resource);
    }

    addParametersForServerRequest(theRequest, params);

    MethodOutcome response;
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

  public HttpGetClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException {
    HttpGetClientInvocation retVal = createConformanceInvocation();

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

    return retVal;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

      String resourceName = getResourceName();
      retVal = createVReadInvocation(id, vid, resourceName);
    }

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

    return retVal;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

      retVal = new HttpGetClientInvocation(Constants.PARAM_TAGS);
    }

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

    return retVal;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

  }

  protected Object[] createParametersForServerRequest(Request theRequest, IResource theResource) {
    Object[] params = new Object[getParameters().size()];
    for (int i = 0; i < getParameters().size(); i++) {
      IParameter param = getParameters().get(i);
      if (param == null) {
        continue;
      }
      params[i] = param.translateQueryParametersIntoServerArgument(theRequest, theResource);
    }
    return params;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

    HttpGetClientInvocation retVal = createHistoryInvocation(resourceName, id, null, null);

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

    return retVal;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

    }

    HttpPostClientInvocation retVal = createValidateInvocation(theResource, idDt, context);
   
    for (int idx = 0; idx < theArgs.length; idx++) {
      IParameter nextParam = getParameters().get(idx);
      nextParam.translateClientArgumentIntoQueryArgument(getContext(), theArgs[idx], null, retVal);
    }

    return retVal;
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.param.IParameter

    Object requestObject = parseRequestObject(theRequest);

    // Method params
    Object[] params = new Object[getParameters().size()];
    for (int i = 0; i < getParameters().size(); i++) {
      IParameter param = getParameters().get(i);
      if (param != null) {
        params[i] = param.translateQueryParametersIntoServerArgument(theRequest, requestObject);
      }
    }

    Integer count = RestfulServer.extractCountParameter(theRequest.getServletRequest());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.