public class RequestConfig extends Object
EnumMap to configure a Request. A Heroku.RequestKey serves as
a predetermined key for a name/value parameter.| Modifier and Type | Class and Description |
|---|---|
static class |
RequestConfig.Data |
static class |
RequestConfig.Either |
| Constructor and Description |
|---|
RequestConfig() |
| Modifier and Type | Method and Description |
|---|---|
RequestConfig |
app(String appName)
Sets the {Heroku.RequestKey.AppName} parameter.
|
String |
asJson() |
Map<String,Object> |
asMap() |
String |
get(Heroku.RequestKey key) |
String |
getAppName() |
Map<Heroku.RequestKey,RequestConfig.Either> |
getMap(Heroku.RequestKey key) |
boolean |
has(Heroku.RequestKey key) |
RequestConfig |
with(Heroku.RequestKey key,
Map<Heroku.RequestKey,RequestConfig.Either> value)
Sets a
Heroku.RequestKey parameter. |
RequestConfig |
with(Heroku.RequestKey key,
String value)
Sets a
Heroku.RequestKey parameter. |
RequestConfig |
withOptions(Heroku.RequestKey key,
Map<String,String> data)
Sets a
Heroku.RequestKey parameter. |
public RequestConfig app(String appName)
appName - Name of the app to specify in the config.RequestConfigpublic String getAppName()
public RequestConfig with(Heroku.RequestKey key, String value)
Heroku.RequestKey parameter.key - Heroku request keyvalue - value of the propertyRequestConfigpublic RequestConfig with(Heroku.RequestKey key, Map<Heroku.RequestKey,RequestConfig.Either> value)
Heroku.RequestKey parameter.key - Heroku request keyvalue - value of the propertyRequestConfigpublic RequestConfig withOptions(Heroku.RequestKey key, Map<String,String> data)
Heroku.RequestKey parameter.key - Heroku request keydata - arbitrary key/value mapRequestConfigpublic String get(Heroku.RequestKey key)
public Map<Heroku.RequestKey,RequestConfig.Either> getMap(Heroku.RequestKey key)
public boolean has(Heroku.RequestKey key)
public String asJson()
Copyright © 2018. All rights reserved.