Start structural port from Spring Boot to Undertow
This commit is contained in:
@@ -36,8 +36,6 @@ import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -47,15 +45,13 @@ import static com.sendgrid.SendGrid.Email;
|
||||
import static com.sendgrid.SendGrid.Response;
|
||||
import static io.kamax.mxisd.config.threepid.connector.EmailSendGridConfig.EmailTemplate;
|
||||
|
||||
@Component
|
||||
public class EmailSendGridNotificationHandler extends PlaceholderNotificationGenerator implements INotificationHandler {
|
||||
|
||||
private Logger log = LoggerFactory.getLogger(EmailSendGridNotificationHandler.class);
|
||||
private transient final Logger log = LoggerFactory.getLogger(EmailSendGridNotificationHandler.class);
|
||||
|
||||
private EmailSendGridConfig cfg;
|
||||
private SendGrid sendgrid;
|
||||
|
||||
@Autowired
|
||||
public EmailSendGridNotificationHandler(MatrixConfig mxCfg, ServerConfig srvCfg, EmailSendGridConfig cfg) {
|
||||
super(mxCfg, srvCfg);
|
||||
this.cfg = cfg;
|
||||
|
||||
@@ -29,8 +29,6 @@ import org.apache.commons.io.IOUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.mail.Message;
|
||||
import javax.mail.MessagingException;
|
||||
@@ -42,15 +40,13 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.Date;
|
||||
import java.util.Properties;
|
||||
|
||||
@Component
|
||||
public class EmailSmtpConnector implements IEmailConnector {
|
||||
|
||||
private Logger log = LoggerFactory.getLogger(EmailSmtpConnector.class);
|
||||
private transient final Logger log = LoggerFactory.getLogger(EmailSmtpConnector.class);
|
||||
|
||||
private EmailSmtpConfig cfg;
|
||||
private Session session;
|
||||
|
||||
@Autowired
|
||||
public EmailSmtpConnector(EmailSmtpConfig cfg) {
|
||||
this.cfg = cfg;
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
|
||||
package io.kamax.mxisd.threepid.connector.phone;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class BlackholePhoneConnector implements IPhoneConnector {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,17 +28,13 @@ import io.kamax.mxisd.exception.BadRequestException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class PhoneSmsTwilioConnector implements IPhoneConnector {
|
||||
|
||||
private Logger log = LoggerFactory.getLogger(PhoneSmsTwilioConnector.class);
|
||||
private transient final Logger log = LoggerFactory.getLogger(PhoneSmsTwilioConnector.class);
|
||||
|
||||
private PhoneTwilioConfig cfg;
|
||||
|
||||
@Autowired
|
||||
public PhoneSmsTwilioConnector(PhoneTwilioConfig cfg) {
|
||||
this.cfg = cfg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user