Author: rdonkin
Date: Fri Jul 24 19:38:48 2009
New Revision: 797629
URL: http://svn.apache.org/viewvc?rev=797629&view=rev
Log:
JSIEVE-59 Reuse main class https://issues.apache.org/jira/browse/JSIEVE-59
Modified:
james/jsieve/trunk/mailet/src/main/java/org/apache/jsieve/mailet/SieveMailAdapter.java
Modified:
james/jsieve/trunk/mailet/src/main/java/org/apache/jsieve/mailet/SieveMailAdapter.java
URL:
http://svn.apache.org/viewvc/james/jsieve/trunk/mailet/src/main/java/org/apache/jsieve/mailet/SieveMailAdapter.java?rev=797629&r1=797628&r2=797629&view=diff
==============================================================================
---
james/jsieve/trunk/mailet/src/main/java/org/apache/jsieve/mailet/SieveMailAdapter.java
(original)
+++
james/jsieve/trunk/mailet/src/main/java/org/apache/jsieve/mailet/SieveMailAdapter.java
Fri Jul 24 19:38:48 2009
@@ -44,6 +44,7 @@
import org.apache.jsieve.exception.InternetAddressException;
import org.apache.jsieve.exception.SieveException;
import org.apache.jsieve.mail.Action;
+import org.apache.jsieve.mail.AddressImpl;
import org.apache.jsieve.mail.MailAdapter;
import org.apache.jsieve.mail.MailUtils;
import org.apache.jsieve.mail.SieveMailException;
@@ -390,42 +391,6 @@
throw new InternetAddressException(e);
}
}
-
- /**
- * Simple immutable address implementation.
- * TODO: replace this with JSieve version
- */
- private static final class AddressImpl implements MailAdapter.Address {
-
- private final String localPart;
- private final String domain;
-
- /**
- * Constructs an address.
- * @param localPart the local part of the address
- * @param domain the domain part of the address
- */
- public AddressImpl(final String localPart, final String domain) {
- super();
- this.localPart = localPart;
- this.domain = domain;
- }
-
- /**
- * Gets the domain of the address.
- * @return domain
- */
- public String getDomain() {
- return domain;
- }
-
- /**
- * Gets the local part of the address.
- */
- public String getLocalPart() {
- return localPart;
- }
- }
public Log getLog() {
return log;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]