incubator-wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ngalla...@apache.org
Subject svn commit: r787552 [1/5] - in /incubator/wink/contrib/ibm-jaxrs/samples: ./ addressBook/ addressBook/build/ addressBook/build/classes/ addressBook/build/classes/server/ addressBook/build/classes/server/com/ addressBook/build/classes/server/com/ibm/ ad...
Date Tue, 23 Jun 2009 05:33:38 GMT
Author: ngallardo
Date: Tue Jun 23 05:33:31 2009
New Revision: 787552

URL: http://svn.apache.org/viewvc?rev=787552&view=rev
Log: (empty)

Added:
    incubator/wink/contrib/ibm-jaxrs/samples/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.properties
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/server/com/ibm/rest/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/classes/server/com/ibm/rest/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/addressBook.html
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/content.zip   (with props)
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/Address.java
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBookDatabase.java
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressList.java
    incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/ObjectFactory.java
    incubator/wink/contrib/ibm-jaxrs/samples/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/common/
    incubator/wink/contrib/ibm-jaxrs/samples/common/buildCommon.xml
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/DefaultURIInfo.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/Environment.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTAssert.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTTestCase.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/ServletHost.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/monitor/
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/monitor/Monitor.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/monitor/StandaloneMonitor.java
    incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/monitor/WASMonitor.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/classes/server/com/ibm/jaxrs/sample/contentnegotiation/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/ObjectFactory.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/Score.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/ScoreResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/Scoreboard.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/src/com/ibm/jaxrs/sample/contentnegotiation/ScoreboardApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/static/
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/static/content.zip   (with props)
    incubator/wink/contrib/ibm-jaxrs/samples/contentnegotiation/server/static/index.html
    incubator/wink/contrib/ibm-jaxrs/samples/context/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/ws/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/ws/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/ws/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/ws/jaxrs/sample/context/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/classes/server/com/ibm/ws/jaxrs/sample/context/xml/
    incubator/wink/contrib/ibm-jaxrs/samples/context/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/context/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/Modifications.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/ObjectFactory.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/ScoreResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/Scoreboard.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/ScoreboardApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/ScoreboardJAXBContextResolver.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/xml/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/xml/BoxScore.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/xml/Score.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/src/com/ibm/ws/jaxrs/sample/context/xml/Stats.java
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/static/
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/static/content.zip   (with props)
    incubator/wink/contrib/ibm-jaxrs/samples/context/server/static/index.html
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/com/ibm/rest/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/com/ibm/rest/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/classes/server/com/ibm/rest/sample/guestbook/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/src/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/src/deleteme.txt
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/static/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/static/content.zip   (with props)
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/client/static/guestbook.html
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/Comment.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/CommentError.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/CommentList.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/GuestbookApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/GuestbookDatabase.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/GuestbookException.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/GuestbookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/NullPointerExceptionMapper.java
    incubator/wink/contrib/ibm-jaxrs/samples/guestbook/server/src/com/ibm/rest/sample/guestbook/ObjectFactory.java
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/classes/server/com/ibm/jaxrs/sample/helloworld/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/jaxrs/sample/helloworld/
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/jaxrs/sample/helloworld/HelloWorldApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/helloWorld/server/src/com/ibm/jaxrs/sample/helloworld/HelloWorldResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/providers/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/ibm/jaxrs/sample/providers/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/client/com/ibm/jaxrs/sample/providers/client/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/classes/server/com/ibm/jaxrs/sample/providers/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/jaxrs/sample/providers/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/jaxrs/sample/providers/client/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/client/src/com/ibm/jaxrs/sample/providers/client/ProvidersSample.java
    incubator/wink/contrib/ibm-jaxrs/samples/providers/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/providers/
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/providers/IntegerIntProvider.java
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/providers/IntegerResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/providers/IntegerTextProvider.java
    incubator/wink/contrib/ibm-jaxrs/samples/providers/server/src/com/ibm/jaxrs/sample/providers/ProvidersApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build.xml
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/inputstream/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/reader/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/source/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/streamingoutput/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/classes/server/com/ibm/jaxrs/sample/phonebook/string/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/build/work/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/dist/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/WEB-INF/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/WEB-INF/web.xml
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/PhoneBookApplication.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/inputstream/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/inputstream/PhoneBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/inputstream/PhoneBookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/inputstream/PhoneEntry.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/reader/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/reader/PhoneBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/reader/PhoneBookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/reader/PhoneEntry.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/source/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/source/PhoneBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/source/PhoneBookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/source/PhoneEntry.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/streamingoutput/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/streamingoutput/PhoneBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/streamingoutput/PhoneBookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/streamingoutput/PhoneEntry.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/string/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/string/PhoneBook.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/string/PhoneBookResource.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/src/com/ibm/jaxrs/sample/phonebook/string/PhoneEntry.java
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/static/
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/static/content.zip   (with props)
    incubator/wink/contrib/ibm-jaxrs/samples/xml/server/static/index.html

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.properties
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.properties?rev=787552&view=auto
==============================================================================
    (empty)

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.xml
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.xml?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.xml (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/build.xml Tue Jun 23 05:33:31 2009
@@ -0,0 +1,183 @@
+<project name="addressBook" default="all">
+
+	<!--
+  ~ 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.
+  -->
+
+	<dirname file="${ant.file.addressBook}" property="sample.base.dir" />
+	<property name="sample.build.dir" location="${sample.base.dir}/build" />
+	<property name="sample.compile.dir" location="${sample.build.dir}/classes" />
+	<property name="sample.work.dir" location="${sample.build.dir}/work" />
+	<property name="sample.dist.dir" location="${sample.base.dir}/dist" />
+
+	<property name="sample.runtime.dir" location="${sample.base.dir}/runtime" />
+	<available file="${sample.runtime.dir}" type="dir" property="sample.runtime.dir.exists" />
+
+	<property name="sample.server.src.dir" location="${sample.base.dir}/server/src" />
+	<property name="sample.server.build.dir" location="${sample.compile.dir}/server/" />
+
+	<property name="sample.client.dir" location="${sample.base.dir}/client" />
+	<property name="sample.client.static.dir" location="${sample.base.dir}/client/static" />
+
+	<!-- Get the current directory name.  This is needed to label
+	     the sample WAR, JAR, etc.  -->
+	<basename property="archiveName" file="${sample.base.dir}" />
+
+	<!-- Classpath to compile with -->
+	<path id="sample.compile.classpath">
+		<path refid="${samples.compile.classpathref}" />
+		<pathelement path="${classpath}" />
+	</path>
+
+	<target name="init">
+	</target>
+
+	<target name="clean" description="Cleans all built artifacts." depends="init">
+		<delete dir="${sample.build.dir}" includeemptydirs="true" failonerror="false" />
+		<mkdir dir="${sample.build.dir}" />
+		<mkdir dir="${sample.compile.dir}" />
+		<mkdir dir="${sample.work.dir}" />
+
+		<delete dir="${sample.dist.dir}" includeemptydirs="true" failonerror="false" />
+		<mkdir dir="${sample.dist.dir}" />
+	</target>
+
+	<!-- Just does the compile of sample src.  -->
+	<target name="compileServer" depends="init, clean">
+		<echo>-------------------------------------------</echo>
+		<echo>Compiling Server Side Sample - ${archiveName}</echo>
+		<echo>-------------------------------------------</echo>
+
+		<mkdir dir="${sample.server.build.dir}" />
+		<javac srcdir="${sample.server.src.dir}" destdir="${sample.server.build.dir}" debug="on">
+			<classpath refid="${samples.compile.classpathref}" />
+		</javac>
+	</target>
+
+	<target name="compile" description="Compiles all source code.">
+		<antcall target="compileServer">
+		</antcall>
+	</target>
+
+	<target name="distClient">
+		<war destfile="${sample.dist.dir}/${archiveName}_client.war" webxml="${sample.base.dir}/client/WEB-INF/web.xml">
+			<fileset dir="." includes="client/src/**" />
+			<zipfileset src="${sample.client.static.dir}/content.zip" />
+			<zipfileset dir="${sample.client.static.dir}">
+				<exclude name="*.zip" />
+			</zipfileset>
+			<lib refid="${samples.filesetref}" />
+			<lib refid="${samples.runtime.filesetref}" />
+		</war>
+	</target>
+
+	<target name="distServer">
+		<war destfile="${sample.dist.dir}/${archiveName}_server.war" webxml="${sample.base.dir}/server/WEB-INF/web.xml">
+			<fileset dir="." includes="server/src/**" />
+			<classes dir="${sample.server.build.dir}" />
+			<lib refid="${samples.filesetref}" />
+			<lib refid="${samples.runtime.filesetref}" />
+		</war>
+	</target>
+
+	<target name="dist" description="Packages the sample for distribution.">
+		<antcall target="distServer">
+		</antcall>
+		<antcall target="distClient">
+		</antcall>
+	</target>
+
+	<target name="all" depends="clean, compile, dist">
+	</target>
+
+	<!-- Magic -->
+	<condition property="samples.compile.classpathref" value="samples.compile.classpath.packaged" else="samples.compile.classpath.dist.runtime">
+		<isset property="sample.runtime.dir.exists" />
+	</condition>
+
+	<condition property="samples.filesetref" value="samples.classpath.packaged.fileset" else="samples.classpath.dist.fileset">
+		<isset property="sample.runtime.dir.exists" />
+	</condition>
+
+	<condition property="samples.runtime.filesetref" value="samples.runtime.packaged.fileset" else="samples.runtime.dist.fileset">
+		<isset property="sample.runtime.dir.exists" />
+	</condition>
+
+	<path id="samples.compile.classpath.packaged">
+		<!-- If this is a sample by itself, expect the JARs to be in a subdirectory. -->
+		<fileset refid="${samples.filesetref}" />
+		<fileset refid="${samples.runtime.filesetref}" />
+	</path>
+
+	<path id="samples.compile.classpath.dist.runtime">
+		<fileset refid="${samples.filesetref}" />
+		<fileset refid="${samples.runtime.filesetref}" />
+	</path>
+
+	<fileset dir="${sample.base.dir}/lib" id="samples.runtime.packaged.fileset">
+		<include name="ibmjaxrs*.jar" />
+	</fileset>
+
+	<fileset dir="${sample.base.dir}/../../build" id="samples.runtime.dist.fileset">
+		<include name="ibmjaxrs*.jar" />
+	</fileset>
+
+	<fileset dir="${sample.runtime.dir}/lib" id="samples.classpath.packaged.fileset">
+		<include name="asm-all-3.1.jar" />
+		<include name="serp-1.13.1.jar" />
+
+		<include name="commons-logging-1.1.1.jar" />
+
+		<include name="abdera-0.4.0-incubating.jar" />
+		<include name="abdera-core-0.4.0-incubating.jar" />
+		<include name="axiom-api-1.2.5.jar" />
+		<include name="axiom-impl-1.2.5.jar" />
+		<include name="commons-codec-1.3.jar" />
+		<include name="jaxen-1.1.1.jar" />
+
+		<include name="xmlbeans-2.3.0.jar" />
+
+		<include name="jsr311-api-0.11.jar" />
+	</fileset>
+
+	<fileset dir="${sample.base.dir}/../../lib" id="samples.classpath.dist.fileset">
+		<include name="asm-all-3.1.jar" />
+		<include name="serp-1.13.1.jar" />
+
+		<include name="commons-logging-1.1.1.jar" />
+
+		<include name="abdera-0.4.0-incubating.jar" />
+		<include name="abdera-core-0.4.0-incubating.jar" />
+		<include name="axiom-api-1.2.5.jar" />
+		<include name="axiom-impl-1.2.5.jar" />
+		<include name="commons-codec-1.3.jar" />
+		<include name="jaxen-1.1.1.jar" />
+
+		<include name="xmlbeans-2.3.0.jar" />
+
+		<include name="jsr311-api-0.11.jar" />
+	</fileset>
+
+	<target name="packageSampleOnly">
+		<mkdir dir="${sample.runtime.dir}/lib" />
+		<copy todir="${sample.runtime.dir}/lib">
+			<fileset refid="samples.classpath.dist.fileset">
+			</fileset>
+		</copy>
+	</target>
+</project>

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/web.xml?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/web.xml (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/WEB-INF/web.xml Tue Jun 23 05:33:31 2009
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ 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.
+  -->
+
+<!--
+  This program may be used, executed, copied, modified and distributed
+  without royalty for the purpose of developing, using, marketing, or distributing.
+-->
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+</web-app>
\ No newline at end of file

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/addressBook.html
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/addressBook.html?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/addressBook.html (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/addressBook.html Tue Jun 23 05:33:31 2009
@@ -0,0 +1,397 @@
+<html>
+  <head>
+    <title>Dojo: Address Book</title>
+
+    <style type="text/css">
+        @import "dijit/themes/tundra/tundra.css";
+        @import "dojo/resources/dojo.css"
+    </style>
+    <script type="text/javascript" src="dojo/dojo.js"
+      djConfig="parseOnLoad: true">
+    </script>
+
+    
+    <script type="text/javascript">
+       dojo.require("dojo.parser");
+       dojo.require("dijit.form.Form");
+       dojo.require("dijit.form.TextBox");
+       dojo.require("dijit.form.Button")
+       dojo.require("dijit.layout.ContentPane");
+       dojo.require("dijit.layout.TabContainer");
+       
+       function getSelectedElement() {
+       		var tabElements = dijit.byId("addressTabContainer");
+       		var firstLetter;
+       		var ct;
+       	   	for(ct=0; ct < tabElements.getChildren().length; ct++) {
+       	   		var child = tabElements.getChildren()[ct];
+       	   		if(child.selected) {
+       	   			firstLetter = child.id.charAt(0).toLowerCase();
+       	   		}
+       	   	}
+       	   	var selects = dojo.byId(firstLetter + '_addressSelect');
+       	   	var select;
+       	   	for(ct=0; ct < selects.length; ct++) {
+       	   	    var option = selects.options[ct];
+       	   	    if(option.selected) {
+       	   	    	var valFirstLetter = option.value.charAt(0).toLowerCase();
+       	   	    	if(firstLetter = valFirstLetter) {
+       	   	    		return option.value;
+       	   	    	}
+       	   	    }
+       	   	}
+       }
+       
+       function updateEntry() {
+       		dojo.byId('busyImageDivCreate').style.display = 'block';
+       	   	dojo.byId('updateButtonDiv').style.display = 'none';
+       	   	var addressForm = dojo.byId('addressForm');
+       	   	var query = '?entryName=' + addressForm.entryName.value + '&city=' + addressForm.city.value + 
+       	   		'&state=' + addressForm.state.value + '&zipCode=' + addressForm.zipCode.value + 
+       	   		'&streetAddress=' + addressForm.streetAddress.value + '&country=' + addressForm.country.value;
+       	   	dojo.xhrPut({
+                        url: '/rest/addresses' + query,
+                        load: function(response, ioArgs) {
+                        	load();
+                        },
+                        error: function(response, ioArgs) { 
+                        },
+                        form: 'addressForm'
+                  });
+                  
+            dojo.byId('addressForm').entryName.style.display = 'block';
+           	dojo.byId('addressForm').entryName.value = '';
+           	dojo.byId('addressForm').city.value = '';
+           	dojo.byId('addressForm').state.value = '';
+           	dojo.byId('addressForm').zipCode.value = '';
+           	dojo.byId('addressForm').streetAddress.value = '';
+           	dojo.byId('addressForm').country.value = '';
+       }
+       
+       function displayUpdateInfo() {
+       	    var entryName = getSelectedElement();
+       	    dojo.xhrGet( {
+         		// The following URL must match that used to test the server.
+         		url: '/rest/addresses/' + entryName,
+         		handleAs: 'json',
+         		headers: { "Accept": "application/json" },
+         		preventCache: true,
+ 				timeout: 5000, // Time in milliseconds
+         		// The LOAD function will be called on a successful response.
+         		load: function(response, ioArgs) {
+         		   var address = response.address;
+         		   dojo.byId('addressForm').entryName.value = address.entryName.$;
+         		   dojo.byId('addressForm').entryName.style.display = 'none';
+         		   dojo.byId('addressForm').entryNameDisabled.style.display = 'block';
+         		   dojo.byId('addressForm').entryNameDisabled.value = address.entryName.$;
+		           dojo.byId('addressForm').city.value = address.city.$;
+		           dojo.byId('addressForm').state.value = address.state.$;
+		           dojo.byId('addressForm').zipCode.value = address.zipCode.$;
+		           dojo.byId('addressForm').streetAddress.value = address.streetAddress.$;
+		           dojo.byId('addressForm').country.value = address.country.$;
+		           dojo.byId('createButtonDiv').style.display = 'none';
+		           dojo.byId('updateButtonDiv').style.display = 'block';
+		           return response;
+         		},
+         		error : function(response, ioArgs) {
+         		   return response;
+         		}
+         	});
+       }
+       
+       function removeEntry() {
+       	   dojo.byId('busyImageDivDelete').style.display = 'block';
+       	   var entry = getSelectedElement();
+           dojo.xhrDelete({
+                        url: '/rest/addresses/' + entry,
+                        load: function(response, ioArgs) {
+                        	load();
+                        },
+                        error: function(response, ioArgs) { 
+                        },
+                        form: 'addressForm'
+                  });
+       }
+    
+       function create() {
+       	   dojo.byId('busyImageDivCreate').style.display = 'block';
+       	   dojo.byId('createButtonDiv').style.display = 'none';
+       	   dojo.xhrPost({
+                        url: '/rest/addresses',
+                        load: function(response, ioArgs) {
+                        	load();
+                        },
+                        error: function(response, ioArgs) { 
+                        },
+                        form: 'addressForm'
+                  });
+                  
+           dojo.byId('addressForm').entryName.value = '';
+           dojo.byId('addressForm').city.value = '';
+           dojo.byId('addressForm').state.value = '';
+           dojo.byId('addressForm').zipCode.value = '';
+           dojo.byId('addressForm').streetAddress.value = '';
+           dojo.byId('addressForm').country.value = '';
+       }
+       
+
+       function query() {
+           value = dojo.byId('searchForm').interactive.value;
+           if(value != '') {
+               value = '/search/' + value;
+           }
+           else {
+           	   dojo.byId("cargo").innerHTML = '';
+           	   return;
+           }
+    	   dojo.xhrGet( {
+         		// The following URL must match that used to test the server.
+         		url: '/rest/addresses' + value,
+         		handleAs: 'json',
+         		headers: { "Accept": "application/json" },
+         		preventCache: true,
+ 				timeout: 5000, // Time in milliseconds
+         		// The LOAD function will be called on a successful response.
+         		load: function(response, ioArgs) {
+            			if(response == ""
+            				||
+            				response == null) {
+            				dojo.byId("cargo").innerHTML = '';
+            			}
+            			else {
+                			var addresses;
+                			if(response.addressList.addresses.length == null) {
+                    			addresses = new Array();
+                    			addresses[0] = response.addressList.addresses;
+                			}
+                			else {
+                				addresses = response.addressList.addresses;
+                			}
+                			var content;
+                			content = '<table cellpadding=\'10\'><tr><th>Entry Name</th><th>Street Address</th><th>City</th><th>State</th><th>Zip Code</th></tr>';
+                			
+                			for(i=0; i < addresses.length; i++) {
+                    			content += '<tr>';
+                    			address = addresses[i];
+                    			content += '<td>' + address.entryName.$ + '</td><td>' +address.streetAddress.$ + '</td><td>' 
+                    			+ address.city.$ + '</td><td>' + address.state.$ + '</td><td>' + address.zipCode.$ + '</td>';
+                    			content += '</tr>';
+                			}
+                			content += '</table>';
+                			dojo.byId("cargo").innerHTML = content;
+            			}
+           			return response; 
+         		},
+
+         		// The ERROR function will be called in an error case.
+         		error: function(response, ioArgs) {
+           			return response; 
+           		}
+         	});
+       }
+       
+       function addFirstLetter(firstLetter, firstLetters) {
+       		var found = 'false'
+       		for(k=0; k < firstLetters.length; k++) {
+       			if(firstLetters[k] == firstLetter) {
+       				found = 'true';
+       			}
+       		}
+       		if(found == 'false') {
+       			firstLetters.push(firstLetter);
+       		}
+       }
+       
+       function clearAll() {
+       			var tabElements = dijit.byId("addressTabContainer");
+        		var children = tabElements.getChildren();
+      			for(var ct=0; ct < children.length; ct++) {
+                	 dojo.byId(children[ct].id).innerHTML = '';
+                }
+       }
+       
+       function clearUnneededHtml(firstLetters) {
+       			var tabElements = dijit.byId("addressTabContainer");
+        		var children = tabElements.getChildren();
+        		if(children == null
+        			||
+        			children.length == 0) {
+        			clearAll();
+        		}
+        		else {
+        			for(var ct=0; ct < children.length; ct++) {
+      					var firstLetter = children[ct].id.charAt(0);
+      					if(inLetterArray(firstLetter, firstLetters) == 'false') {
+      						dojo.byId(children[ct].id).innerHTML = '';
+      					}
+      				}
+        		}
+       }
+       
+       function inLetterArray(firstLetter, firstLetters) {
+       		for(var i=0; i < firstLetters.length; i++) {
+       				if(firstLetters[i] == firstLetter) {
+       					return 'true';
+       				}
+       		}
+       		return 'false';
+       }
+
+       function load() {
+    	   dojo.xhrGet( {
+          		// The following URL must match that used to test the server.
+          		url: '/rest/addresses',
+          		handleAs: 'json',
+          		headers: { "Accept": "application/json" },
+          		preventCache: true,
+  				timeout: 5000, // Time in milliseconds
+          		// The LOAD function will be called on a successful response.
+          		load: function(response, ioArgs) {
+          				var firstLetters = new Array();
+         				dojo.byId('busyImageDivDelete').style.display = 'none';
+         				dojo.byId('busyImageDivCreate').style.display = 'none';
+         				dojo.byId('addressForm').entryNameDisabled.style.display = 'none';
+         				dojo.byId('addressForm').entryName.style.display = 'block';
+         				dojo.byId('createButtonDiv').style.display = 'block';
+             			if (response != '') {
+                 			var addresses;
+                 			if(response.addressList.addresses == null) {
+                 				clearAll();
+                 				return response;
+                 			}
+                			else if(response.addressList.addresses.length == null) {
+                    			addresses = new Array();
+                    			addresses[0] = response.addressList.addresses;
+                			}
+                			else {
+                				addresses = response.addressList.addresses;
+                			}
+                			var selectArrayContents = new Array();
+                 			index = 0;
+                 			for(i=0; i < addresses.length; i++) {
+                     			address = addresses[i];
+                     			var entryName = address.entryName.$
+                     			if(entryName != null) {
+                     				var firstLetter = entryName.charAt(0).toLowerCase();
+                     				addFirstLetter(firstLetter, firstLetters);
+                     				var oldContent = selectArrayContents[firstLetter];
+                     				if(oldContent == null) {
+                     					oldContent = '';
+                     				}
+                     				var newContent = '<option value="' + address.entryName.$ + '">';
+	                     			newContent += '<div>' + address.entryName.$ + '</div>&nbsp;&nbsp;&nbsp;&nbsp;<div>' + address.streetAddress.$ + '</div>&nbsp;&nbsp;&nbsp;&nbsp;<div>' + address.city.$ + '</div>&nbsp;&nbsp;&nbsp;&nbsp;<div>' + address.state.$ + '</div>&nbsp;&nbsp;&nbsp;&nbsp;<div>' + address.zipCode.$;
+	                     			newContent += '</div></option>';
+	                     			if(oldContent == null
+	                     				||
+	                     				oldContent.indexOf(newContent) == -1) {
+	                     				newContent = oldContent + newContent;
+	                     				selectArrayContents[firstLetter] = newContent;
+	                     			}
+                     			}
+                 			}
+                 			for(j=0; j < firstLetters.length; j++) {
+                 				firstLetter = firstLetters[j];
+                 				var content = selectArrayContents[firstLetter];
+                 				if(content != '') {
+                 					content = '<select id="' + firstLetter + '_addressSelect" name="addresses_' + firstLetter + '" size="' + (addresses.length + 1) + '" style="WIDTH:725px;HEIGHT:150px">' + content + '</select>';
+		                     		dojo.byId(firstLetter + '_entry').innerHTML = content;
+                 				}
+                 			}
+             			}
+             			clearUnneededHtml(firstLetters);
+             			dojo.byId("busyImageDivDelete").innerHtml = '';
+             			dojo.byId("busyImageDivCreate").innerHtml = '';
+            			return response; 
+          		},
+
+          		// The ERROR function will be called in an error case.
+          		error: function(response, ioArgs) {
+          				dojo.byId('busyImageDiv').style.display = 'none';
+          				dojo.byId('createButtonDiv').style.display = 'block';
+            			return response; 
+            		}
+          	});
+       }
+
+       dojo.addOnLoad(function() {
+           interactiveNode = dojo.byId("interactive");
+           createButton = dojo.byId("createButton");
+           updateButton = dojo.byId("updateButton");
+           dojo.connect(interactiveNode, 'onkeyup', query);
+           dojo.connect(createButton, 'onclick', create);
+           dojo.connect(updateButton, 'onclick', updateEntry);
+   		});
+       
+    </script>
+  </head>
+
+  <body class="tundra" onload="load()">
+  <div id="bodyDiv">
+    <div id="addressTabContainer" dojoType="dijit.layout.TabContainer"
+        style="width:750px;height:150px">
+      <div id="a_entry" tabindex="0" dojoType="dijit.layout.ContentPane" title="A"></div>
+      <div id="b_entry" dojoType="dijit.layout.ContentPane" title="B"></div>
+      <div id="c_entry" dojoType="dijit.layout.ContentPane" title="C"></div>
+      <div id="d_entry" dojoType="dijit.layout.ContentPane" title="D"></div>
+      <div id="e_entry" dojoType="dijit.layout.ContentPane" title="E"></div>
+      <div id="f_entry" dojoType="dijit.layout.ContentPane" title="F"></div>
+      <div id="g_entry" dojoType="dijit.layout.ContentPane" title="G"></div>
+      <div id="h_entry" dojoType="dijit.layout.ContentPane" title="H"></div>
+      <div id="i_entry" dojoType="dijit.layout.ContentPane" title="I"></div>
+      <div id="j_entry" dojoType="dijit.layout.ContentPane" title="J"></div>
+      <div id="k_entry" dojoType="dijit.layout.ContentPane" title="K"></div>
+      <div id="l_entry" dojoType="dijit.layout.ContentPane" title="L"></div>
+      <div id="m_entry" dojoType="dijit.layout.ContentPane" title="M"></div>
+      <div id="n_entry" dojoType="dijit.layout.ContentPane" title="N"></div>
+      <div id="o_entry" dojoType="dijit.layout.ContentPane" title="O"></div>
+      <div id="p_entry" dojoType="dijit.layout.ContentPane" title="P"></div>
+      <div id="q_entry" dojoType="dijit.layout.ContentPane" title="Q"></div>
+      <div id="r_entry" dojoType="dijit.layout.ContentPane" title="R"></div>
+      <div id="s_entry" dojoType="dijit.layout.ContentPane" title="S"></div>
+      <div id="t_entry" dojoType="dijit.layout.ContentPane" title="T"></div>
+      <div id="u_entry" dojoType="dijit.layout.ContentPane" title="U"></div>
+      <div id="v_entry" dojoType="dijit.layout.ContentPane" title="V"></div>
+      <div id="w_entry" dojoType="dijit.layout.ContentPane" title="W"></div>
+      <div id="x_entry" dojoType="dijit.layout.ContentPane" title="X"></div>
+      <div id="y_entry" dojoType="dijit.layout.ContentPane" title="Y"></div>
+      <div id="z_entry" dojoType="dijit.layout.ContentPane" title="Z"></div>
+    </div>
+    
+    <div id="deleteDiv"><button dojoType="dijit.form.Button" id="removeButton" onclick="removeEntry()">Delete</button></div>
+    <div id="editDiv"><button dojoType="dijit.form.Button" id="editButton" onclick="displayUpdateInfo()">Edit</button></div>
+    <div id="busyImageDivDelete" style="display:none"><image src="bar_4.gif" /></div>
+    
+    
+   	<div id="cargo" style="font-size: big"></div>
+   	
+    <form dojoType="dijit.form.Form" id="searchForm" name="searchForm">
+  		<div>Search: <input dojoType="dijit.form.TextBox" id="interactive" name="addressid"/></div>
+  	</form>
+  	
+  	<form dojoType="dijit.form.Form" id="addressForm"
+                encType="multipart/form-data" action="" method="">
+  		<table>
+  		<tr><th>New Address</th></tr>
+  		<tr><td>Entry name: </td><td><input dojoType="dijit.form.TextBox" id="entryName" name="entryName"/><input id="entryNameDisabled" name="entryNameDisabled" style="display:none" disabled/></td></tr>
+  		<tr><td>Street Address: </td><td><input dojoType="dijit.form.TextBox" id="streetAddress" name="streetAddress"/></td></tr>
+  		<tr><td>City: </td><td><input dojoType="dijit.form.TextBox" id="city" name="city"/></td></tr>
+  		<tr><td>State: </td><td><input dojoType="dijit.form.TextBox" id="state" name="state"/></td></tr>
+  		<tr><td>Zip code: </td><td><input dojoType="dijit.form.TextBox" id="zipCode" name="zipCode"/></td></tr>
+  		<tr><td>Country: </td><td><input dojoType="dijit.form.TextBox" id="country" name="country"/></td></tr>
+  		<tr><td>
+  			<div id="createButtonDiv">
+  				<button dojoType="dijit.form.Button" id="createButton">Create</button>
+    		</div>
+    		<div id="updateButtonDiv" style="display:none">
+  				<button dojoType="dijit.form.Button" id="updateButton">Update</button>
+    		</div>
+    		<div id="busyImageDivCreate" style="display:none"><image src="bar_4.gif" /></div>
+    	</td></tr>
+  		</table>
+  	</form>
+
+
+  </div>
+  </body>
+  
+</html>
\ No newline at end of file

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/content.zip
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/content.zip?rev=787552&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/client/static/content.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/web.xml?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/web.xml (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/WEB-INF/web.xml Tue Jun 23 05:33:31 2009
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ 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.
+  -->
+
+<!--
+  This program may be used, executed, copied, modified and distributed
+  without royalty for the purpose of developing, using, marketing, or distributing.
+-->
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+		<servlet>
+			<servlet-name>AddressBook</servlet-name>
+			<servlet-class>
+				com.ibm.ws.jaxrs.web.RESTServlet
+			</servlet-class>
+			<init-param>
+				<param-name>javax.ws.rs.Application</param-name>
+				<param-value>com.ibm.rest.sample.AddressApplication</param-value>
+			</init-param>
+			<load-on-startup>1</load-on-startup>
+		</servlet>
+
+		<servlet-mapping>
+			<servlet-name>AddressBook</servlet-name>
+			<url-pattern>/*</url-pattern>
+		</servlet-mapping>
+</web-app>
\ No newline at end of file

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/Address.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/Address.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/Address.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/Address.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,137 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import java.util.List;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.HttpHeaders;
+import javax.ws.rs.core.MediaType;
+import javax.ws.rs.core.Response;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class Address {
+
+    private String entryName;
+
+    private String zipCode;
+
+    private String streetAddress;
+
+    private String city;
+
+    private String state;
+
+    private String country;
+
+    public Address() {
+
+    }
+
+    public Address(String entryName, String zipCode, String streetAddress, String city, String state, String country) {
+        this.entryName = entryName;
+        this.zipCode = zipCode;
+        this.streetAddress = streetAddress;
+        this.city = city;
+        this.state = state;
+        this.country = country;
+    }
+
+    @GET
+    @Consumes(value = { "text/xml", "application/x-www-form-urlencoded" })
+    @Produces(value = { "text/xml" })
+    public Response get(@Context HttpHeaders headers) {
+        List<MediaType> acceptTypes = headers.getAcceptableMediaTypes();
+        Response r = null;
+        if (acceptTypes.contains(MediaType.TEXT_XML)) {
+            r = Response.ok(this).build();
+        }
+        return r;
+    }
+
+    public String getEntryName() {
+        return entryName;
+    }
+
+    public void setEntryName(String entryName) {
+        this.entryName = entryName;
+    }
+
+    public String getZipCode() {
+        return zipCode;
+    }
+
+    public void setZipCode(String zipCode) {
+        this.zipCode = zipCode;
+    }
+
+    public String getStreetAddress() {
+        return streetAddress;
+    }
+
+    public void setStreetAddress(String streetAddress) {
+        this.streetAddress = streetAddress;
+    }
+
+    public String getCity() {
+        return city;
+    }
+
+    public void setCity(String city) {
+        this.city = city;
+    }
+
+    public String getState() {
+        return state;
+    }
+
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getCountry() {
+        return country;
+    }
+
+    public void setCountry(String country) {
+        this.country = country;
+    }
+
+    public String toString() {
+        StringBuffer sb = new StringBuffer();
+        sb.append("Entry Name: " + entryName);
+        sb.append("\n");
+        sb.append("Street Address: " + streetAddress);
+        sb.append("\n");
+        sb.append("City: " + city);
+        sb.append("\n");
+        sb.append("Zip Code: " + zipCode);
+        sb.append("\n");
+        sb.append("State: " + state);
+        sb.append("\n");
+        sb.append("Country: " + country);
+        return sb.toString();
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressApplication.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressApplication.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressApplication.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressApplication.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.ws.rs.core.Application;
+
+public class AddressApplication extends Application {
+
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> set = new HashSet<Class<?>>();
+        set.add(AddressBook.class);
+        return set;
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBook.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBook.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBook.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBook.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,122 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import java.util.Iterator;
+import java.util.List;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.DELETE;
+import javax.ws.rs.FormParam;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+
+@Path(value = "/addresses")
+public class AddressBook {
+
+    public AddressBook() {
+
+    }
+
+    @GET
+    @Path(value = "/search/{searchstring}")
+    @Consumes(value = { "text/xml", "application/x-www-form-urlencoded" })
+    @Produces(value = { "text/xml", "application/json" })
+    public AddressList search(@PathParam(value = "searchstring") String searchString) {
+        AddressList addressList = new AddressList();
+        List<Address> addresses = addressList.getAddresses();
+        Iterator<Address> addressIter = AddressBookDatabase.getAddresses();
+        while (addressIter.hasNext()) {
+            Address address = addressIter.next();
+            if (address.getEntryName().startsWith(searchString)) {
+                addresses.add(address);
+            }
+        }
+        return addressList;
+    }
+
+    @GET
+    @Produces(value = { "text/xml", "application/json" })
+    public AddressList getAddresses() {
+        AddressList addressList = new AddressList();
+        List<Address> addresses = addressList.getAddresses();
+        Iterator<Address> addressIter = AddressBookDatabase.getAddresses();
+        while (addressIter.hasNext()) {
+            Address address = addressIter.next();
+            addresses.add(address);
+        }
+        return addressList;
+    }
+
+    @Path("/{entryName}")
+    public Address getAddress(@PathParam(value = "entryName") String entryName) {
+        Address addr = AddressBookDatabase.getAddress(entryName);
+        return addr;
+    }
+
+    @POST
+    @Consumes(value = "application/x-www-form-urlencoded")
+    public void createAddress(@FormParam(value = "entryName") String entryName, @FormParam(value = "zipCode") String zipCode, @FormParam(value = "streetAddress") String streetAddress, @FormParam(value = "city") String city, @FormParam(value = "state") String state, @FormParam(value = "country") String country) {
+        Address address = new Address(entryName, zipCode, streetAddress, city,
+                state, country);
+        AddressBookDatabase.storeAddress(entryName, address);
+    }
+
+    @POST
+    @Consumes(value = "text/xml")
+    public void addAddress(Address address) {
+        AddressBookDatabase.storeAddress(address.getEntryName(), address);
+    }
+
+    @DELETE
+    @Consumes(value = { "text/xml", "application/x-www-form-urlencoded" })
+    @Path(("/{entryName}"))
+    public void removeAddress(@PathParam(value = "entryName") String entryName) {
+        AddressBookDatabase.removeAddress(entryName);
+    }
+
+    @PUT
+    @Consumes(value = { "text/xml", "application/x-www-form-urlencoded" })
+    public void updateAddress(@QueryParam(value = "entryName") String entryName, @QueryParam(value = "zipCode") String zipCode, @QueryParam(value = "streetAddress") String streetAddress, @QueryParam(value = "city") String city, @QueryParam(value = "state") String state, @QueryParam(value = "country") String country) {
+        Address address = AddressBookDatabase.getAddress(entryName);
+        if (address == null) {
+            address = new Address(entryName, zipCode, streetAddress, city,
+                    state, country);
+            AddressBookDatabase.storeAddress(entryName, address);
+        } else {
+            if (city != null)
+                address.setCity(city);
+            if (country != null)
+                address.setCountry(country);
+            if (state != null)
+                address.setState(state);
+            if (streetAddress != null)
+                address.setStreetAddress(streetAddress);
+            if (zipCode != null)
+                address.setZipCode(zipCode);
+        }
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBookDatabase.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBookDatabase.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBookDatabase.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressBookDatabase.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,57 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+/**
+ * Sample that will mock a database for the AddressBook resource
+ * @author Dustin
+ *
+ */
+public class AddressBookDatabase {
+
+    private static Map<String, Address> addressMap = new HashMap<String, Address>();
+
+    public static Address getAddress(String entryName) {
+        return addressMap.get(entryName);
+    }
+
+    public static void storeAddress(String entryName, Address address) {
+        addressMap.put(entryName, address);
+    }
+
+    public static Iterator<Address> getAddresses() {
+        return addressMap.values().iterator();
+    }
+
+    public static void removeAddress(String entryName) {
+        addressMap.remove(entryName);
+    }
+
+    public static void clearEntries() {
+        if (addressMap != null) {
+            addressMap.clear();
+        }
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressList.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressList.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressList.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/AddressList.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+@XmlRootElement
+public class AddressList {
+
+    @XmlElement
+    private List<Address> addresses = new LinkedList<Address>();
+
+    public List<Address> getAddresses() {
+        return addresses;
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/ObjectFactory.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/ObjectFactory.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/ObjectFactory.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/addressBook/server/src/com/ibm/rest/sample/ObjectFactory.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,35 @@
+/*
+ * 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.
+ */
+
+package com.ibm.rest.sample;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+@XmlRegistry
+public class ObjectFactory {
+
+    public AddressList createAddressList() {
+        return new AddressList();
+    }
+
+    public Address createAddress() {
+        return new Address();
+    }
+
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/build.xml
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/build.xml?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/build.xml (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/build.xml Tue Jun 23 05:33:31 2009
@@ -0,0 +1,29 @@
+<project name="samples" default="buildSamples">
+
+<!--
+  ~ 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.
+  -->
+
+	<dirname file="${ant.file.samples}" property="samples.base.dir" />
+
+	<target name="buildSamples">
+		<subant>
+			<fileset dir="${samples.base.dir}" includes="*/build.xml" excludes="build,common" />
+		</subant>
+	</target>
+</project>
\ No newline at end of file

Added: incubator/wink/contrib/ibm-jaxrs/samples/common/buildCommon.xml
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/common/buildCommon.xml?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/common/buildCommon.xml (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/common/buildCommon.xml Tue Jun 23 05:33:31 2009
@@ -0,0 +1,56 @@
+<!-- This is a template build file that is applied to each
+
+<!--
+  ~ 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.
+  -->
+
+     of the sample directories.  This is run from the main
+     build file and has all of the tasks for compiling and
+     packaging up each of the sample applications.  -->
+<project default="buildAndPackageSample">
+
+	<property file="../../build.properties"/>
+	
+	<property name="src.dir" value="src"/>
+	<property name="classes.dir" value="build/classes"/>
+
+	<path id="build.classpath">		
+	   <pathelement path="${classpath}"/>
+	   <fileset dir="../../build">
+	      <include name="**/*.jar"/>
+	   </fileset>
+	   <fileset dir="../../lib">
+	      <include name="**/*.jar"/>
+	   </fileset>
+	</path>
+
+	<target name="buildCommon" depends="cleanCommon">
+	   <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on">
+	      <classpath refid="build.classpath"/>
+	   </javac>
+        </target>
+	
+	<target name="buildAndPackageSample" depends="buildCommon"/>
+		
+	<target name="cleanCommon">
+	        <delete dir="${classes.dir}" includeemptydirs="true" failonerror="false"/>
+		<mkdir dir="${classes.dir}"/>
+	</target>
+
+
+</project>

Added: incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/DefaultURIInfo.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/DefaultURIInfo.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/DefaultURIInfo.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/DefaultURIInfo.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,85 @@
+/*
+ * 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.
+ */
+
+package build.defaults.samples;
+
+
+public class DefaultURIInfo {
+
+    final private static String hostname = "localhost";
+
+    final private static int port = 7070;
+
+    /**
+     * Returns the default hostname for the machine where the server artifacts
+     * are installed.
+     *
+     * @return the hostname
+     */
+    public static String getServerHostname() {
+        return hostname;
+    }
+
+    /**
+     * Returns the default port for the server where the server artifacts are
+     * installed.
+     *
+     * @return
+     */
+    public static int getServerPort() {
+        if (Environment.STANDALONE.equals(Environment.getCurrentEnvironment())) {
+            return port;
+        }
+        return 9080;
+    }
+
+    /**
+     * Returns the assumed context root for a test case class file.
+     *
+     * @param clazz
+     * @return the assumed context root
+     */
+    public static String getClassDefaultContextRoot(Class<?> clazz) {
+        if (Environment.STANDALONE.equals(Environment.getCurrentEnvironment())) {
+            return "";
+        }
+        String packageName = clazz.getPackage().getName();
+        packageName = packageName.replace(".", "/");
+        if (packageName.endsWith("/test")) {
+            packageName = packageName.substring(0, packageName.length() - 5);
+        }
+        return packageName;
+    }
+
+    /**
+     * Returns a class's default base URI. There is no &quot;/&quot; appended to
+     * the URI.
+     *
+     * @param clazz the class
+     * @return a base URI
+     */
+    public static String getClassDefaultBaseURI(Class<?> clazz) {
+        String contextRoot = getClassDefaultContextRoot(clazz);
+        if (!"".equals(contextRoot)) {
+            contextRoot = "/" + contextRoot;
+        }
+        return "http://" + getServerHostname() + ":" + getServerPort()
+                + contextRoot;
+    }
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/Environment.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/Environment.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/Environment.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/Environment.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ */
+
+package build.defaults.samples;
+
+import build.defaults.samples.monitor.Monitor;
+import build.defaults.samples.monitor.StandaloneMonitor;
+import build.defaults.samples.monitor.WASMonitor;
+
+/**
+ * The type of test environment that is running.
+ */
+public enum Environment {
+    GENERIC_WAS, STANDALONE;
+
+    public static Environment getCurrentEnvironment() {
+        if ("true".equals(System.getProperty("fvt.websphere.enabled"))) {
+            return GENERIC_WAS;
+        }
+        return STANDALONE;
+    }
+
+    private Monitor m;
+
+    public Monitor getMonitor() {
+        if (m != null) {
+            return m;
+        }
+
+        switch (getCurrentEnvironment()) {
+            case GENERIC_WAS:
+                m = new WASMonitor();
+                break;
+            case STANDALONE:
+                m = new StandaloneMonitor();
+                break;
+        }
+        return m;
+    }
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTAssert.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTAssert.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTAssert.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTAssert.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,53 @@
+/*
+ * 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.
+ */
+
+package build.defaults.samples;
+
+import build.defaults.samples.monitor.Monitor;
+
+public class FVTAssert {
+
+    /**
+     * Asserts that an exception is in the appropriate logs.
+     */
+    public static void assertLogContainsException(String msg, String s0) {
+        String logs = "";
+        Monitor m = Environment.getCurrentEnvironment().getMonitor();
+        switch (Environment.getCurrentEnvironment()) {
+            case GENERIC_WAS:
+                logs = m.getServerOutput();
+                break;
+            case STANDALONE:
+                logs = m.getServerOutput();
+                break;
+        }
+        if (logs.contains(s0)) {
+            return;
+        }
+        throw new AssertionError(msg + ": Logs do not contain:" + s0 + " logs:"
+                + logs);
+    }
+
+    /**
+     * Asserts that an exception is in the appropriate logs.
+     */
+    public static void assertLogContainsException(String s0) {
+        assertLogContainsException(null, s0);
+    }
+}

Added: incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTTestCase.java
URL: http://svn.apache.org/viewvc/incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTTestCase.java?rev=787552&view=auto
==============================================================================
--- incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTTestCase.java (added)
+++ incubator/wink/contrib/ibm-jaxrs/samples/common/src/build/defaults/samples/FVTTestCase.java Tue Jun 23 05:33:31 2009
@@ -0,0 +1,117 @@
+/*
+ * 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.
+ */
+
+package build.defaults.samples;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class FVTTestCase extends TestCase {
+
+    public String getBaseURI() {
+        return DefaultURIInfo.getClassDefaultBaseURI(this.getClass());
+    }
+
+    public static class NoTest extends TestCase {
+        /*
+         * do nothing
+         */
+        public void testNothing() {
+            /* do nothing */
+        }
+    }
+
+    public static Test suite() {
+        return getTestSuite(NoTest.class, NoTest.class);
+    }
+
+    public static Test getTestSuite(final Class<?> testclazz, final Class<?>... resourceClazz) {
+        return getTestSuite(DefaultURIInfo.getServerPort(), testclazz,
+                resourceClazz);
+    }
+
+    public static Test getTestSuite(final int serverPort, final Class<?> testclazz, final Class<?>... resourceClazz) {
+        TestSuite testSuite = new TestSuite(testclazz);
+        testSuite.setName(testclazz.getName());
+
+        if (Environment.STANDALONE.equals(Environment.getCurrentEnvironment())) {
+            return new TestSetup(testSuite) {
+                ServletHost host;
+
+                @Override
+                protected void setUp() throws Exception {
+                    host = new ServletHost(serverPort, resourceClazz);
+                    host.init();
+                }
+
+                public void tearDown() throws Exception {
+                    host.shutdown();
+                }
+            };
+        }
+
+        return new TestSetup(testSuite);
+    }
+
+    public static Test getTestSuite(final Class<?> testclazz, final String applicationClassName) {
+        return getTestSuite(DefaultURIInfo.getServerPort(), testclazz,
+                applicationClassName);
+    }
+
+    public static Test getTestSuite(final int serverPort, final Class<?> testclazz, final String applicationClassName) {
+        TestSuite testSuite = new TestSuite(testclazz);
+        testSuite.setName(testclazz.getName());
+
+        /*
+         * used to init the monitor
+         */
+        Environment.getCurrentEnvironment().getMonitor().resetMonitor();
+
+        if (Environment.STANDALONE.equals(Environment.getCurrentEnvironment())) {
+
+            return new TestSetup(testSuite) {
+                ServletHost host;
+
+                @Override
+                protected void setUp() throws Exception {
+                    Environment.getCurrentEnvironment().getMonitor()
+                            .resetMonitor();
+                    host = new ServletHost(serverPort, applicationClassName);
+                    host.init();
+                }
+
+                public void tearDown() throws Exception {
+                    host.shutdown();
+                }
+            };
+        }
+
+        return new TestSetup(testSuite);
+    }
+
+    public void assertLogContainsException(String msg, String s0) {
+        FVTAssert.assertLogContainsException(msg, s0);
+    }
+
+    public void assertLogContainsException(String s0) {
+        FVTAssert.assertLogContainsException(s0);
+    }
+}



Mime
View raw message