Package com.netflix.template.common

Examples of com.netflix.template.common.Sentence


        webResource = client.resource(location + "/talk");
    }

    @Override
    public Sentence greeting() {
        Sentence s = webResource.accept(MediaType.APPLICATION_XML).get(Sentence.class);
        return s;
    }
View Full Code Here


        return s;
    }

    @Override
    public Sentence farewell() {
        Sentence s = webResource.accept(MediaType.APPLICATION_XML).delete(Sentence.class);
        return s;
    }
View Full Code Here

public class TalkServer implements Conversation {

    @GET
    @Produces(MediaType.APPLICATION_XML)
    public Sentence greeting() {
        return new Sentence("Hello");
    }
View Full Code Here

    }

    @DELETE
    @Produces(MediaType.APPLICATION_XML)
    public Sentence farewell() {
        return new Sentence("Goodbye");
    }
View Full Code Here

TOP

Related Classes of com.netflix.template.common.Sentence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.