<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://aike.me/site" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>aikesommer.name - hello again?!?!</title>
 <link>http://aike.me/site</link>
 <description></description>
 <language>en</language>
<item>
 <title>Awesome and legendary online pokertimer</title>
 <link>http://aike.me/site/blog/20100322/awesome_and_legendary_online_pokertimer</link>
 <description>&lt;p&gt;Every now and then we get together and play some Texas Holdem. Having one of those nights coming up and a slow sunday afternoon i decided to code a little blinds-timer to ease keeping track of time and blinds.&lt;/p&gt;
&lt;h3&gt;Features of my pokertimer&lt;/h3&gt;
&lt;p&gt;There is not much to list here, it lets you enter blind-levels and a duration. It will then count down and ring and flash when the time expired. The interface contains only the necessary information and is optimized for fullscreen use. In most web-browsers you can hit F11 to get a real fullscreen window.&lt;/p&gt;
&lt;p&gt;To distract as little as possible you can use the space-bar to start and stop the timer, which should save you at least 3 minutes of mouse moving and clicking on the night!&lt;/p&gt;
&lt;h3&gt;Requirements for my pokertimer&lt;/h3&gt;
&lt;p&gt;Well, none basically. It works in any recent web-browser, i tested in Firefox and Chrome. So, just make sure you&#039;re not still using IE6 and have an online connection for the night.&lt;/p&gt;
&lt;h3&gt;Where to get my pokertimer?&lt;/h3&gt;
&lt;p&gt;Just head over to &lt;a href=&quot;http://aike.me/pokertimer&quot;&gt;aike.me/pokertimer&lt;/a&gt;. It&#039;s completely free and ad-free. And beware, the numbers will be big!&lt;/p&gt;
&lt;h3&gt;Another heading including &quot;my pokertimer&quot;?&lt;/h3&gt;
&lt;p&gt;Yes, absolutely!&lt;/p&gt;
&lt;p&gt;I hope you enjoy it. If you happen to have any questions or feedback, you can find my mail-address on the right.&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20100322/awesome_and_legendary_online_pokertimer#comments</comments>
 <category domain="http://aike.me/site/category/topic/online">Online</category>
 <category domain="http://aike.me/site/category/topic/poker">Poker</category>
 <category domain="http://aike.me/site/category/topic/pokertimer">Pokertimer</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3312</wfw:commentRss>
 <pubDate>Mon, 22 Mar 2010 18:19:24 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3312 at http://aike.me/site</guid>
</item>
<item>
 <title>New releases for AuthenticRoast and ViewNControl</title>
 <link>http://aike.me/site/blog/20100304/new_releases_for_authenticroast_and_viewncontrol</link>
 <description>&lt;p&gt;Today i fixed up 2 releases: &lt;a href=&quot;http://code.google.com/p/authenticroast&quot; target=&quot;_blank&quot;&gt;AuthenticRoast&lt;/a&gt; 0.3.2 and &lt;a href=&quot;http://code.google.com/p/viewncontrol&quot; target=&quot;_blank&quot;&gt;ViewNControl&lt;/a&gt; 0.2.0&lt;/p&gt;
&lt;p&gt;Both of them are feature releases, AuthenticRoast can now manage the authentication of users across contexts, so you can now have one webapp authenticate the user for another webapp running in the same container.&lt;/p&gt;
&lt;p&gt;ViewNControl 0.2.0 adds basic mouse and keyboard input, which makes it actually almost usable! ;-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20100304/new_releases_for_authenticroast_and_viewncontrol#comments</comments>
 <category domain="http://aike.me/site/category/topic/authenticroast">AuthenticRoast</category>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/release">Release</category>
 <category domain="http://aike.me/site/category/topic/software">Software</category>
 <category domain="http://aike.me/site/category/topic/viewncontrol">ViewNControl</category>
 <category domain="http://aike.me/site/category/topic/vnc">VNC</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3311</wfw:commentRss>
 <pubDate>Thu, 04 Mar 2010 15:25:40 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3311 at http://aike.me/site</guid>
</item>
<item>
 <title>New release of AuthenticRoast - Moved to Google code</title>
 <link>http://aike.me/site/blog/20100203/new_release_of_authenticroast_-_moved_to_google_code</link>
 <description>&lt;p&gt;Over the last few months a few features and bug-fixes have piled up for AuthenticRoast, so i decided it&#039;s finally time for a new release.&lt;/p&gt;
