Author: norman
Date: Mon Nov 21 07:48:58 2011
New Revision: 1204382
URL: http://svn.apache.org/viewvc?rev=1204382&view=rev
Log:
Rename POP3HandlerConfiguration to POP3Configuration to be more inline with how
its called in smtp and lmtp. Also add a basic implementation
Added:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Configuration.java
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
Removed:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3HandlerConfiguration.java
Modified:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Protocol.java
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Session.java
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
Added:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Configuration.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Configuration.java?rev=1204382&view=auto
==============================================================================
---
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Configuration.java
(added)
+++
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Configuration.java
Mon Nov 21 07:48:58 2011
@@ -0,0 +1,34 @@
+/****************************************************************
+ * 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.pop3;
+
+/**
+ * Provides a number of server-wide constant values to the POP3Handlers
+ */
+public interface POP3Configuration {
+
+ /**
+ * Returns the service wide hello name
+ *
+ * @return the hello name
+ */
+ String getHelloName();
+
+}
Added:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java?rev=1204382&view=auto
==============================================================================
---
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
(added)
+++
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
Mon Nov 21 07:48:58 2011
@@ -0,0 +1,35 @@
+/****************************************************************
+ * 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.pop3;
+
+public class POP3ConfigurationImpl implements POP3Configuration {
+
+ private final String helloName;
+
+ public POP3ConfigurationImpl(String helloName) {
+ this.helloName = helloName;
+ }
+
+ @Override
+ public String getHelloName() {
+ return helloName;
+ }
+
+}
Modified:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Protocol.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Protocol.java?rev=1204382&r1=1204381&r2=1204382&view=diff
==============================================================================
---
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Protocol.java
(original)
+++
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Protocol.java
Mon Nov 21 07:48:58 2011
@@ -26,9 +26,9 @@ import org.apache.james.protocols.api.ha
public class POP3Protocol extends ProtocolImpl{
- private final POP3HandlerConfiguration config;
+ private final POP3Configuration config;
- public POP3Protocol(ProtocolHandlerChain chain, POP3HandlerConfiguration
config) {
+ public POP3Protocol(ProtocolHandlerChain chain, POP3Configuration config) {
super(chain);
this.config = config;
}
Modified:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Session.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Session.java?rev=1204382&r1=1204381&r2=1204382&view=diff
==============================================================================
---
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Session.java
(original)
+++
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3Session.java
Mon Nov 21 07:48:58 2011
@@ -47,7 +47,7 @@ public interface POP3Session extends Pro
*
* @return POP3HandlerConfigurationData
*/
- POP3HandlerConfiguration getConfigurationData();
+ POP3Configuration getConfigurationData();
/**
* Returns the current handler state
Modified:
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java?rev=1204382&r1=1204381&r2=1204382&view=diff
==============================================================================
---
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
(original)
+++
james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
Mon Nov 21 07:48:58 2011
@@ -28,14 +28,14 @@ import org.slf4j.Logger;
* {@link POP3Session} implementation which use Netty
*/
public class POP3SessionImpl extends ProtocolSessionImpl implements
POP3Session {
- private POP3HandlerConfiguration configData;
+ private POP3Configuration configData;
private int handlerState;
private Mailbox mailbox;
- public POP3SessionImpl(Logger logger, ProtocolTransport transport,
POP3HandlerConfiguration configData) {
+ public POP3SessionImpl(Logger logger, ProtocolTransport transport,
POP3Configuration configData) {
super(logger, transport);
this.configData = configData;
}
@@ -43,7 +43,7 @@ public class POP3SessionImpl extends Pro
/**
* @see org.apache.james.pop3server.POP3Session#getConfigurationData()
*/
- public POP3HandlerConfiguration getConfigurationData() {
+ public POP3Configuration getConfigurationData() {
return configData;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]