[Yanel-commits] rev 58123 - public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/resources/jellyadapterofcmdv3
michi at wyona.com
michi at wyona.com
Fri Apr 29 11:33:07 CEST 2011
Author: michi
Date: 2011-04-29 11:33:07 +0200 (Fri, 29 Apr 2011)
New Revision: 58123
Modified:
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/resources/jellyadapterofcmdv3/BasicFormResource.java
Log:
obsolete code removed
Modified: public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/resources/jellyadapterofcmdv3/BasicFormResource.java
===================================================================
--- public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/resources/jellyadapterofcmdv3/BasicFormResource.java 2011-04-29 09:27:24 UTC (rev 58122)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/resources/jellyadapterofcmdv3/BasicFormResource.java 2011-04-29 09:33:07 UTC (rev 58123)
@@ -73,6 +73,9 @@
private StringBuilder resultXml = new StringBuilder();
private LinkedList<NameValuePair> validationErrors = new LinkedList<NameValuePair>();
+ /**
+ * @see
+ */
public View getView(String viewId) throws Exception {
String sslRedirectParam = getResourceConfigProperty("ssl-redirect");
if (sslRedirectParam != null && sslRedirectParam.equals("true")) {
@@ -158,40 +161,6 @@
protected void sendMail(String from, String replyTo, String to, String subject, String content) throws Exception {
log.warn("DEPRECATED");
org.wyona.yanel.core.util.MailUtil.send(from, replyTo, to, subject, content);
-
-
-/*
- // Create a mail session
- java.util.Properties props = new java.util.Properties();
- props.put("mail.smtp.host", getResourceConfigProperty("smtpHost"));
- props.put("mail.smtp.port", "" + getResourceConfigProperty("smtpPort"));
- // TODO: http://java.sun.com/products/javamail/javadocs/javax/mail/Session.html
- Session session = Session.getDefaultInstance(props, null);
-
- // Construct the message
- Message msg = new MimeMessage(session);
- msg.setFrom(new InternetAddress(from));
- if (replyTo != null) {
- InternetAddress[] replyToAddresses = new InternetAddress[1];
- replyToAddresses[0] = new InternetAddress(replyTo);
- msg.setReplyTo(replyToAddresses);
- }
- if( log.isDebugEnabled() )
- log.debug("From: " + msg.getFrom() + ", " + from);
- msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
- msg.setSubject(subject);
- msg.setText(content);
-*/
-
-/*
- msg.setSubject(subject,"utf-8");
- msg.setContent(content, "text/plain;charset=utf-8");
-*/
-
-/*
- // Send the message
- Transport.send(msg);
-*/
}
/**
More information about the Yanel-commits
mailing list