&lt;p&gt;The project has also been moved to Google code, and can be found &lt;a href=&quot;http://code.google.com/p/authenticroast/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Other than some API-cleanup and bug-fixing the 2 most important changes are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You can now register your authenticator module using a context-param.&lt;/li&gt;
&lt;li&gt;The same authenticator instance will be used throughout the web-app lifecycle, so make sure it&#039;s thread-safe!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let me know if you are having any problems with this release.&lt;br /&gt;
:-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20100203/new_release_of_authenticroast_-_moved_to_google_code#comments</comments>
 <category domain="http://aike.me/site/category/topic/authenticroast">AuthenticRoast</category>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/release">Release</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3310</wfw:commentRss>
 <pubDate>Wed, 03 Feb 2010 12:27:10 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3310 at http://aike.me/site</guid>
</item>
<item>
 <title>ViewNControl: VNC connections with pure HTML / JavaScript</title>
 <link>http://aike.me/site/blog/20090925/viewncontrol_vnc_connections_with_pure_html_javascript</link>
 <description>&lt;p&gt;A while back i worked on a way to access VNC-sessions without requiring anything but a recent browser. This was just a proof-of-concept for a project that never went live. But it does work pretty good without bigger delays.&lt;/p&gt;
&lt;p&gt;Today i finally went ahead and created a project on Google code for it. If you like check it out: &lt;a href=&quot;http://code.google.com/p/viewncontrol/&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/viewncontrol/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have tested it with x11vnc, no idea how far you can get with other VNC-servers. There is also no input at this time, so the usefulness is agueable. ;-) I have set the connection to be shared in x11vnc, and used a regular VNC-client for input during development.&lt;/p&gt;
&lt;p&gt;If you like the idea and would like to help me push this in some useful direction, drop me a mail. I have also created a mailing-list at &lt;a href=&quot;http://groups.google.com/group/viewncontrol-devel&quot; rel=&quot;nofolow&quot;&gt;http://groups.google.com/group/viewncontrol-devel&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090925/viewncontrol_vnc_connections_with_pure_html_javascript#comments</comments>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/software">Software</category>
 <category domain="http://aike.me/site/category/topic/viewncontrol">ViewNControl</category>
 <category domain="http://aike.me/site/category/topic/vnc">VNC</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3309</wfw:commentRss>
 <pubDate>Fri, 25 Sep 2009 15:39:03 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3309 at http://aike.me/site</guid>
</item>
<item>
 <title>Make that mouse-pointer stay out of invisible areas</title>
 <link>http://aike.me/site/blog/20090924/make_that_mouse-pointer_stay_out_of_invisible_areas</link>
 <description>&lt;p&gt;My last post to the planet is quite some time back and unfortunately i havent found the time i would have liked to work on multihead in KDE! I have tried to chase down and close a bug here and there, but have not done anything noteworthy!&lt;/p&gt;
&lt;p&gt;Today i just wanna tell you about a tiny app i wrote. I have been using this for a few months now and cant live without it! ;-) So i figured others might enjoy it, too.&lt;/p&gt;
&lt;p&gt;I simply called it &quot;NoEnter&quot; and all it does is make your mouse-pointer not go into those invisible areas on the framebuffer not covered by any of your screen. (This makes it totally useless, if you have only 1 screen or both running at the same resolution) I have searched for alternative ways to accomplish that (I figured, there needs to be a config-option for that) but havent found any, so i just hacked this up.&lt;/p&gt;
&lt;p&gt;It not only helps to not &quot;loose&quot; the pointer, but also to not overshoot the panel, if it resides at the bottom of your smaller screen (as i have it).&lt;/p&gt;
&lt;p&gt;The only requirement other than a recent KDE (with -dev/-devel packages) is the XTEST extension. This should be on by default for mostly anybody (AFAIK), but obviously this means: works only on X11, not on other KDE-platforms.&lt;/p&gt;
&lt;p&gt;Now, wanna try it out? Here we go:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;text geshifilter-text&quot; style=&quot;font-family:monospace;&quot;&gt;svn co svn://anonsvn.kde.org/home/kde/trunk/playground/utils/noenter
cd noenter
cmake .
make
sudo make install&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If this ran without errors, you can just type &quot;noenter&quot; to start it. If the regions are miscalculated (never happened to me) you might not be able to use your mouse anymore, so be sure to have no important unsaved documents open, when you try for the first time! ;-)&lt;/p&gt;
&lt;p&gt;Hope it helps somebody!&lt;br /&gt;
Aike :-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090924/make_that_mouse-pointer_stay_out_of_invisible_areas#comments</comments>
 <category domain="http://aike.me/site/category/topic/kde">KDE</category>
 <category domain="http://aike.me/site/category/topic/kephal">Kephal</category>
 <category domain="http://aike.me/site/category/topic/linux">Linux</category>
 <category domain="http://aike.me/site/category/topic/xrandr">XRandR</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3307</wfw:commentRss>
 <pubDate>Thu, 24 Sep 2009 09:42:54 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3307 at http://aike.me/site</guid>
