public abstract class SmsClientSupport extends AbstractBceClient
SmsClient class
should need| Modifier and Type | Field and Description |
|---|---|
protected static HttpResponseHandler[] |
SMS_HANDLERS |
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
SmsClientSupport(BceClientConfiguration config,
HttpResponseHandler[] responseHandlers) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertListNotNullOrEmpty(List<?> parameterValue,
String errorMessage) |
protected void |
assertMapNotNullOrEmpty(Map parameterValue,
String errorMessage) |
protected void |
assertStringArrayNotNullOrEmpty(String[] parameterValue,
String errorMessage) |
protected void |
assertStringNotNullOrEmpty(String parameterValue,
String errorMessage) |
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
|
protected InternalRequest |
createRequest(String resourceKey,
AbstractBceRequest bceRequest,
HttpMethodName httpMethod,
String... pathVariables) |
protected InternalRequest |
fillRequestPayload(InternalRequest internalRequest,
String strJson) |
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownprotected static final HttpResponseHandler[] SMS_HANDLERS
protected SmsClientSupport(BceClientConfiguration config, HttpResponseHandler[] responseHandlers)
protected InternalRequest createGeneralRequest(String pathPrefix, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
pathPrefix - resourcePathbceRequest - bceRequesthttpMethod - method: post、get etc.pathVariables - variablesprotected InternalRequest createRequest(String resourceKey, AbstractBceRequest bceRequest, HttpMethodName httpMethod, String... pathVariables)
protected InternalRequest fillRequestPayload(InternalRequest internalRequest, String strJson)
protected void assertStringNotNullOrEmpty(String parameterValue, String errorMessage)
protected void assertMapNotNullOrEmpty(Map parameterValue, String errorMessage)
protected void assertStringArrayNotNullOrEmpty(String[] parameterValue, String errorMessage)
Copyright © 2020. All rights reserved.