Package net.ygbstudio.jbrave.core.domain
Interface BraveAPIConstant
- All Known Subinterfaces:
ClientProvidedOption,CountryIdentifier,LanguageIdentifier,ProvidedOption,RegionLocaleIdentifier,SearchFilterOption,SearchOption,SearchVertical
- All Known Implementing Classes:
BraveResource,Country,Freshness,MarketLocale,ResultFilter,SafeSearch,SearchFilterMode,SearchLanguage,SearchOptions,Units
Interface for constants that are used in Brave API.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SEARCH_API_BASE
The base URL for the Brave API.- See Also:
-
-
Method Details
-
value
String value()Returns the value of the constant. Must be implemented by the enum constants.- Returns:
- the value of the constant
-
urlParam
String urlParam()Returns the URL parameter associated with this constant. It can be implemented by default at the interface level with the value of the parameter.This method is used to generate the URL parameter for the API requests and represents a unit of
option/parameterName/parameterConstant + "=" + parameterValue.A
parameterValuemay be provided by the API or require that the client provides it. By default, all options/parameters names are provided by the API.- Returns:
- the URL parameter associated with this constant
- See Also:
-