类 SmsClientSupport
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.sms.SmsClientSupport
-
- 直接已知子类:
SmsClient
public abstract class SmsClientSupport extends AbstractBceClient
This class is abstract. It contains all common methods which theSmsClientclass should need
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static HttpResponseHandler[]SMS_HANDLERS-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 限定符 构造器 说明 protectedSmsClientSupport(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidassertListNotNullOrEmpty(List<?> parameterValue, String errorMessage)protected voidassertMapNotNullOrEmpty(Map parameterValue, String errorMessage)protected voidassertStringArrayNotNullOrEmpty(String[] parameterValue, String errorMessage)protected voidassertStringNotNullOrEmpty(String parameterValue, String errorMessage)protected InternalRequestcreateGeneralRequest(String pathPrefix, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)create general request: by pathPrefix(not contains v1 URL_PREFIX) pathPrefix combined with pathVariables will generate new path For example:/pathPrefix/../pathVariable1/pathVariable2protected InternalRequestcreateRequest(String resourceKey, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)protected InternalRequestfillRequestPayload(InternalRequest internalRequest, String strJson)-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
字段详细资料
-
SMS_HANDLERS
protected static final HttpResponseHandler[] SMS_HANDLERS
-
-
构造器详细资料
-
SmsClientSupport
protected SmsClientSupport(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
-
-
方法详细资料
-
createGeneralRequest
protected InternalRequest createGeneralRequest(String pathPrefix, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
create general request: by pathPrefix(not contains v1 URL_PREFIX) pathPrefix combined with pathVariables will generate new path For example:/pathPrefix/../pathVariable1/pathVariable2- 参数:
pathPrefix- resourcePathbceRequest- bceRequesthttpMethod- method: post、get etc.pathVariables- variables- 返回:
- send request message
-
createRequest
protected InternalRequest createRequest(String resourceKey, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
-
fillRequestPayload
protected InternalRequest fillRequestPayload(InternalRequest internalRequest, String strJson)
-
assertStringNotNullOrEmpty
protected void assertStringNotNullOrEmpty(String parameterValue, String errorMessage)
-
assertMapNotNullOrEmpty
protected void assertMapNotNullOrEmpty(Map parameterValue, String errorMessage)
-
assertStringArrayNotNullOrEmpty
protected void assertStringArrayNotNullOrEmpty(String[] parameterValue, String errorMessage)
-
-