/**
 * ObjectRiver Inc, http://www.vilabs.net/
 * Copyright (c) 2002-2013, ObjectRiver(tm). All rights reserved.
 */
Application Hello = com.companyname {
    Endpoint HelloEndpoint = 510 {
        Exception HelloException {};
		Bean Hello {
			String hello;
			String world;
		};
        Server Stateless { // Stateless, Session, Singleton	
			@Path("hello_query")
            @Produces(JSON)
            @GET List<String> hello_query(@QueryParam("h") String hello) throws HelloException;

			@Path("hello_path/{h}/{world}")
            @Produces(JSON)
            @GET List<String> hello_path(@PathParam("h") String hello, @PathParam("world") String world) throws HelloException;

			@Path("hello_body")
            @Produces(JSON)
            @Consumes(JSON)
            @POST List<String> hello_body(@In String hello) throws HelloException;

			@Path("hello_header")
            @Produces(JSON)
            @POST List<String> hello_header(@HeaderParam("h") String hello, @HeaderParam("w") String world) throws HelloException;

            @Path("hello_queryList")
            @Produces(JSON)
            @GET  List<String> hello_query_list( @QueryParam("hwListList") List<String> hwListList);

			@Path("hello_querybean")
            @Produces(JSON)
            @GET List<String> hello_querybean(@QueryParam("bean") Hello bean) throws HelloException;
		};
    };
};