</item>
<item>
 <title>RESTful web-services in Java using JAX-RS - Part 1: Getting up and running</title>
 <link>http://aike.me/site/blog/20090914/restful_web-services_in_java_using_jax-rs_-_part_1_getting_up_and_running</link>
 <description>&lt;p&gt;After having spent some time working with Suns JAX-RS implementation Jersey and integrating RESTful-services in a few products i work on, i thought it might be a good idea to share my experiences.&lt;/p&gt;
&lt;p&gt;So i decided to write a few blog-posts. I am not sure yet how many parts there will be, my current plan are 3. In this first part i want to talk about the &quot;trivial&quot; things. It took me some time to gather all the information i needed, especially the Maven artifacts to include were not obvious to me.&lt;/p&gt;
&lt;h2&gt;Maven: Getting Jersey into your project&lt;/h2&gt;
&lt;p&gt;In this post i will assume, that you are working on a web-project and use Maven as build-tool. I run most of my apps with an embedded Tomcat, but you can just as well deploy the resulting war to any other container. Further i will explain how to use Suns Jersey, so if you have reasons to use a different JAX-RS-implementation, this part will not apply to you. (If you think these reasons might apply to others as well, please let me know, i am always happy to learn about alternatives.)&lt;/p&gt;
&lt;p&gt;Last time i checked, the current versions of Jersey were not available on Mavens central repository. To get them add the following repository to your pom.xml (unless you already have for other dependencies):&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;text geshifilter-text&quot; style=&quot;font-family:monospace;&quot;&gt;    &amp;lt;repositories&amp;gt;
        &amp;lt;repository&amp;gt;
            &amp;lt;id&amp;gt;maven2-repository.dev.java.net&amp;lt;/id&amp;gt;
            &amp;lt;name&amp;gt;Java.net Repository for Maven&amp;lt;/name&amp;gt;
            &amp;lt;url&amp;gt;http://download.java.net/maven/2/&amp;lt;/url&amp;gt;
        &amp;lt;/repository&amp;gt;
    &amp;lt;/repositories&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Now add the following artifacts:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;text geshifilter-text&quot; style=&quot;font-family:monospace;&quot;&gt;    &amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;com.sun.jersey&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;jersey-server&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;1.0.3.1&amp;lt;/version&amp;gt;
        &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
    &amp;lt;/dependency&amp;gt;
    &amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;com.sun.xml.bind&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;jaxb-impl&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;2.1.12&amp;lt;/version&amp;gt;
        &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
    &amp;lt;/dependency&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This should pull in everything else to get a basic web-service up and running.&lt;/p&gt;
&lt;p&gt;If you want to put some classes for your web-service into an external pojo, just add the following artifacts to its pom.xml:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;text geshifilter-text&quot; style=&quot;font-family:monospace;&quot;&gt;    &amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;javax.ws.rs&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;jsr311-api&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
    &amp;lt;/dependency&amp;gt;
    &amp;lt;dependency&amp;gt;
        &amp;lt;groupId&amp;gt;javax.xml.bind&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;jaxb-api&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;2.1&amp;lt;/version&amp;gt;
        &amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;
    &amp;lt;/dependency&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h2&gt;Integration work: How to get Jersey running&lt;/h2&gt;
