Class CurlUtils
java.lang.Object
org.qubership.atp.itf.lite.backend.converters.curl.CurlUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHeaderJsonContentType(RequestHeader header) Check if header is "Content-Type: application/json".static booleanisHeaderXmlContentType(RequestHeader header) Check if header is "Content-Type: application/xml" or "Content-Type: text/xml".
-
Constructor Details
-
CurlUtils
public CurlUtils()
-
-
Method Details
-
isHeaderXmlContentType
Check if header is "Content-Type: application/xml" or "Content-Type: text/xml".- Parameters:
header- request header- Returns:
- true/false
-
isHeaderJsonContentType
Check if header is "Content-Type: application/json".- Parameters:
header- request header- Returns:
- true/false
-