resty-gwt

RestyGWT Polymorphic Encode/Decode issues when using an interface instead of an abstract class

扶醉桌前 提交于 2019-12-24 07:29:46
问题 According to RestyGWT documentation one must use an abstract super class for this to work, for instance, given: @JsonSubTypes(@Type(value=PersonImpl.class, name="PersonImpl")) @JsonTypeInfo(use=Id.NAME, include=As.PROPERTY, property="@class") public abstract class Person{ public abstract String getName(); public abstract void setName(String name); } @JsonTypeName("PersonImpl") public class PersonImpl extends Person{ private String name; @Override public final String getName() { return name; }

Resty-GWT custom callback on async start and end

感情迁移 提交于 2019-12-21 20:49:07
问题 I use resty gwt for all server communication. I would like some indicator that would show the operation is in progress. I consider 2 aproaches: progressbar, which will show in progress percentage; animation, that will be showed while operation is in progress, but without any percantage. I've assumed that I need to add custom filter with callback. I would like to fire events like: RestyGwtComunicationStart and RestyGwtComunicationEnd , or callback to fire onComunicationStarted and

Resty-GWT custom callback on async start and end

♀尐吖头ヾ 提交于 2019-12-04 14:32:51
I use resty gwt for all server communication. I would like some indicator that would show the operation is in progress. I consider 2 aproaches: progressbar, which will show in progress percentage; animation, that will be showed while operation is in progress, but without any percantage. I've assumed that I need to add custom filter with callback. I would like to fire events like: RestyGwtComunicationStart and RestyGwtComunicationEnd , or callback to fire onComunicationStarted and onComunicationEnded . I would like to have this declared in one place, RestyGWT Dispatcher configuration. Also if

RestyGWT- custom dispatcher doesn't call registered filters

久未见 提交于 2019-12-04 04:44:08
问题 I am trying to write my custom dispatcher for resty gwt. My dispatcher RestyDispatcher will contain two filters: BasicAuthHeaderDispatcherFilter (which will add to each request security token), ForbiddenDispatcherFilter (which will contains callback ForbiddenDispatcherCallback )- his job is to redirect to login page if user is not logged in. I have problem, that my filters are registered by gwt/restygwt, unfortunatelly they don't work. Here is code: gin client module public class ClientModule

RestyGWT- custom dispatcher doesn't call registered filters

怎甘沉沦 提交于 2019-12-01 20:15:34
I am trying to write my custom dispatcher for resty gwt. My dispatcher RestyDispatcher will contain two filters: BasicAuthHeaderDispatcherFilter (which will add to each request security token), ForbiddenDispatcherFilter (which will contains callback ForbiddenDispatcherCallback )- his job is to redirect to login page if user is not logged in. I have problem, that my filters are registered by gwt/restygwt, unfortunatelly they don't work. Here is code: gin client module public class ClientModule extends AbstractPresenterModule { @Override protected void configure() { install(new DefaultModule