wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From el...@apache.org
Subject svn commit: r821529 - in /incubator/wink/trunk/wink-examples/core/CustomExceptionMapper: build.xml src/main/java/org/apache/wink/example/customerror/UsersResource.java
Date Sun, 04 Oct 2009 12:28:32 GMT
Author: elman
Date: Sun Oct  4 12:28:31 2009
New Revision: 821529

URL: http://svn.apache.org/viewvc?rev=821529&view=rev
Log:
Remove json related code.

Modified:
    incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/build.xml
    incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/src/main/java/org/apache/wink/example/customerror/UsersResource.java

Modified: incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/build.xml
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/build.xml?rev=821529&r1=821528&r2=821529&view=diff
==============================================================================
--- incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/build.xml (original)
+++ incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/build.xml Sun Oct  4 12:28:31
2009
@@ -40,8 +40,6 @@
 
 
 	<target name="init">
-		<!-- Create the time stamp -->
-		<tstamp />
 		<!-- Create the build directory structure used by compile -->
 		<mkdir dir="${build.classes}" />
 	</target>
@@ -67,7 +65,7 @@
 		<war destfile="${final.war}" webxml="${webapp}/WEB-INF/web.xml">
 			<webinf dir="${webapp}/WEB-INF" includes="**/*" />
 			<classes dir="${build.classes}" includes="**/*" />
-			<lib dir="${sdk.lib}" includes="*.jar" excludes="spring*.jar"/>
+			<lib dir="${sdk.lib}" includes="*.jar" />
 			<lib file="${sdk.jar}" />
 		</war>
 	</target>

Modified: incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/src/main/java/org/apache/wink/example/customerror/UsersResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/src/main/java/org/apache/wink/example/customerror/UsersResource.java?rev=821529&r1=821528&r2=821529&view=diff
==============================================================================
--- incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/src/main/java/org/apache/wink/example/customerror/UsersResource.java
(original)
+++ incubator/wink/trunk/wink-examples/core/CustomExceptionMapper/src/main/java/org/apache/wink/example/customerror/UsersResource.java
Sun Oct  4 12:28:31 2009
@@ -95,24 +95,24 @@
     }
 
     /**
-     * Get a list of all the existing users as xml or as json
+     * Get a list of all the existing users as xml
      * 
      * @return an instance of Users
      */
     @GET
-    @Produces( {MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
+    @Produces( {MediaType.APPLICATION_XML})
     public Users getUsers() {
         return new Users(users.values());
     }
 
     /**
-     * Create a new user by receiving it as xml, and returning it as xml or json
+     * Create a new user by receiving it as xml, and returning it as xml
      * 
      * @return the created user
      */
     @POST
     @Consumes( {MediaType.APPLICATION_XML})
-    @Produces( {MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
+    @Produces( {MediaType.APPLICATION_XML})
     public User putUser(User user) {
         maxUserID++;
         user.setId(maxUserID);
@@ -121,7 +121,7 @@
     }
 
     /**
-     * Get a user as xml or json
+     * Get a user as xml
      * 
      * @param id the id of the user to get
      * @return the user as specified by the id
@@ -131,7 +131,7 @@
      */
     @Path("{id}")
     @GET
-    @Produces( {MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
+    @Produces( {MediaType.APPLICATION_XML})
     public User getUser(@PathParam("id") int id) throws UserNotExistException {
         User u = users.get(id);
         if (u == null) {



Mime
View raw message