Hi Christopher,
thanks for your suggestions.
I've successfully configured Interceptor for each call but now I don't know how add a extra header on every RestAction from client to server.
From javadoc I've found this
Rest Interceptors provide a number of flexible options:
* <ul>
* <li>The action can be modified before sending the action to the server.</li>
* <li>A result can be returned without contacting the server.</li>
* <li>The result can be modified or processed after it is returned from the server.</li>
* <li>The {@link Interceptor} can take over and communicate directly with the server, possibly using a
* different mechanism.</li>
I make 'clone' the original RestAction and call "return executeCommand.execute(clone, resultCallback);"
at the end of method "public DispatchRequest execute(final RestAction action, AsyncCallback<Object> resultCallback, ExecuteCommand<RestAction, Object> executeCommand)"
but the gwtp send every time the original RestAction.
Where wrong?
Thank in advance.
Riccardo
Sorry for my not perfect english!