RequestProxy

public abstract class RequestProxy<Proxy extends FundamentalData.RequestProxy<? extends Object, ProxyResponse>, ProxyResponse>

Base class for the fluent, per-endpoint request proxies returned by FundamentalData's accessor methods (for example incomeStatement), sharing the symbol/callback wiring and fetch logic common to all of them.

Parameters

<Proxy>

the concrete proxy subtype, for fluent method chaining

<ProxyResponse>

the response type this proxy's endpoint returns

Inheritors

Functions

Link copied to clipboard
public void fetch()
Makes an asynchronous http request to fetch the data built by this proxy, invoking whichever of onSuccess and onFailure was registered.
Link copied to clipboard
Sets the right builder and makes a synchronous request using fetch.
Link copied to clipboard
public Proxy forSymbol(String symbol)
Sets the ticker symbol to request data for.
Link copied to clipboard
Registers the callback invoked when an asynchronous fetch fails.
Link copied to clipboard
public Proxy onSuccess(Fetcher.SuccessCallback<? extends Object> callback)
Registers the callback invoked with the parsed response when an asynchronous fetch succeeds.
Link copied to clipboard
public void setSyncResponse(ProxyResponse response)
Stores the response received by fetchSync's internal callback, so it can be returned to the caller.