Package org.fusesource.restygwt.client

Examples of org.fusesource.restygwt.client.TextCallback


        });
    }

    public void getCurrentRoles(final FormBuilderService.RolesResponseHandler handler) {
        Resource resource = new Resource(URLBuilder.getCurrentRolesURL(this.contextPath));
        resource.get().send(new TextCallback() {
            @Override
            public void onSuccess(Method method, String response) {
                if (method.getResponse().getStatusCode() == Response.SC_OK) {
                    List<String> roles = helper.readRoles(response);
                    handler.onResponse(roles);
View Full Code Here


        });
    }
   
    public void logout() {
        Resource resource = new Resource(URLBuilder.getLogoutURL(this.contextPath));
        resource.post().send(new TextCallback() {
            @Override
            public void onSuccess(Method method, String response) {
                Window.Location.reload();
            }
            @Override
View Full Code Here

TOP

Related Classes of org.fusesource.restygwt.client.TextCallback

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.