myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r224720 - in /myfaces/examples/trunk: sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
Date Mon, 25 Jul 2005 12:32:44 GMT
Author: schof
Date: Mon Jul 25 05:32:39 2005
New Revision: 224720

URL: http://svn.apache.org/viewcvs?rev=224720&view=rev
Log:
Added ASF 2.0 license

Modified:
    myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
    myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java

Modified: myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java?rev=224720&r1=224719&r2=224720&view=diff
==============================================================================
--- myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
(original)
+++ myfaces/examples/trunk/sandbox/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
Mon Jul 25 05:32:39 2005
@@ -1,22 +1,38 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * 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.
+ */
+
 package org.apache.myfaces.examples.servlet;
 
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 
-public class SourceCodeServlet extends HttpServlet 
+public class SourceCodeServlet extends HttpServlet
 {
     public void doGet(HttpServletRequest req, HttpServletResponse res)
         throws IOException, ServletException
     {
         String webPage = req.getServletPath();
-        
+
         // remove the '*.source' suffix that maps to this servlet
         int chopPoint = webPage.indexOf(".source");
-        
+
         webPage = webPage.substring(0, chopPoint - 1);
         webPage += "p"; // replace jsf with jsp
-        
+
         // get the actual file location of the requested resource
         String realPath = getServletConfig().getServletContext().getRealPath(webPage);
 
@@ -28,11 +44,11 @@
 
         // print the file
         InputStream in = null;
-        try 
+        try
         {
             in = new BufferedInputStream(new FileInputStream(realPath));
             int ch;
-            while ((ch = in.read()) !=-1) 
+            while ((ch = in.read()) !=-1)
             {
                 out.print((char)ch);
             }

Modified: myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java?rev=224720&r1=224719&r2=224720&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
(original)
+++ myfaces/examples/trunk/simple/src/java/org/apache/myfaces/examples/servlet/SourceCodeServlet.java
Mon Jul 25 05:32:39 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * 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.
+ */
+ 
 package org.apache.myfaces.examples.servlet;
 
 import javax.servlet.*;



Mime
View raw message