EffectsRequestBuilder extends RequestBuilder { public EffectsRequestBuilder forLedger(long ledgerSeq) { this.setSegments("ledgers", String.valueOf(ledgerSeq), "effects"); return this; } EffectsRequestBuilder(OkHttpClient httpClient, URI serverURI); EffectsRequestBuilder forAccount(KeyPair account); EffectsRequestBuilder forLedger(long ledgerSeq); EffectsRequestBuilder forTransaction(String transactionId); EffectsRequestBuilder forOperation(long operationId); static Page<EffectResponse> execute(OkHttpClient httpClient, URI uri); @Override ServerSentEvent stream(EventListener<ListenerType> listener); Page<EffectResponse> execute(); @Override EffectsRequestBuilder cursor(String token); @Override EffectsRequestBuilder limit(int number); @Override EffectsRequestBuilder order(Order direction);  }
@Test public void testForLedger() { Server server = new Server("https: URI uri = server.effects() .forLedger(200000000000L) .limit(50) .order(RequestBuilder.Order.ASC) .buildUri(); assertEquals("https: }