<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,23 @@
 package pl.kungfoo.grizzly.osgi.httpservice.gitorial.impl;
 
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
 import org.osgi.service.http.*;
 
 public class RegisterServletComponent {
 
-    public void setHttp(HttpService http) {
-        System.out.println(&quot;Got Http Service: &quot; + http);
+    public void setHttp(HttpService http) throws ServletException, NamespaceException {
+        http.registerServlet(&quot;/hello&quot;, new RegisterServlet(), null, null);
+    }
+}
+
+class RegisterServlet extends HttpServlet {
+
+    public void doGet(HttpServletRequest rq, HttpServletResponse rsp) throws IOException {
+        PrintWriter pw = rsp.getWriter();
+        pw.println(&quot;Hello World&quot;);
+        rsp.setContentType(&quot;text/plain&quot;);
     }
 }
 </diff>
      <filename>src/main/java/pl/kungfoo/grizzly/osgi/httpservice/gitorial/impl/RegisterServletComponent.java</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>73f08b8dbccfc3279f86a51657e6df1a2d3cae93</id>
    </parent>
  </parents>
  <author>
    <name>Hubert Iwaniuk</name>
    <login>neotyk</login>
    <email>neotyk@kungfoo.pl</email>
  </author>
  <url>http://github.com/neotyk/httpservice-gitorial/commit/659497e01a5274f8d6952c3b4a56e7b1076b9abb</url>
  <id>659497e01a5274f8d6952c3b4a56e7b1076b9abb</id>
  <committed-date>2009-03-15T17:37:25-07:00</committed-date>
  <authored-date>2009-03-15T17:37:25-07:00</authored-date>
  <message>Simple servlet registration.
Now if you do &quot;mvn clean install pax:provision&quot; you can go to
http://localhost:8080/hello and get response from just registered
servlet.</message>
  <tree>62db67cd9c133249bbecb03d25ab1f099d389d95</tree>
  <committer>
    <name>Hubert Iwaniuk</name>
    <login>neotyk</login>
    <email>neotyk@kungfoo.pl</email>
  </committer>
</commit>
