Examples of asHttpRequest()


Examples of ca.uhn.fhir.rest.method.HttpDeleteClientInvocation.asHttpRequest()

  @Override
  public MethodOutcome delete(final Class<? extends IResource> theType, IdDt theId) {
    HttpDeleteClientInvocation invocation = DeleteMethodBinding.createDeleteInvocation(toResourceName(theType), theId);
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    final String resourceName = myContext.getResourceDefinition(theType).getName();
    OutcomeResponseHandler binding = new OutcomeResponseHandler(resourceName);
    MethodOutcome resp = invokeClient(binding, invocation, myLogRequestAndResponse);
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpDeleteClientInvocation.asHttpRequest()

  @Override
  public MethodOutcome delete(final Class<? extends IResource> theType, IdDt theId) {
    HttpDeleteClientInvocation invocation = DeleteMethodBinding.createDeleteInvocation(theId.withResourceType(toResourceName(theType)));
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    final String resourceName = myContext.getResourceDefinition(theType).getName();
    OutcomeResponseHandler binding = new OutcomeResponseHandler(resourceName);
    MethodOutcome resp = invokeClient(myContext, binding, invocation, myLogRequestAndResponse);
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpDeleteClientInvocation.asHttpRequest()

  @Override
  public MethodOutcome delete(final Class<? extends IResource> theType, IdDt theId) {
    HttpDeleteClientInvocation invocation = DeleteMethodBinding.createDeleteInvocation(theId.withResourceType(toResourceName(theType)));
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    final String resourceName = myContext.getResourceDefinition(theType).getName();
    OutcomeResponseHandler binding = new OutcomeResponseHandler(resourceName);
    MethodOutcome resp = invokeClient(myContext, binding, invocation, myLogRequestAndResponse);
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

  @Override
  public Conformance conformance() {
    HttpGetClientInvocation invocation = ConformanceMethodBinding.createConformanceInvocation();
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    ResourceResponseHandler<Conformance> binding = new ResourceResponseHandler<Conformance>(Conformance.class, null);
    Conformance resp = invokeClient(binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

  public <T extends IResource> Bundle history(final Class<T> theType, IdDt theIdDt, DateTimeDt theSince, Integer theLimit) {
    String resourceName = theType != null ? toResourceName(theType) : null;
    IdDt id = theIdDt != null && theIdDt.isEmpty() == false ? theIdDt : null;
    HttpGetClientInvocation invocation = HistoryMethodBinding.createHistoryInvocation(resourceName, id, theSince, theLimit);
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    BundleResponseHandler binding = new BundleResponseHandler(theType);
    Bundle resp = invokeClient(binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

      throw new IllegalArgumentException("theId does not contain a valid ID, is: " + theId);
    }
   
    HttpGetClientInvocation invocation = ReadMethodBinding.createReadInvocation(theId, toResourceName(theType));
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    ResourceResponseHandler<T> binding = new ResourceResponseHandler<T>(theType, theId);
    T resp = invokeClient(binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

      params.put(nextEntry.getKey() + qualifier, valueList);
    }

    HttpGetClientInvocation invocation = SearchMethodBinding.createSearchInvocation(toResourceName(theType), params);
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    BundleResponseHandler binding = new BundleResponseHandler(theType);
    Bundle resp = invokeClient(binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

  @Override
  public <T extends IResource> T vread(final Class<T> theType, IdDt theId, IdDt theVersionId) {
    HttpGetClientInvocation invocation = ReadMethodBinding.createVReadInvocation(theId, theVersionId, toResourceName(theType));
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    ResourceResponseHandler<T> binding = new ResourceResponseHandler<T>(theType, theId);
    T resp = invokeClient(binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

  @Override
  public Conformance conformance() {
    HttpGetClientInvocation invocation = MethodUtil.createConformanceInvocation();
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    ResourceResponseHandler<Conformance> binding = new ResourceResponseHandler<Conformance>(Conformance.class, null);
    Conformance resp = invokeClient(myContext, binding, invocation, myLogRequestAndResponse);
    return resp;
View Full Code Here

Examples of ca.uhn.fhir.rest.method.HttpGetClientInvocation.asHttpRequest()

  public <T extends IResource> Bundle history(final Class<T> theType, IdDt theIdDt, DateTimeDt theSince, Integer theLimit) {
    String resourceName = theType != null ? toResourceName(theType) : null;
    IdDt id = theIdDt != null && theIdDt.isEmpty() == false ? theIdDt : null;
    HttpGetClientInvocation invocation = HistoryMethodBinding.createHistoryInvocation(resourceName, id, theSince, theLimit);
    if (isKeepResponses()) {
      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    BundleResponseHandler binding = new BundleResponseHandler(theType);
    Bundle resp = invokeClient(myContext, binding, invocation, myLogRequestAndResponse);
    return resp;
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.