Class YahooRequest
- java.lang.Object
-
- org.marketcetera.marketdata.yahoo.YahooRequest
-
@ThreadSafe class YahooRequest extends Object
Represents a market data request to the Yahoo market data provider.- Since:
- 2.1.4
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description private static List<YahooField>commonFieldsfields in all requestsprivate static AtomicIntegercountercounter used to allocate unique identifiersprivate static YahooFieldDELIMITER_FIELDprivate static com.google.common.collect.Multimap<Content,YahooField>fieldsfields by content typeprivate Stringhandlehandle value corresponding to the requestprivate intididentifier assigned to the requestprivate MarketDataRequestrequestunderlying requestprivate Stringsymbolsymbol of the request
-
Constructor Summary
Constructors Constructor Description YahooRequest(MarketDataRequest inRequest, String inSymbol)Create a new YahooRequest instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)private StringgetFieldsFor(Content inContent)Gets the fields for the given content.(package private) StringgetHandle()Get the handle value.(package private) StringgetQuery()Gets the query associated with this request.(package private) MarketDataRequestgetRequest()Get the request value.inthashCode()(package private) voidsetHandle(String inHandle)Sets the handle value.
-
-
-
Field Detail
-
DELIMITER_FIELD
private static final YahooField DELIMITER_FIELD
-
commonFields
private static final List<YahooField> commonFields
fields in all requests
-
fields
private static final com.google.common.collect.Multimap<Content,YahooField> fields
fields by content type
-
request
private final MarketDataRequest request
underlying request
-
symbol
private final String symbol
symbol of the request
-
id
private final int id
identifier assigned to the request
-
handle
private volatile String handle
handle value corresponding to the request
-
counter
private static final AtomicInteger counter
counter used to allocate unique identifiers
-
-
Constructor Detail
-
YahooRequest
YahooRequest(MarketDataRequest inRequest, String inSymbol)
Create a new YahooRequest instance.- Parameters:
inRequest- aMarketDataRequestvalueinSymbol- aStringvalue
-
-
Method Detail
-
getHandle
String getHandle()
Get the handle value.- Returns:
- a
Stringvalue
-
setHandle
void setHandle(String inHandle)
Sets the handle value.- Parameters:
inHandle- aStringvalue
-
getQuery
String getQuery()
Gets the query associated with this request.- Returns:
- a
Stringvalue
-
getRequest
MarketDataRequest getRequest()
Get the request value.- Returns:
- a
MarketDataRequestvalue
-
-