Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.pbm.ampl.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import gov.va.med.pbm.ampl.utility.ESAPIValidator;
import gov.va.med.pbm.ampl.utility.ESAPIValidationType;

/**
* The FhirConfiguration class is a Spring Component which reads and provides FHIR resources to the API.
*
* @author Ian Meinert
*
*/
@Component
public class FhirConfiguration {

/**
* The static URL protocol used by the DSTU2 client.
*/
@Value("${fhir.server-uri.dstu2.protocol}")
private String protocol;

/**
* The static URL server name used by the DSTU2 client.
*/
@Value("${fhir.server-uri.dstu2.host}")
private String host;

/**
* The static URL path used by the DSTU2 client.
*/
@Value("${fhir.server-uri.dstu2.path}")
private String path;

/**
* The static path variable used by the DSTU2 client for obtaining a session path.
*/
@Value("${fhir.server-uri.dstu2.iscSessionPath}")
private String iscSessionPath;

/**
* The getter for the protocol.
*
* @return the protocol
*/
public String getProtocol() {
return protocol;
}

/**
* The setter for the protocol.
*
* @param protocol the protocol to set
*/
public void setProtocol(String protocol) {
this.protocol = protocol;
}

/**
* The getter for the host.
*
* @return the host
*/
public String getHost() {
return host;
}

/**
* The setter for the host.
*
* @param host the host to set
*/
public void setHost(String host) {
this.host = host;
}

/**
* The getter for the path.
*
* @return the path
*/
public String getPath() {
return ESAPIValidator.validateStringInput(path, ESAPIValidationType.PATH_MANIPULATION);
}

/**
* The setter for the path.
*
* @param path the path to set
*/
public void setPath(String path) {
this.path = path;
}

/**
* The getter for the iscSessionPath.
*
* @return the iscSessionPath
*/
public String getIscSessionPath() {
return ESAPIValidator.validateStringInput(iscSessionPath, ESAPIValidationType.PATH_MANIPULATION);
}

/**
* The setter for the iscSessionPath.
*
* @param iscSessionPath the iscSessionPath to set
*/
public void setIscSessionPath(String iscSessionPath) {
this.iscSessionPath = iscSessionPath;
}
}