|
10 | 10 | import org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent; |
11 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 12 | import org.springframework.beans.factory.annotation.Value; |
| 13 | +import org.springframework.http.HttpHeaders; |
13 | 14 | import org.springframework.http.HttpMethod; |
14 | 15 | import org.springframework.http.HttpStatus; |
15 | 16 | import org.springframework.http.MediaType; |
|
36 | 37 | import java.util.Collections; |
37 | 38 |
|
38 | 39 | import static java.lang.String.valueOf; |
39 | | -import static org.apache.http.protocol.HTTP.CONTENT_LEN; |
40 | | -import static org.apache.http.protocol.HTTP.CONTENT_TYPE; |
41 | 40 |
|
42 | 41 | @Component |
43 | 42 | @RequiredArgsConstructor(onConstructor = @__(@Autowired)) |
@@ -146,13 +145,13 @@ private RequestBodySpec buildRequestWithHeaders(RequestBodySpec uri, TaskDefinit |
146 | 145 | return uri.accept(MediaType.valueOf(FHIR_CONTENT_TYPE)) |
147 | 146 | .header(SSP_INTERACTION_ID, interactionId) |
148 | 147 | .header(SSP_TRACE_ID, taskDefinition.getConversationId()) |
149 | | - .header(CONTENT_TYPE, FHIR_CONTENT_TYPE); |
| 148 | + .header(HttpHeaders.CONTENT_TYPE, FHIR_CONTENT_TYPE); |
150 | 149 | } |
151 | 150 |
|
152 | 151 | private RequestHeadersSpec<?> buildRequestWithHeadersAndBody(RequestBodySpec uri, String requestBody, |
153 | 152 | BodyInserter<Object, ReactiveHttpOutputMessage> bodyInserter, TaskDefinition taskDefinition, String interactionId) { |
154 | 153 | return buildRequestWithHeaders(uri, taskDefinition, interactionId) |
155 | 154 | .body(bodyInserter) |
156 | | - .header(CONTENT_LEN, valueOf(requestBody.length())); |
| 155 | + .header(HttpHeaders.CONTENT_LENGTH, valueOf(requestBody.length())); |
157 | 156 | } |
158 | 157 | } |
0 commit comments