Author: davsclaus
Date: Tue Nov 11 10:56:17 2008
New Revision: 713107
URL: http://svn.apache.org/viewvc?rev=713107&view=rev
Log:
CAMEL-656: polished code and marked methods for @deprecation
Modified:
activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailComponent.java
Modified:
activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailComponent.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailComponent.java?rev=713107&r1=713106&r2=713107&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailComponent.java
(original)
+++
activemq/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailComponent.java
Tue Nov 11 10:56:17 2008
@@ -50,6 +50,8 @@
/**
* Static builder method
+ *
+ * @deprecated will be removed in Camel 2.0
*/
public static MailComponent mailComponent() {
return new MailComponent();
@@ -57,6 +59,8 @@
/**
* Static builder method
+ *
+ * @deprecated will be removed in Camel 2.0
*/
public static MailComponent mailComponent(MailConfiguration configuration)
{
return new MailComponent(configuration);
@@ -64,7 +68,6 @@
@Override
protected Endpoint createEndpoint(String uri, String remaining, Map
parameters) throws Exception {
-
URI url = new URI(uri);
if ("nntp".equalsIgnoreCase(url.getScheme())) {
throw new UnsupportedOperationException("nntp protocol is not
supported");
@@ -107,6 +110,5 @@
public void setHeaderFilterStrategy(HeaderFilterStrategy strategy) {
headerFilterStrategy = strategy;
-
}
}