&lt;p&gt;First we need to map some requests to Jersey, this works by registering a servlet in your web.xml. Just add this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;text geshifilter-text&quot; style=&quot;font-family:monospace;&quot;&gt;    &amp;lt;servlet&amp;gt;
        &amp;lt;servlet-name&amp;gt;Jersey Servlet&amp;lt;/servlet-name&amp;gt;
        &amp;lt;servlet-class&amp;gt;com.sun.jersey.spi.container.servlet.ServletContainer&amp;lt;/servlet-class&amp;gt;
        &amp;lt;init-param&amp;gt;
            &amp;lt;param-name&amp;gt;com.sun.jersey.config.property.packages&amp;lt;/param-name&amp;gt;
            &amp;lt;param-value&amp;gt;my.package.api&amp;lt;/param-value&amp;gt;
        &amp;lt;/init-param&amp;gt;
    &amp;lt;/servlet&amp;gt;
    &amp;lt;servlet-mapping&amp;gt;
        &amp;lt;servlet-name&amp;gt;Jersey Servlet&amp;lt;/servlet-name&amp;gt;
        &amp;lt;url-pattern&amp;gt;/api/*&amp;lt;/url-pattern&amp;gt;
    &amp;lt;/servlet-mapping&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Replace my.package.api with the real package you intend to use for your resource-classes.&lt;br /&gt;
We&#039;re mostly done with the implementation specific parts. The next steps involve only JAX-RS things, which lets you take your webservice-classes to any JAX-RS-implementation you like.&lt;/p&gt;
&lt;h2&gt;Hello World: Your first REST resource&lt;/h2&gt;
&lt;p&gt;Just really quick: in RESTful web-services everything is modeled as a resource, so basically you create operations for CRUD (create, read, update, delete). For different operations, different HTTP-methods are used, mainly GET, POST and DELETE. You might also use PUT sometimes. Important: it should never matter wether the same GET-request is sent multiple times.&lt;br /&gt;
Lets create a first, really basic resource-class:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;    @Path&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;/notes&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    @Produces&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;application/xml&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; NotesHandler &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        @GET
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Hello World, I still need some work to be useful!&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;After deploying this to the container of your choice, you can open /api/notes in your web-browser. This should produce an xml-syntax-error, since only &quot;Hello World, I still need some work to be useful!&quot; is returned, which is obviously not valid xml.&lt;br /&gt;
So lets move on to create a class to wrap our result. We&#039;ll use JAXB-annotations to have this easily marshalled to xml:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;    @XmlRootElement&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;name&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;notes&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; NotesList &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; result&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; NotesList&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; NotesList&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; result&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;result&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; result&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; getResult&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; result&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;void&lt;/span&gt; setResult&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; result&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;result&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; result&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Now, also modify your handler-class like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;        @GET
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; NotesList list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotesList&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Hello World, I still need some work to be useful!&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;We now get valid xml, but this is still really useless. Lets add some logic to it:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;    @Path&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;/notes&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    @Produces&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;application/xml&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; NotesHandler &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #008000; font-style: italic; font-weight: bold;&quot;&gt;/**
         * This is really, really wrong. Just so that we can do some playing around
         * without having to setup a database.
         */&lt;/span&gt;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; SortedMap&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Long, Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt; notes &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; TreeMap&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Long, Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Hello World, I still need some work to be useful!&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        @GET
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; NotesList list&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            NotesList result &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; NotesList&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            result.&lt;span style=&quot;color: #006633;&quot;&gt;getNotes&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;addAll&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;notes.&lt;span style=&quot;color: #006633;&quot;&gt;values&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; result&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; Note add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            Note note &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;notes.&lt;span style=&quot;color: #006633;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;?&lt;/span&gt; 1 &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; notes.&lt;span style=&quot;color: #006633;&quot;&gt;lastKey&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;, text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            notes.&lt;span style=&quot;color: #006633;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;note.&lt;span style=&quot;color: #006633;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;, note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; note&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    @XmlRootElement&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;name&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;notes&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; NotesList &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        @XmlElement&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;name&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;note&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; List&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt; notes &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; ArrayList&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; NotesList&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        @XmlTransient
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; List&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt; getNotes&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; notes&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;void&lt;/span&gt; setNotes&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;List&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;Note&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt; notes&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;notes&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; notes&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    @XmlRootElement&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;name&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;note&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
    @XmlType
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Note &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Along+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Long&lt;/span&gt;&lt;/a&gt; id&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; text&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; Note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; Note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Along+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Long&lt;/span&gt;&lt;/a&gt; id, &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; text&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Along+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Long&lt;/span&gt;&lt;/a&gt; getId&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; id&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;void&lt;/span&gt; setId&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Along+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Long&lt;/span&gt;&lt;/a&gt; id&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;id&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; id&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; getText&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; text&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;void&lt;/span&gt; setText&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; text&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h2&gt;Enough with that GET, lets go POST something&lt;/h2&gt;
&lt;p&gt;Wouldnt it be great, if we could actually create notes, too? In RESTful web-services this is done with POST instead of GET, so we&#039;ll change the add method to handle POSTs:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;java geshifilter-java&quot; style=&quot;font-family:monospace;&quot;&gt;        @POST
        @Path&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;/new&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
        @Consumes&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;text/plain&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; Note add&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt; text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;
            Note note &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;notes.&lt;span style=&quot;color: #006633;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;?&lt;/span&gt; 1 &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; notes.&lt;span style=&quot;color: #006633;&quot;&gt;lastKey&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;, text&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            notes.&lt;span style=&quot;color: #006633;&quot;&gt;put&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;note.&lt;span style=&quot;color: #006633;&quot;&gt;getId&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;, note&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
            &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; note&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
        &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Also, remember to remove the static-block, that we added for testing.&lt;br /&gt;
