Examples of MailErrorHandler


Examples of org.springframework.batch.item.mail.MailErrorHandler

  @Test
  public void testCustomErrorHandler() throws Exception {

    final AtomicReference<String> content = new AtomicReference<String>();
    writer.setMailErrorHandler(new MailErrorHandler() {
            @Override
      public void handle(MailMessage message, Exception exception) throws MailException {
        content.set(exception.getMessage());
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.