geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r580692 - in /geronimo/sandbox/gshell/trunk/gshell-remote: gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/ gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ gshell-remote-serve...
Date Sun, 30 Sep 2007 10:37:27 GMT
Author: jdillon
Date: Sun Sep 30 03:37:24 2007
New Revision: 580692

URL: http://svn.apache.org/viewvc?rev=580692&view=rev
Log:
Add the demux+context handler to the client

Added:
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandler.java
      - copied, changed from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandlerSupport.java
      - copied, changed from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientSessionContext.java
      - copied, changed from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerSessionContext.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/EchoHandler.java
      - copied, changed from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/EchoHandler.java
Modified:
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServer.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
    geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/timeout/DefaultTimeoutManager.java

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshClient.java
Sun Sep 30 03:37:24 2007
@@ -23,7 +23,10 @@
 import java.io.OutputStream;
 import java.net.URI;
 import java.security.PublicKey;
+import java.util.List;
 
+import org.apache.geronimo.gshell.remote.client.handler.ClientMessageHandler;
+import org.apache.geronimo.gshell.remote.client.handler.ClientSessionContext;
 import org.apache.geronimo.gshell.remote.crypto.CryptoContext;
 import org.apache.geronimo.gshell.remote.message.CloseShellMessage;
 import org.apache.geronimo.gshell.remote.message.ConnectMessage;
@@ -37,7 +40,7 @@
 import org.apache.geronimo.gshell.whisper.transport.TransportFactoryLocator;
 import org.apache.mina.common.IoSession;
 import org.apache.mina.handler.demux.DemuxingIoHandler;
-import org.apache.mina.handler.demux.MessageHandler;
+import org.codehaus.plexus.PlexusContainer;
 import org.codehaus.plexus.component.annotations.Component;
 import org.codehaus.plexus.component.annotations.InstantiationStrategy;
 import org.codehaus.plexus.component.annotations.Requirement;
@@ -55,6 +58,9 @@
     private final Logger log = LoggerFactory.getLogger(getClass());
 
     @Requirement
+    private PlexusContainer container;
+
+    @Requirement
     private CryptoContext crypto;
     
     @Requirement
@@ -65,7 +71,7 @@
     public void connect(final URI remote, final URI local) throws Exception {
         TransportFactory factory = locator.locate(remote);
 
-        transport = factory.connect(remote, local, new ClientHandler());
+        transport = factory.connect(remote, local, new Handler());
 
         log.debug("Connected to: {}", remote);
     }
@@ -193,22 +199,53 @@
     }
 
     //
-    // ClientHandler
+    // IO Handler
     //
 
-    private class ClientHandler
+    private class Handler
         extends DemuxingIoHandler
     {
-        public ClientHandler() {
-            addMessageHandler(EchoMessage.class, new EchoHandler());
+        public Handler() throws Exception {
+            // noinspection unchecked
+            List<ClientMessageHandler> handlers = (List<ClientMessageHandler>)container.lookupList(ClientMessageHandler.class);
+
+            // Complain if we don't have any handlers
+            if (handlers.isEmpty()) {
+                throw new Error("No client message handlers were discovered");
+            }
+
+            for (ClientMessageHandler handler : handlers) {
+
+                register(handler);
+            }
         }
-    }
 
-    private class EchoHandler
-        implements MessageHandler<EchoMessage>
-    {
-        public void messageReceived(final IoSession session, final EchoMessage message) throws
Exception {
-            log.debug("ECHO: {}", message.getText());
+        public void register(final org.apache.geronimo.gshell.whisper.message.MessageHandler
handler) {
+            assert handler != null;
+
+            Class<?> type = handler.getType();
+
+            log.debug("Registering handler: {} for type: {}", handler, type);
+
+            // noinspection unchecked
+            addMessageHandler(type, handler);
+        }
+
+        @Override
+        public void sessionOpened(final IoSession session) throws Exception {
+            assert session != null;
+
+            // Install the session context
+            ClientSessionContext context = ClientSessionContext.BINDER.bind(session, new
ClientSessionContext());
+            log.debug("Created session context: {}", context);
+        }
+
+        @Override
+        public void sessionClosed(final IoSession session) throws Exception {
+            assert session != null;
+
+            ClientSessionContext context = ClientSessionContext.BINDER.unbind(session);
+            log.debug("Removed session context: {}", context);
         }
     }
 }

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/RshCommand.java
Sun Sep 30 03:37:24 2007
@@ -29,6 +29,7 @@
 import org.apache.geronimo.gshell.clp.Option;
 import org.apache.geronimo.gshell.command.CommandSupport;
 import org.apache.geronimo.gshell.command.annotation.CommandComponent;
+import org.apache.geronimo.gshell.remote.message.EchoMessage;
 import org.codehaus.plexus.component.annotations.Requirement;
 
 /**
@@ -68,19 +69,14 @@
 
         io.info("Connected");
 
-        // client.echo("HELLO");
-        // Thread.sleep(10 * 1000);
-
-
         //
         // TODO: Allow username and/or password to be read from input, need access to the
console instance to get password reading working
         //
 
         client.login(username, password);
-        
-        // client.echo("NOISE MAKER");
 
-        // client.getTransport().request(new EchoMessage("NO REPLY"));
+        // client.echo("HELLO");
+        // Thread.sleep(1 * 1000);
 
         RemoteShellProxy shell = new RemoteShellProxy(client, io, terminal);
 
@@ -102,6 +98,6 @@
 
         io.verbose("Disconnected");
 
-        return false;
+        return rv;
     }
 }

Copied: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandler.java
(from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandler.java?p2=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandler.java&p1=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java&r1=580689&r2=580692&rev=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandler.java
Sun Sep 30 03:37:24 2007
@@ -1,4 +1,23 @@
-package org.apache.geronimo.gshell.remote.server.handler;
+/*
+ * 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.geronimo.gshell.remote.client.handler;
 
 import org.apache.geronimo.gshell.whisper.message.Message;
 import org.apache.geronimo.gshell.whisper.message.MessageHandler;
@@ -9,8 +28,8 @@
  *
  * @version $Rev$ $Date$
  */
-public interface ServerMessageHandler<T extends Message>
+public interface ClientMessageHandler<T extends Message>
     extends MessageHandler<T>
 {
-    void handle(final IoSession session, final ServerSessionContext context, final T message)
throws Exception;
-}
+    void handle(final IoSession session, final ClientSessionContext context, final T message)
throws Exception;
+}
\ No newline at end of file