You can now send a POST-request to /api/notes/new with the note as body to add a new note. I use the Firefox-extension Poster for this.&lt;/p&gt;
&lt;p&gt;Okay... I think i&#039;ll just end this right here! I was going to write a little more, but this is getting really long as it is right now, so i&#039;ll just move the next steps to the next part!&lt;/p&gt;
&lt;p&gt;I hope this is helpful for somebody to get started with JAX-RS.&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090914/restful_web-services_in_java_using_jax-rs_-_part_1_getting_up_and_running#comments</comments>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/jax-rs">JAX-RS</category>
 <category domain="http://aike.me/site/category/topic/jersey">Jersey</category>
 <category domain="http://aike.me/site/category/topic/maven">Maven</category>
 <category domain="http://aike.me/site/category/topic/rest">REST</category>
 <category domain="http://aike.me/site/category/topic/tomcat">Tomcat</category>
 <category domain="http://aike.me/site/category/topic/tutorial">Tutorial</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3306</wfw:commentRss>
 <pubDate>Mon, 14 Sep 2009 12:22:41 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3306 at http://aike.me/site</guid>
</item>
<item>
 <title>SumtnSumtn goes public :-)</title>
 <link>http://aike.me/site/blog/20090712/sumtnsumtn_goes_public_-</link>
 <description>&lt;p&gt;We finally managed to get the last obstacles out of the way and go online!! Please check out our service at: &lt;a href=&quot;http://sumtnsumtn.com/&quot; title=&quot;http://sumtnsumtn.com/&quot;&gt;http://sumtnsumtn.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There&#039;s not much else i have to say right now, have spent a little too much time in front of this screen for last weeks anyways!! ;-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090712/sumtnsumtn_goes_public_-#comments</comments>
 <category domain="http://aike.me/site/category/topic/sumtnsumtn">SumtnSumtn</category>
 <category domain="http://aike.me/site/category/topic/twitter">Twitter</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3305</wfw:commentRss>
 <pubDate>Sun, 12 Jul 2009 10:01:11 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3305 at http://aike.me/site</guid>
</item>
<item>
 <title>Problems with f:param inside h:outputLink</title>
 <link>http://aike.me/site/blog/20090605/problems_with_fparam_inside_houtputlink</link>
 <description>&lt;p&gt;There seems to be some weird issues with f:param inside h:outputLink. The first issue is &quot;&amp;amp;&quot; in param-values not being properly escaped, leading to completely wrong values on the receiver side.&lt;br /&gt;
The second seems a little more complex. If the value contains &quot;--&quot; (2 dashes) only the text of the link will be written to the page (no a-tag whatsoever).&lt;/p&gt;
&lt;p&gt;This is on Suns JSF RI. If anybody knows anything about these issues i&#039;d appreciate to hear about it!&lt;/p&gt;
&lt;p&gt;:-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090605/problems_with_fparam_inside_houtputlink#comments</comments>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/jsf">JSF</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3304</wfw:commentRss>
 <pubDate>Fri, 05 Jun 2009 16:59:22 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3304 at http://aike.me/site</guid>
