[jboss-cvs] JBossAS SVN: r80837 - in trunk/main/src/main/org/jboss: handlers and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 12 00:35:44 EST 2008


Author: anil.saldhana at jboss.com
Date: 2008-11-12 00:35:44 -0500 (Wed, 12 Nov 2008)
New Revision: 80837

Added:
   trunk/main/src/main/org/jboss/handlers/
   trunk/main/src/main/org/jboss/handlers/stub/
   trunk/main/src/main/org/jboss/handlers/stub/vfs/
   trunk/main/src/main/org/jboss/handlers/stub/vfs/Handler.java
   trunk/main/src/main/org/jboss/handlers/stub/vfsfile/
   trunk/main/src/main/org/jboss/handlers/stub/vfsfile/Handler.java
   trunk/main/src/main/org/jboss/handlers/stub/vfsjar/
   trunk/main/src/main/org/jboss/handlers/stub/vfsjar/Handler.java
   trunk/main/src/main/org/jboss/handlers/stub/vfsmemory/
   trunk/main/src/main/org/jboss/handlers/stub/vfsmemory/Handler.java
   trunk/main/src/main/org/jboss/handlers/stub/vfszip/
   trunk/main/src/main/org/jboss/handlers/stub/vfszip/Handler.java
Log:
JBAS-6191: VFS url handler stubs

Added: trunk/main/src/main/org/jboss/handlers/stub/vfs/Handler.java
===================================================================
--- trunk/main/src/main/org/jboss/handlers/stub/vfs/Handler.java	                        (rev 0)
+++ trunk/main/src/main/org/jboss/handlers/stub/vfs/Handler.java	2008-11-12 05:35:44 UTC (rev 80837)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.handlers.stub.vfs;
+
+import java.net.URLStreamHandler;
+import java.net.URLConnection;
+import java.net.URL;
+import java.io.IOException;
+
+/**
+ *  VFS Handler Stub
+ *  @author David M Lloyd
+ */
+public final class Handler extends URLStreamHandler 
+{
+
+   protected URLConnection openConnection(final URL u) throws IOException 
+   {
+      return new URLConnection(u) 
+      {
+         public void connect() throws IOException 
+         {
+            throw new UnsupportedOperationException("connect()");
+         }
+      };
+   }
+}
\ No newline at end of file

Added: trunk/main/src/main/org/jboss/handlers/stub/vfsfile/Handler.java
===================================================================
--- trunk/main/src/main/org/jboss/handlers/stub/vfsfile/Handler.java	                        (rev 0)
+++ trunk/main/src/main/org/jboss/handlers/stub/vfsfile/Handler.java	2008-11-12 05:35:44 UTC (rev 80837)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.handlers.stub.vfsfile;
+
+import java.net.URLStreamHandler;
+import java.net.URLConnection;
+import java.net.URL;
+import java.io.IOException;
+
+/**
+ *  VFS Handler Stub
+ *  @author David M Lloyd
+ */
+public final class Handler extends URLStreamHandler 
+{
+   protected URLConnection openConnection(final URL u) throws IOException 
+   {
+      return new URLConnection(u) 
+      {
+         public void connect() throws IOException 
+         {
+            throw new UnsupportedOperationException("connect()");
+         }
+      };
+   }
+}
\ No newline at end of file

Added: trunk/main/src/main/org/jboss/handlers/stub/vfsjar/Handler.java
===================================================================
--- trunk/main/src/main/org/jboss/handlers/stub/vfsjar/Handler.java	                        (rev 0)
+++ trunk/main/src/main/org/jboss/handlers/stub/vfsjar/Handler.java	2008-11-12 05:35:44 UTC (rev 80837)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.handlers.stub.vfsjar;
+
+import java.net.URLStreamHandler;
+import java.net.URLConnection;
+import java.net.URL;
+import java.io.IOException;
+
+/**
+ *  VFS Handler Stub
+ *  @author David M Lloyd
+ */
+public final class Handler extends URLStreamHandler 
+{ 
+   protected URLConnection openConnection(final URL u) throws IOException 
+   {
+      return new URLConnection(u) 
+      {
+         public void connect() throws IOException 
+         {
+            throw new UnsupportedOperationException("connect()");
+         }
+      };
+   }
+}
\ No newline at end of file

Added: trunk/main/src/main/org/jboss/handlers/stub/vfsmemory/Handler.java
===================================================================
--- trunk/main/src/main/org/jboss/handlers/stub/vfsmemory/Handler.java	                        (rev 0)
+++ trunk/main/src/main/org/jboss/handlers/stub/vfsmemory/Handler.java	2008-11-12 05:35:44 UTC (rev 80837)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.handlers.stub.vfsmemory;
+
+import java.net.URLStreamHandler;
+import java.net.URLConnection;
+import java.net.URL;
+import java.io.IOException;
+
+/**
+ *  VFS Handler Stub
+ *  @author David M Lloyd
+ */
+public final class Handler extends URLStreamHandler 
+{
+   protected URLConnection openConnection(final URL u) throws IOException 
+   {
+      return new URLConnection(u) 
+      {
+         public void connect() throws IOException 
+         {
+            throw new UnsupportedOperationException("connect()");
+         }
+      };
+   }
+}
\ No newline at end of file

Added: trunk/main/src/main/org/jboss/handlers/stub/vfszip/Handler.java
===================================================================
--- trunk/main/src/main/org/jboss/handlers/stub/vfszip/Handler.java	                        (rev 0)
+++ trunk/main/src/main/org/jboss/handlers/stub/vfszip/Handler.java	2008-11-12 05:35:44 UTC (rev 80837)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.handlers.stub.vfszip;
+
+import java.net.URLStreamHandler;
+import java.net.URLConnection;
+import java.net.URL;
+import java.io.IOException;
+
+/**
+ *  VFS Handler Stub
+ *  @author David M Lloyd
+ */
+public final class Handler extends URLStreamHandler 
+{
+   protected URLConnection openConnection(final URL u) throws IOException 
+   {
+      return new URLConnection(u) 
+      {
+         public void connect() throws IOException 
+         {
+            throw new UnsupportedOperationException("connect()");
+         }
+      };
+   }
+}
\ No newline at end of file




More information about the jboss-cvs-commits mailing list