001/*
002 * #%L
003 * HAPI FHIR - Client Framework
004 * %%
005 * Copyright (C) 2014 - 2023 Smile CDR, Inc.
006 * %%
007 * Licensed under the Apache License, Version 2.0 (the "License");
008 * you may not use this file except in compliance with the License.
009 * You may obtain a copy of the License at
010 *
011 *      http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing, software
014 * distributed under the License is distributed on an "AS IS" BASIS,
015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016 * See the License for the specific language governing permissions and
017 * limitations under the License.
018 * #L%
019 */
020package ca.uhn.fhir.rest.client.method;
021
022import java.util.List;
023import java.util.Map;
024
025import org.hl7.fhir.instance.model.api.IBaseResource;
026
027import ca.uhn.fhir.context.FhirContext;
028import ca.uhn.fhir.model.valueset.BundleTypeEnum;
029import ca.uhn.fhir.rest.api.RequestTypeEnum;
030
031public class HttpPostClientInvocation extends BaseHttpClientInvocationWithContents {
032
033
034        public HttpPostClientInvocation(FhirContext theContext, IBaseResource theResource, String theUrlExtension) {
035                super(theContext, theResource, theUrlExtension);
036        }
037
038        public HttpPostClientInvocation(FhirContext theContext, IBaseResource theResource) {
039                super(theContext, theResource, null);
040        }
041
042        public HttpPostClientInvocation(FhirContext theContext, List<? extends IBaseResource> theResources, BundleTypeEnum theBundleType) {
043                super(theContext, theResources, theBundleType);
044        }
045
046        public HttpPostClientInvocation(FhirContext theContext, String theContents, boolean theIsBundle, String theUrlExtension) {
047                super(theContext, theContents, theIsBundle, theUrlExtension);
048        }
049
050        public HttpPostClientInvocation(FhirContext theContext, Map<String, List<String>> theParams, String... theUrlExtension) {
051                super(theContext, theParams, theUrlExtension);
052        }
053
054        @Override
055        protected RequestTypeEnum getRequestType() {
056                return RequestTypeEnum.POST;
057        }
058
059}