Copied: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandlerSupport.java
(from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandlerSupport.java?p2=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandlerSupport.java&p1=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java&r1=580689&r2=580692&rev=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientMessageHandlerSupport.java
Sun Sep 30 03:37:24 2007
@@ -1,4 +1,23 @@
-package org.apache.geronimo.gshell.remote.server.handler;
+/*
+ * 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.geronimo.gshell.remote.client.handler;
 
 import org.apache.geronimo.gshell.whisper.message.Message;
 import org.apache.geronimo.gshell.whisper.message.MessageHandlerSupport;
@@ -9,19 +28,19 @@
  *
  * @version $Rev$ $Date$
  */
-public abstract class ServerMessageHandlerSupport<T extends Message>
+public abstract class ClientMessageHandlerSupport<T extends Message>
     extends MessageHandlerSupport<T>
-    implements ServerMessageHandler<T>
+    implements ClientMessageHandler<T>
 {
-    protected ServerMessageHandlerSupport(final Message.Type type) {
+    protected ClientMessageHandlerSupport(final Message.Type type) {
         super(type);
     }
 
     public void messageReceived(final IoSession session, final T message) throws Exception
{
         log.debug("Processing: {}", message);
 
-        ServerSessionContext context = ServerSessionContext.BINDER.lookup(session);
+        ClientSessionContext context = ClientSessionContext.BINDER.lookup(session);
 
         handle(session, context, message);
     }
-}
+}
\ No newline at end of file

Copied: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientSessionContext.java
(from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerSessionContext.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientSessionContext.java?p2=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientSessionContext.java&p1=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerSessionContext.java&r1=580689&r2=580692&rev=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerSessionContext.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/ClientSessionContext.java
Sun Sep 30 03:37:24 2007
@@ -17,17 +17,8 @@
  * under the License.
  */
 
-package org.apache.geronimo.gshell.remote.server.handler;
+package org.apache.geronimo.gshell.remote.client.handler;
 
-import java.security.PublicKey;
-import java.util.UUID;
-
-import org.apache.geronimo.gshell.common.tostring.ToStringBuilder;
-import org.apache.geronimo.gshell.common.tostring.ToStringStyle;
-import org.apache.geronimo.gshell.remote.RemoteShell;
-import org.apache.geronimo.gshell.remote.server.RemoteIO;
-import org.apache.geronimo.gshell.remote.server.RemoteShellContainer;
-import org.apache.geronimo.gshell.shell.Environment;
 import org.apache.geronimo.gshell.whisper.session.SessionAttributeBinder;
 
 /**
@@ -35,38 +26,7 @@
  *
  * @version $Rev$ $Date$
  */
-public class ServerSessionContext
+public class ClientSessionContext
 {
-    public static final SessionAttributeBinder<ServerSessionContext> BINDER = new SessionAttributeBinder<ServerSessionContext>(ServerSessionContext.class);
-
-    /** The session id. */
-    public final UUID id = UUID.randomUUID();
-
-    /** The remote client's public key. */
-    public PublicKey pk;
-
-    /** The remote client's logged in username. */
-    public String username;
-
-    /** The container which the remote shell is running in. */
-    public RemoteShellContainer container;
-
-    /** The I/O context for the remote shell. */
-    public RemoteIO io;
-
-    /** The environment for the remote shell. */
-    public Environment env;
-
-    /** The remote shell instance. */
-    public RemoteShell shell;
-
-    public int hashCode() {
-        return id.hashCode();
-    }
-
-    public String toString() {
-        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
-                .append("id", id)
-                .toString();
-    }
-}
+    public static final SessionAttributeBinder<ClientSessionContext> BINDER = new SessionAttributeBinder<ClientSessionContext>(ClientSessionContext.class);
+}
\ No newline at end of file

Copied: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/EchoHandler.java
(from r580689, geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/EchoHandler.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/EchoHandler.java?p2=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/EchoHandler.java&p1=geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/EchoHandler.java&r1=580689&r2=580692&rev=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/EchoHandler.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-client/src/main/java/org/apache/geronimo/gshell/remote/client/handler/EchoHandler.java
Sun Sep 30 03:37:24 2007
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.geronimo.gshell.remote.server.handler;
+package org.apache.geronimo.gshell.remote.client.handler;
 
 import org.apache.geronimo.gshell.remote.message.EchoMessage;
 import org.apache.geronimo.gshell.remote.message.RshMessage;
@@ -29,17 +29,15 @@
  *
  * @version $Rev$ $Date$
  */
-@Component(role=ServerMessageHandler.class, hint="echo")
+@Component(role=ClientMessageHandler.class, hint="echo")
 public class EchoHandler
-    extends ServerMessageHandlerSupport<EchoMessage>
+    extends ClientMessageHandlerSupport<EchoMessage>
 {
     public EchoHandler() {
         super(RshMessage.Type.ECHO);
     }
 
-    public void handle(final IoSession session, final ServerSessionContext context, final
EchoMessage message) throws Exception {
-        EchoMessage reply = new EchoMessage(message.getText());
-        reply.setCorrelationId(message.getId());
-        session.write(reply);
+    public void handle(final IoSession session, final ClientSessionContext context, final
EchoMessage message) throws Exception {
+        log.info("\n\nECHO: {}\n\n", message.getText());
     }
-}
+}
\ No newline at end of file

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServer.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServer.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServer.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/RshServer.java
Sun Sep 30 03:37:24 2007
@@ -64,7 +64,7 @@
     public void bind(final URI location) throws Exception {
         TransportFactory factory = locator.locate(location);
 
-        server = factory.bind(location, new ServerHandler());
+        server = factory.bind(location, new Handler());
 
         log.debug("Bound to: {}", location);
     }
@@ -75,10 +75,14 @@
 
     public static final Duration AUTH_TIMEOUT = new Duration(10, TimeUnit.SECONDS);
 
-    private class ServerHandler
+    //
+    // IO Handler
+    //
+
+    private class Handler
         extends DemuxingIoHandler
     {
-        public ServerHandler() throws Exception {
+        public Handler() throws Exception {
             // noinspection unchecked
             List<ServerMessageHandler> handlers = (List<ServerMessageHandler>)container.lookupList(ServerMessageHandler.class);
 
@@ -142,5 +146,4 @@
             log.debug("Removed session context: {}", context.id);
         }
     }
-
 }

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandler.java
Sun Sep 30 03:37:24 2007
@@ -1,3 +1,22 @@
+/*
+ * 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.geronimo.gshell.remote.server.handler;
 
 import org.apache.geronimo.gshell.whisper.message.Message;

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/handler/ServerMessageHandlerSupport.java
Sun Sep 30 03:37:24 2007
@@ -1,3 +1,22 @@
+/*
+ * 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.geronimo.gshell.remote.server.handler;
 
 import org.apache.geronimo.gshell.whisper.message.Message;

Modified: geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/timeout/DefaultTimeoutManager.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/timeout/DefaultTimeoutManager.java?rev=580692&r1=580691&r2=580692&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/timeout/DefaultTimeoutManager.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-remote/gshell-remote-server/src/main/java/org/apache/geronimo/gshell/remote/server/timeout/DefaultTimeoutManager.java
Sun Sep 30 03:37:24 2007
@@ -16,6 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
 package org.apache.geronimo.gshell.remote.server.timeout;
 
 import java.util.concurrent.ScheduledFuture;



Mime
View raw message