コード例 #1
0
 @Override
 public void checkValid() throws SBTException {
   super.checkValid();
   if (StringUtil.isEmpty(oaProvider.getConsumerKey())) {
     throw new SBTException(null, "The Endpoint consumer key is empty, class {0}", getClass());
   }
   if (StringUtil.isEmpty(oaProvider.getConsumerSecret())) {
     throw new SBTException(null, "The Endpoint consumer secret is empty, class {0}", getClass());
   }
   if (StringUtil.isEmpty(oaProvider.getAuthorizationURL())) {
     throw new SBTException(
         null, "The Endpoint authorization URL is empty, class {0}", getClass());
   }
   if (StringUtil.isEmpty(oaProvider.getRequestTokenURL())) {
     throw new SBTException(
         null, "The Endpoint request token URL is empty, class {0}", getClass());
   }
   if (StringUtil.isEmpty(oaProvider.getAccessTokenURL())) {
     throw new SBTException(null, "The Endpoint access token URL is empty, class {0}", getClass());
   }
 }