Intercepting GWT RequestFactory requests?

You can override the default transport implementation and pass it during RF initialization.

You can override the default transport implementation and pass it during RF initialization: SampleRequestFactory factory = GWT. Create( SampleRequestFactory. Class ); factory.

Initialize( new SimpleEventBus(), new DefaultRequestTransport() ); You can inherit from DefaultRequestTransport and override the method send(String payload, TransportReceiver receiver) Do some processing before calling the super-implementation and wrap the TransportReceiver with a delegate to handle the result.

Final DefaultRequestTransport requestTransport = new DefaultRequestTransport() { @Override public void send(final String payload, final TransportReceiver receiver) { GWT. Log("making rpc"); final TransportReceiver proxy = new TransportReceiver() { @Override public void onTransportFailure(final ServerFailure failure) { GWT. Log("rpc returned"); receiver.

OnTransportFailure(failure); } @Override public void onTransportSuccess(final String payload) { GWT. Log("rpc returned"); receiver. OnTransportSuccess(payload); } }; super.

Send(payload, proxy); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions