RequestFactoryLogHandler.LoggingRequestProvider provider = new RequestFactoryLogHandler.LoggingRequestProvider() {
public LoggingRequest getLoggingRequest() {
return requestFactory.loggingRequest();
}
};
Logger.getLogger("").addHandler(new RequestFactoryLogHandler(provider, Level.WARNING, new ArrayList<String>()));
}
RequestEvent.register(eventBus, new RequestEvent.Handler() {
// Only show loading status if a request isn't serviced in 250ms.
private static final int LOADING_TIMEOUT = 250;