Class DashScopeHeaders
java.lang.Object
com.alibaba.dashscope.legacy_2x.protocol.DashScopeHeaders
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders) Deprecated.buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent) Deprecated.buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) Deprecated.buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders) Deprecated.buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders, String customUserAgent) Deprecated.buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) Deprecated.static StringfindRequestId(Map<String, ?> headers) Deprecated.static StringrequestIdOrUnknown(String requestId) Deprecated.static StringDeprecated.static StringDeprecated.
-
Constructor Details
-
DashScopeHeaders
public DashScopeHeaders()Deprecated.
-
-
Method Details
-
findRequestId
Deprecated. -
requestIdOrUnknown
Deprecated. -
userAgent
Deprecated. -
userAgent
Deprecated. -
buildWebSocketHeaders
public static Map<String,String> buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-
buildWebSocketHeaders
public static Map<String,String> buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders, String customUserAgent) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-
buildWebSocketHeaders
public static Map<String,String> buildWebSocketHeaders(String apiKey, boolean isSecurityCheck, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-
buildHttpHeaders
public static Map<String,String> buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-
buildHttpHeaders
public static Map<String,String> buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-
buildHttpHeaders
public static Map<String,String> buildHttpHeaders(String apiKey, Boolean isSecurityCheck, Protocol protocol, Boolean isSSE, Boolean isAsyncTask, String workspace, Map<String, String> customHeaders, String customUserAgent, String module) throws NoApiKeyExceptionDeprecated.- Throws:
NoApiKeyException
-