</item>
<item>
 <title>Tomcat and UTF-8</title>
 <link>http://aike.me/site/blog/20090501/tomcat_and_utf-8</link>
 <description>&lt;p&gt;There&#039;s quite a few threads and pages about utf and tomcat out there, some mentioning URIEncoding in the cofig, others talking about an encoding-filter... None of which worked for me, entering special characters (in this case: umlaute) into a textarea gave me cryptic characters in my jsf-bean!&lt;/p&gt;
&lt;p&gt;As it turns out, when the encoding-filter was invoked, it was already too late to change the request-encoding, the request object was already accessed in my very own authenticator-valve, making every later change useless!&lt;/p&gt;
&lt;p&gt;After figuring this out, it was no problem to fix that, obviously! And the next AuthenticRoast release will also feature this... :-)&lt;/p&gt;
&lt;p&gt;What i dont get is: Why is this not the default-behaviour with tomcat? Everything in java is (close to) unicode, hwy not there, too? Or at least provide a config-optin, that will work for POSTed data and not just GETs (as URIEncoding does)...&lt;/p&gt;
&lt;p&gt;So much for now!!&lt;br /&gt;
:-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090501/tomcat_and_utf-8#comments</comments>
 <category domain="http://aike.me/site/category/topic/authenticroast">AuthenticRoast</category>
 <category domain="http://aike.me/site/category/topic/java">Java</category>
 <category domain="http://aike.me/site/category/topic/tomcat">Tomcat</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3303</wfw:commentRss>
 <pubDate>Fri, 01 May 2009 17:42:25 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3303 at http://aike.me/site</guid>
</item>
<item>
 <title>Multihead in KDE 4.2.2</title>
 <link>http://aike.me/site/blog/20090407/multihead_in_kde_422</link>
 <description>&lt;h2&gt;Hello Planet!!&lt;/h2&gt;
&lt;p&gt;If everything goes well, this should be my first post, that appears on planet kde! :-) I&#039;ve started hacking on kde for last years edition of gsoc and have since tried to get multihead better supported.&lt;br /&gt;
In this post i wanna talk about what works and what&#039;s still missing, hope you enjoy!! ;-)&lt;/p&gt;
&lt;h2&gt;What do i mean when i say multihead??&lt;/h2&gt;
&lt;p&gt;To prevent confusion: i mean xrandr/xinerama/mergedfb-style setups, not separate x-displays on different monitors! I dont think there is anybody actively working on the latter in kde 4...&lt;br /&gt;
Also, i&#039;m mostly talking about adding/removing/changing screens on the fly, since &quot;static&quot; setups shouldnt cause any trouble for a while now!&lt;/p&gt;
&lt;h2&gt;What (should) work in KDE 4.2.2&lt;/h2&gt;
&lt;p&gt;(compared to earlier versions)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;compositing continues to work after adding a monitor&lt;/li&gt;
&lt;li&gt;plasma-panels which were added to monitors which were later disconnected, come back with the same size/applets/position when the monitor is plugged back in&lt;/li&gt;
&lt;li&gt;maximizing windows after adding/removing a monitor results in the correct size, ie they dont go behind the panel and dont just maximize to half a screen only&lt;/li&gt;
&lt;li&gt;probably some other things ;-)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What doesnt work&lt;/h2&gt;
&lt;p&gt;There&#039;s still lots of room for improvement, but nothing crucial, afaict. There is still no ui to configure kephal-configurations, but you can change your setup using xrandr or krandrtray.&lt;br /&gt;
Added or removed monitors can not be auto-detected, but there is nothing we can do about, it&#039;s more of a driver-problem!&lt;br /&gt;
If there&#039;s anything, that causes a real problem, please point me to the bug-report... And just maybe it might be able to resolve it!! ;-)&lt;/p&gt;
&lt;p&gt;So much for now, have a nice sunny tuesday (at least it is here)!!&lt;br /&gt;
:-)&lt;/p&gt;
</description>
 <comments>http://aike.me/site/blog/20090407/multihead_in_kde_422#comments</comments>
 <category domain="http://aike.me/site/category/topic/kde">KDE</category>
 <category domain="http://aike.me/site/category/topic/kephal">Kephal</category>
 <category domain="http://aike.me/site/category/topic/linux">Linux</category>
 <wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://aike.me/site/crss/node/3270</wfw:commentRss>
 <pubDate>Tue, 07 Apr 2009 10:35:24 +0000</pubDate>
 <dc:creator>aike</dc:creator>
 <guid isPermaLink="false">3270 at http://aike.me/site</guid>
</item>
</channel>
</rss>
