View Javadoc
1   /*
2    * Copyright 2016 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.openehealth.ipf.commons.ihe.fhir;
18  
19  /**
20   * @author Christian Ohr
21   * @since 3.1
22   */
23  public interface Constants {
24  
25      String SOURCE_IDENTIFIER_NAME = "sourceIdentifier";
26      String TARGET_SYSTEM_NAME = "targetSystem";
27  
28      String FHIR_CONTEXT = "FhirContext";
29  
30      // Request parameter information
31      String FHIR_REQUEST_PARAMETERS = "FhirRequestParameters";
32  
33      // Parameter information from the HttpServletRequest
34      String HTTP_URI = "FhirHttpUri";
35      String HTTP_URL = "FhirHttpUrl";
36      String HTTP_SCHEME = "FhirHttpScheme";
37      String HTTP_METHOD = "FhirHttpMethod";
38      String HTTP_QUERY = "FhirHttpQuery";
39      String HTTP_CHARACTER_ENCODING = "FhirHttpCharacterEncoding";
40      String HTTP_CONTENT_TYPE = "FhirHttpContentType";
41      String HTTP_PROTOCOL_VERSION = "FhirHttpProtocolVersion";
42      String HTTP_CLIENT_IP_ADDRESS = "FhirHttpClientIpAddress";
43      String HTTP_HEADERS = "FhirHttpHeaders";
44      String HTTP_X509_CERTIFICATES = "FhirHttpCertificates";
45  
46      String FHIR_RESOURCE_TYPE_HEADER = "RESOURCE_TYPE_HEADER";
47      String FHIR_OPERATION_HEADER = "OPERATION_HEADER";
48  
49      // Paging stuff
50      String FHIR_COUNT = ca.uhn.fhir.rest.api.Constants.PARAM_COUNT;
51      String FHIR_FIRST = ca.uhn.fhir.rest.api.Constants.LINK_FIRST;
52      String FHIR_LAST= ca.uhn.fhir.rest.api.Constants.LINK_LAST;
53      String FHIR_PREVIOUS = ca.uhn.fhir.rest.api.Constants.LINK_PREVIOUS;
54      String FHIR_NEXT = ca.uhn.fhir.rest.api.Constants.LINK_NEXT;
55  
56      String FHIR_FROM_INDEX = "FhirFromIndex";
57      String FHIR_TO_INDEX = "FhirToIndex";
58      String FHIR_REQUEST_SIZE_ONLY = "FhirRequestSizeOnly";
59      String FHIR_REQUEST_GET_ONLY = "FhirRequestGetOnly";
60  
61      String URN_IETF_RFC_3986 = "urn:ietf:rfc:3986";
62  }