hammant 2004/08/22 10:49:23
Modified: api/src/java/org/apache/ftpserver CommandHandlerMonitor.java
ConnectionMonitor.java DataConnectionMonitor.java
FileListener.java FileMonitor.java
RemoteHandlerMonitor.java User.java
UserManagerException.java UserManagerMonitor.java
WriterMonitor.java
Added: api/src/java/org/apache/ftpserver FtpServer.java
Removed: api/src/java/org/apache/ftpserver ServerInterface.java
Log:
rename and license headers
Revision Changes Path
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/CommandHandlerMonitor.java
Index: CommandHandlerMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/CommandHandlerMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CommandHandlerMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ CommandHandlerMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
import java.io.IOException;
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/ConnectionMonitor.java
Index: ConnectionMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/ConnectionMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ConnectionMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ ConnectionMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
import java.io.File;
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/DataConnectionMonitor.java
Index: DataConnectionMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/DataConnectionMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DataConnectionMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ DataConnectionMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
import java.io.IOException;
1.2 +2 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/FileListener.java
Index: FileListener.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/FileListener.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FileListener.java 22 Aug 2004 12:10:49 -0000 1.1
+++ FileListener.java 22 Aug 2004 17:49:22 -0000 1.2
@@ -16,6 +16,7 @@
*
* $Id$
*/
+
package org.apache.ftpserver;
import java.io.File;
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/FileMonitor.java
Index: FileMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/FileMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FileMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ FileMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
import java.io.File;
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/RemoteHandlerMonitor.java
Index: RemoteHandlerMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/RemoteHandlerMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- RemoteHandlerMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ RemoteHandlerMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
/**
1.3 +14 -16
incubator-ftpserver/api/src/java/org/apache/ftpserver/User.java
Index: User.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/User.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- User.java 22 Aug 2004 15:44:46 -0000 1.2
+++ User.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -23,72 +23,70 @@
/**
* @author Vladimirov
- * <p/>
- * TODO To change the template for this generated type comment go to
Window -
- * Preferences - Java - Code Style - Code Templates
*/
public interface User {
- public static final String ANONYMOUS = "anonymous";
+
+ String ANONYMOUS = "anonymous";
/**
* Get the user data type.
*/
- public abstract char getType();
+ char getType();
/**
* Set the data type. Supported types are A (ascii) and I (binary).
*
* @return true if success
*/
- public abstract boolean setType(char type);
+ boolean setType(char type);
/**
* Get the file structure.
*/
- public abstract char getStructure();
+ char getStructure();
/**
* Set the file structure. Supported structure type is F (file).
*
* @return true if success
*/
- public abstract boolean setStructure(char stru);
+ boolean setStructure(char stru);
/**
* Get the transfer mode.
*/
- public abstract char getMode();
+ char getMode();
/**
* Set the transfer type. Supported transfer type is S (stream).
*
* @return true if success
*/
- public abstract boolean setMode(char md);
+ boolean setMode(char md);
/**
* Get output stream. Returns
<code>ftpserver.util.AsciiOutputStream</code>
* if the transfer type is ASCII.
*/
- public abstract OutputStream getOutputStream(OutputStream os);
+ OutputStream getOutputStream(OutputStream os);
/**
* Is an anonymous user?
*/
- public abstract boolean getIsAnonymous();
+ boolean getIsAnonymous();
/**
* Get the user name.
*/
- public String getName();
+ String getName();
/**
* Get the user password.
*/
- public String getPassword();
+ String getPassword();
/**
* Get client address
*/
- public InetAddress getClientAddress();
+ InetAddress getClientAddress();
}
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/UserManagerException.java
Index: UserManagerException.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/UserManagerException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UserManagerException.java 22 Aug 2004 15:44:46 -0000 1.2
+++ UserManagerException.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
/**
1.3 +20 -1
incubator-ftpserver/api/src/java/org/apache/ftpserver/UserManagerMonitor.java
Index: UserManagerMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/UserManagerMonitor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UserManagerMonitor.java 22 Aug 2004 15:44:46 -0000 1.2
+++ UserManagerMonitor.java 22 Aug 2004 17:49:22 -0000 1.3
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
/**
1.2 +19 -0
incubator-ftpserver/api/src/java/org/apache/ftpserver/WriterMonitor.java
Index: WriterMonitor.java
===================================================================
RCS file:
/home/cvs/incubator-ftpserver/api/src/java/org/apache/ftpserver/WriterMonitor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WriterMonitor.java 22 Aug 2004 12:10:49 -0000 1.1
+++ WriterMonitor.java 22 Aug 2004 17:49:22 -0000 1.2
@@ -1,3 +1,22 @@
+/* ====================================================================
+ * Copyright 2002 - 2004
+ *
+ * Licensed 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.
+ *
+ *
+ * $Id$
+ */
+
package org.apache.ftpserver;
import java.io.IOException;
1.1
incubator-ftpserver/api/src/java/org/apache/ftpserver/FtpServer.java
Index: FtpServer.java
===================================================================
/* ====================================================================
* Copyright 2002 - 2004
*
* Licensed 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.
*
*
* $Id: FtpServer.java,v 1.1 2004/08/22 17:49:22 hammant Exp $
*/
package org.apache.ftpserver;
/**
* Ftp server interface.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rana Bhattacharyya</a>
*/
public
interface FtpServer {
/**
* Service role name. It will be used for RMI binding too.
*/
String ROLE = "org.apache.ftpserver.FtpServer";
/**
* Ftp server name
*/
String DISPLAY_NAME = "Ftp";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]