com.baidubce.services.sms
Class SmsClientSupport
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.sms.SmsClientSupport
- Direct Known Subclasses:
- SmsClient
public abstract class SmsClientSupport
- extends AbstractBceClient
This class is abstract. It contains all common methods which the SmsClient
class
should need
Method Summary |
protected void |
assertListNotNullOrEmpty(List<?> 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
- Parameters:
pathPrefix
- resourcePathbceRequest
- bceRequesthttpMethod
- method: post、get etc.pathVariables
- variables
- Returns:
- 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)
assertStringArrayNotNullOrEmpty
protected void assertStringArrayNotNullOrEmpty(String[] parameterValue,
String errorMessage)
assertListNotNullOrEmpty
protected void assertListNotNullOrEmpty(List<?> parameterValue,
String errorMessage)
Copyright © 2018. All rights reserved.