cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r518815 - in /incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring: HelloWorld.java HelloWorldImpl.java client/Client.java servlet/Server.java
Date Fri, 16 Mar 2007 00:36:19 GMT
Author: dandiep
Date: Thu Mar 15 17:36:18 2007
New Revision: 518815

URL: http://svn.apache.org/viewvc?view=rev&rev=518815
Log:
Attempt to fix formatting of samples. (Where is checkstyle being run from that CC notifies
me of sample formatting errors?)

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorld.java
    incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorldImpl.java
    incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/client/Client.java
    incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/servlet/Server.java

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorld.java?view=diff&rev=518815&r1=518814&r2=518815
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorld.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorld.java
Thu Mar 15 17:36:18 2007
@@ -1,20 +1,18 @@
 /**
- * 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
- *
+ * 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.
+ * 
+ * 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.
  */
 // START SNIPPET: service
 package demo.spring;
@@ -25,4 +23,4 @@
 public interface HelloWorld {
 	String sayHi(String text);
 }
-// END SNIPPET: service
\ No newline at end of file
+// END SNIPPET: service

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorldImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorldImpl.java?view=diff&rev=518815&r1=518814&r2=518815
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorldImpl.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/HelloWorldImpl.java
Thu Mar 15 17:36:18 2007
@@ -1,27 +1,25 @@
 /**
- * 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
- *
+ * 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.
+ * 
+ * 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.
  */
 // START SNIPPET: service
 package demo.spring;
 
 import javax.jws.WebService;
 
-@WebService(endpointInterface="demo.spring.HelloWorld")
+@WebService(endpointInterface = "demo.spring.HelloWorld")
 public class HelloWorldImpl implements HelloWorld {
 
 	public String sayHi(String text) {

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/client/Client.java?view=diff&rev=518815&r1=518814&r2=518815
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/client/Client.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/client/Client.java
Thu Mar 15 17:36:18 2007
@@ -25,19 +25,19 @@
 
 public final class Client {
 
-    private Client() {
-    } 
+	private Client() {
+	}
 
-    public static void main(String args[]) throws Exception {
-    	// START SNIPPET: client
-        ClassPathXmlApplicationContext context = 
-        	new ClassPathXmlApplicationContext(new String[] {"demo/spring/client/client-beans.xml"});
-        
-        HelloWorld client = (HelloWorld) context.getBean("client");
-        
-        String response = client.sayHi("Joe");
-        System.out.println("Response: " + response);
-        System.exit(0);
-        // END SNIPPET: client
-    }
+	public static void main(String args[]) throws Exception {
+		// START SNIPPET: client
+		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
+				new String[] { "demo/spring/client/client-beans.xml" });
+
+		HelloWorld client = (HelloWorld) context.getBean("client");
+
+		String response = client.sayHi("Joe");
+		System.out.println("Response: " + response);
+		System.exit(0);
+		// END SNIPPET: client
+	}
 }

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/servlet/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/servlet/Server.java?view=diff&rev=518815&r1=518814&r2=518815
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/servlet/Server.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/spring_http/src/main/java/demo/spring/servlet/Server.java
Thu Mar 15 17:36:18 2007
@@ -28,39 +28,39 @@
 
 public class Server {
 
-    protected Server() throws Exception {
-        System.out.println("Starting Server");
+	protected Server() throws Exception {
+		System.out.println("Starting Server");
+
+		/**
+		 * Important: This code simply starts up a servlet container and adds
+		 * the web application in src/webapp to it. Normally you would be using
+		 * Jetty or Tomcat and have the webapp packaged as a WAR. This is simply
+		 * as a convenience so you do not need to configure your servlet
+		 * container to see CXF in action!
+		 */
+		org.mortbay.jetty.Server server = new org.mortbay.jetty.Server();
+
+		SelectChannelConnector connector = new SelectChannelConnector();
+		connector.setPort(9002);
+		server.setConnectors(new Connector[] { connector });
+
+		WebAppContext webappcontext = new WebAppContext();
+		webappcontext.setContextPath("/");
+
+		webappcontext.setWar("src/webapp");
+
+		HandlerCollection handlers = new HandlerCollection();
+		handlers.setHandlers(new Handler[] { webappcontext,
+				new DefaultHandler() });
+
+		server.setHandler(handlers);
+		server.start();
+		server.join();
+	}
+
+	public static void main(String args[]) throws Exception {
+		new Server();
+		System.out.println("Server ready...");
+	}
 
-        /**
-         * Important: This code simply starts up a servlet container
-         * and adds the web application in src/webapp to it. Normally
-         * you would be using Jetty or Tomcat and have the webapp
-         * packaged as a WAR. This is simply as a convenience so
-         * you do not need to configure your servlet container to see
-         * CXF in action!   
-         */
-        org.mortbay.jetty.Server server = new org.mortbay.jetty.Server();
-
-        SelectChannelConnector connector = new SelectChannelConnector();
-        connector.setPort(9002);
-        server.setConnectors(new Connector[] {connector});
-
-        WebAppContext webappcontext = new WebAppContext();
-        webappcontext.setContextPath("/");
-
-        webappcontext.setWar("src/webapp");
-
-        HandlerCollection handlers = new HandlerCollection();
-        handlers.setHandlers(new Handler[] {webappcontext, new DefaultHandler()});
-
-        server.setHandler(handlers);
-        server.start();
-        server.join();
-    }
-
-    public static void main(String args[]) throws Exception {
-        new Server();
-        System.out.println("Server ready...");
-    }
-    
 }



Mime
View raw message