Author: norman
Date: Tue Sep 29 15:58:45 2009
New Revision: 820003
URL: http://svn.apache.org/viewvc?rev=820003&view=rev
Log:
Missing header
Modified:
james/server/trunk/pop3server-function/src/main/java/org/apache/james/pop3server/StlsCmdHandler.java
Modified:
james/server/trunk/pop3server-function/src/main/java/org/apache/james/pop3server/StlsCmdHandler.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/pop3server-function/src/main/java/org/apache/james/pop3server/StlsCmdHandler.java?rev=820003&r1=820002&r2=820003&view=diff
==============================================================================
---
james/server/trunk/pop3server-function/src/main/java/org/apache/james/pop3server/StlsCmdHandler.java
(original)
+++
james/server/trunk/pop3server-function/src/main/java/org/apache/james/pop3server/StlsCmdHandler.java
Tue Sep 29 15:58:45 2009
@@ -1,3 +1,23 @@
+/****************************************************************
+ * 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.pop3server;
import java.io.IOException;
@@ -5,10 +25,10 @@
public class StlsCmdHandler implements CommandHandler{
/**
- * @throws
- *
+ * @see
org.apache.james.pop3server.CommandHandler#onCommand(org.apache.james.pop3server.POP3Session)
*/
public void onCommand(POP3Session session) {
+ // check if starttls is supported, the state is the right one
and it was not started before
if (session.isStartTLSSupported() && session.getHandlerState()
== POP3Handler.TRANSACTION && session.isTLSStarted() == false) {
session.writeResponse(POP3Handler.OK_RESPONSE+ " Begin
TLS negotiation");
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]