All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.keycloak.example.rs.CxfCustomerService Maven / Gradle / Ivy

There is a newer version: 1.1.1.Final
Show newest version
package org.keycloak.example.rs;

import java.util.ArrayList;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

/**
 * @author Bill Burke
 * @version $Revision: 1 $
 */
@Path("/customers")
public class CxfCustomerService {

    @GET
    @Produces("application/json")
    public List getCustomers() {
        ArrayList rtn = new ArrayList();
        rtn.add("Bill Burke");
        rtn.add("Stian Thorgersen");
        rtn.add("Stan Silvert");
        rtn.add("Gabriel Cardoso");
        rtn.add("Viliam Rockai");
        rtn.add("Marek Posolda");
        rtn.add("Boleslaw Dawidowicz");
        return rtn;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy