cleaning up

This commit is contained in:
leif stawnyczy 2024-08-06 16:28:23 -04:00
parent afde9df9a6
commit e8a5193c19
2 changed files with 10 additions and 43 deletions

View File

@ -1,43 +0,0 @@
package ca.uhn.fhir.rest.client.model;
import ca.uhn.fhir.rest.api.RequestTypeEnum;
import org.apache.http.HttpEntity;
@Deprecated
public class CreateHttpRequestParameters {
/**
* GET, DELETE, etc...
* This is the minimum info needed to make a request
*/
private final RequestTypeEnum myRequestTypeEnum;
private HttpEntity myEntity;
private String myUrl;
public CreateHttpRequestParameters(RequestTypeEnum theRequestTypeEnum) {
myRequestTypeEnum = theRequestTypeEnum;
}
public RequestTypeEnum getRequestTypeEnum() {
return myRequestTypeEnum;
}
public HttpEntity getEntity() {
return myEntity;
}
public CreateHttpRequestParameters setEntity(HttpEntity theEntity) {
myEntity = theEntity;
return this;
}
public String getUrl() {
return myUrl;
}
public CreateHttpRequestParameters setUrl(String theUrl) {
myUrl = theUrl;
return this;
}
}

View File

@ -150,6 +150,16 @@ public class JaxRsHttpClient implements IHttpClient {
return request;
}
@Override
public void addHeadersToRequest(IHttpRequest theRequest, EncodingEnum theEncodingEnum, FhirContext theContext) {
// nothing to do for this client
}
@Override
public void setNewUrl(StringBuilder theUrl) {
myUrl = theUrl;
}
public void addHeadersToRequest(JaxRsHttpRequest theHttpRequest, EncodingEnum theEncoding, FhirContext theContext) {
if (myHeaders != null) {
for (Header next : myHeaders) {