尝试使用aerogear管道从Restfull API检索数据时,请关闭Stream ....
AuthzModule authzModule = AuthorizationManager.getModule("KeyCloakAuthz");
authzModule.requestAccess( (Activity)this, new Callback<String>() {
@SuppressWarnings("unchecked")
@Override
public void onSuccess(String s) {
Pipe<Transactions> pipes = PipeManager.getPipe("transactions");
pipes.read(new AbstractCallback<List<Transactions>>() {
@Override
public void onSuccess(List<Transactions> id) {
//nothink happen
}
@Override
public void onFailure(Exception e) {
//error stream closed
}
你能帮我吗谢谢