Author: norman
Date: Tue Sep 27 19:08:19 2011
New Revision: 1176535
URL: http://svn.apache.org/viewvc?rev=1176535&view=rev
Log:
Finish the "import" of the lmtpserver code base. Its now reusable without any
dependencies on james server. See PROTOCOLS-1
Added:
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java
(with props)
Modified:
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfiguration.java
Modified:
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfiguration.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfiguration.java?rev=1176535&r1=1176534&r2=1176535&view=diff
==============================================================================
---
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfiguration.java
(original)
+++
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfiguration.java
Tue Sep 27 19:08:19 2011
@@ -20,35 +20,15 @@ package org.apache.james.protocols.lmtp;
import org.apache.james.protocols.smtp.SMTPConfiguration;
-public class LMTPConfiguration implements SMTPConfiguration{
+public abstract class LMTPConfiguration implements SMTPConfiguration{
- private String helloName = "localhost";
- private long maxMessageSize = 0;
- private String greeting = "JAMES Protocols LMTP Server";
-
- @Override
- public String getHelloName() {
- return helloName;
- }
- public void setHelloName(String helloName) {
- this.helloName = helloName;
- }
@Override
public int getResetLength() {
return -1;
}
- @Override
- public long getMaxMessageSize() {
- return maxMessageSize;
- }
-
- public void setMaxMessageSize(long maxMessageSize) {
- this.maxMessageSize = maxMessageSize;
- }
-
@Override
public boolean isRelayingAllowed(String remoteIP) {
@@ -66,16 +46,6 @@ public class LMTPConfiguration implement
}
@Override
- public String getSMTPGreeting() {
- return greeting;
- }
-
- public void setGreeting(String greeting) {
- this.greeting = greeting;
- }
-
-
- @Override
public boolean useAddressBracketsEnforcement() {
return false;
}
Added:
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java?rev=1176535&view=auto
==============================================================================
---
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java
(added)
+++
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java
Tue Sep 27 19:08:19 2011
@@ -0,0 +1,56 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you under the Apache License, Version 2.0 (the *
+ * "License"); you may not use this file except in compliance *
+ * with the License. You may obtain a copy of the License at *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, *
+ * software distributed under the License is distributed on an *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ * KIND, either express or implied. See the License for the *
+ * specific language governing permissions and limitations *
+ * under the License. *
+ ****************************************************************/
+package org.apache.james.protocols.lmtp;
+
+public class LMTPConfigurationImpl extends LMTPConfiguration{
+
+ private String helloName = "localhost";
+ private long maxMessageSize = 0;
+ private String greeting = "JAMES Protocols LMTP Server";
+
+ @Override
+ public String getHelloName() {
+ return helloName;
+ }
+
+ public void setHelloName(String helloName) {
+ this.helloName = helloName;
+ }
+
+
+ @Override
+ public long getMaxMessageSize() {
+ return maxMessageSize;
+ }
+
+ public void setMaxMessageSize(long maxMessageSize) {
+ this.maxMessageSize = maxMessageSize;
+ }
+
+
+ @Override
+ public String getSMTPGreeting() {
+ return greeting;
+ }
+
+ public void setGreeting(String greeting) {
+ this.greeting = greeting;
+ }
+
+}
Propchange:
james/protocols/trunk/lmtp/src/main/java/org/apache/james/protocols/lmtp/LMTPConfigurationImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]