cleaning up
This commit is contained in:
parent
afde9df9a6
commit
e8a5193c19
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue