Class BraveWebQuery.BraveRequestBuilder
java.lang.Object
net.ygbstudio.jbrave.core.builders.AbstractBraveRequestBuilder<BraveWebQuery.BraveRequestBuilder>
net.ygbstudio.jbrave.api.builders.BraveWebQuery.BraveRequestBuilder
- Enclosing class:
BraveWebQuery
public static final class BraveWebQuery.BraveRequestBuilder
extends AbstractBraveRequestBuilder<BraveWebQuery.BraveRequestBuilder>
-
Field Summary
Fields inherited from class net.ygbstudio.jbrave.core.builders.AbstractBraveRequestBuilder
headers, headersAttached, internalRequestBuilder, requestURI -
Method Summary
Modifier and TypeMethodDescriptionwithApiVersion(String apiVersion) Adds an API version header to the request.withCacheControl(String cacheControl) Adds a cache control header to the request.Adds a city header to the request.withCountry(String country) Adds a country header to the request.withLatitude(double latitude) Adds a latitude header to the request.withLongitude(double longitude) Adds a longitude header to the request.withPostalCode(String postalCode) Adds a postal code header to the request.Adds a state header to the request.withStateName(String stateName) Adds a state name header to the request.withTimezone(@NotNull ZoneId timezone) Adds a timezone header to the request.withUserAgent(String userAgent) Adds a user agent header to the request.Methods inherited from class net.ygbstudio.jbrave.core.builders.AbstractBraveRequestBuilder
addHeader, attachHeaders, build, clear, clearRetainURI, queryURI, self, subscriptionMissing
-
Method Details
-
withLatitude
Adds a latitude header to the request.- Parameters:
latitude- the latitude value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withLongitude
Adds a longitude header to the request.- Parameters:
longitude- the longitude value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withTimezone
Adds a timezone header to the request.- Parameters:
timezone- the timezone value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withCountry
Adds a country header to the request.- Parameters:
country- the country value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withCity
Adds a city header to the request.- Parameters:
city- the city value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withState
Adds a state header to the request.- Parameters:
state- the state value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withStateName
Adds a state name header to the request.- Parameters:
stateName- the state name value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withPostalCode
Adds a postal code header to the request.- Parameters:
postalCode- the postal code value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withUserAgent
Adds a user agent header to the request.- Parameters:
userAgent- the user agent value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withCacheControl
Adds a cache control header to the request.- Parameters:
cacheControl- the cache control value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-
withApiVersion
Adds an API version header to the request.- Parameters:
apiVersion- the API version value to set- Returns:
- the current instance of
BraveWebQuery.BraveRequestBuilder
-