com.googlecode.jpattern.gwt.client
Class RestServerCallService

java.lang.Object
  extended by com.googlecode.jpattern.gwt.client.RestServerCallService
All Implemented Interfaces:
IServerCallService

public class RestServerCallService
extends Object
implements IServerCallService

Author:
Francesco Cina' 06/mag/2011

Constructor Summary
RestServerCallService(IBeanFactory beanFactory)
           
 
Method Summary
<T extends IWebResult>
AProxy<T>
delete(Class<T> resultClass, ICallbackAction<T> callbackAction, String url, Map<String,String> keyValuesMap)
           
<T extends IWebResult>
AProxy<T>
get(Class<T> resultClass, ICallbackAction<T> callbackAction, String url, Map<String,String> keyValuesMap)
           
<T extends IWebResult,Z>
AProxy<T>
post(Class<T> resultClass, Class<Z> dataClass, ICallbackAction<T> callbackAction, String url, Z data)
           
<T extends IWebResult,Z>
AProxy<T>
put(Class<T> resultClass, Class<Z> dataClass, ICallbackAction<T> callbackAction, String url, Z data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestServerCallService

public RestServerCallService(IBeanFactory beanFactory)
Method Detail

get

public <T extends IWebResult> AProxy<T> get(Class<T> resultClass,
                                            ICallbackAction<T> callbackAction,
                                            String url,
                                            Map<String,String> keyValuesMap)
Specified by:
get in interface IServerCallService

delete

public <T extends IWebResult> AProxy<T> delete(Class<T> resultClass,
                                               ICallbackAction<T> callbackAction,
                                               String url,
                                               Map<String,String> keyValuesMap)
Specified by:
delete in interface IServerCallService

post

public <T extends IWebResult,Z> AProxy<T> post(Class<T> resultClass,
                                               Class<Z> dataClass,
                                               ICallbackAction<T> callbackAction,
                                               String url,
                                               Z data)
Specified by:
post in interface IServerCallService

put

public <T extends IWebResult,Z> AProxy<T> put(Class<T> resultClass,
                                              Class<Z> dataClass,
                                              ICallbackAction<T> callbackAction,
                                              String url,
                                              Z data)
Specified by:
put in interface IServerCallService


Copyright © 2011. All Rights Reserved.