daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. final Logger logger = LogManager.getLogger(ScheduledQueryRunnable.class);
  2.  
  3.     @Autowired
  4.     SendScheduledRequestService sendScheduledRequestService;
  5.  
  6.     public void run() {
  7.  
  8.         String endpointUri = this.getEndpoint().getUri();
  9.         byte[] body = new byte[0];
  10.         try {
  11.             body = this.getBody().getBytes(1, (int) this.getBody().length());
  12.         } catch (SQLException e) {
  13.             logger.error(e.getMessage());
  14.         }
  15.         String contentType = this.getContentType();
  16.         sendScheduledRequestService.sendSheduledRequest(endpointUri, body, contentType);
  17.         logger.info("сообщение отправлено");
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top