Class HuskyUtils
java.lang.Object
org.projecthusky.communication.utils.HuskyUtils
Helper class for husky specific functionality.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createEndpoint
(String transactionType, String destination, boolean auditEnabled) Method to create the endpoint string for IPF.static String
createEndpoint
(String transactionType, String destination, boolean secure, boolean auditEnabled) Method to create the endpoint string for IPF.static String
createEndpoint
(String transactionType, URI destination, boolean auditEnabled) Method to create the endpoint string for IPF.static String
createEndpoint
(String transactionType, URI destination, boolean secure, boolean auditEnabled) Method to create the endpoint string for IPF.
-
Field Details
-
SERVER_IN_LOGGER
- See Also:
-
SERVER_OUT_LOGGER
- See Also:
-
AUDIT_CONTEXT
- See Also:
-
HTTP_CLIENT_POLICY
- See Also:
-
HTTPS_LITERAL
- See Also:
-
HTTP_LITERAL
- See Also:
-
-
Constructor Details
-
HuskyUtils
public HuskyUtils()
-
-
Method Details
-
createEndpoint
Method to create the endpoint string for IPF.- Parameters:
transactionType
- the IHE transaction typedestination
- the destination URIauditEnabled
- true if audit is enabled- Returns:
- the IPF/Camel endpoint string
-
createEndpoint
public static String createEndpoint(String transactionType, String destination, boolean auditEnabled) Method to create the endpoint string for IPF.- Parameters:
transactionType
- the IHE transaction typedestination
- the destination as stringauditEnabled
- true if audit is enabled- Returns:
- the IPF/Camel endpoint string
-
createEndpoint
public static String createEndpoint(String transactionType, URI destination, boolean secure, boolean auditEnabled) Method to create the endpoint string for IPF.- Parameters:
transactionType
- the IHE transaction typedestination
- the destination as URIsecure
- true if it should be secureauditEnabled
- true if audit is enabled- Returns:
- the IPF/Camel endpoint string
-
createEndpoint
public static String createEndpoint(String transactionType, String destination, boolean secure, boolean auditEnabled) Method to create the endpoint string for IPF.- Parameters:
transactionType
- the IHE transaction typedestination
- the destination as Stringsecure
- true if it should be secureauditEnabled
- true if audit is enabled- Returns:
- the IPF/Camel endpoint string
-