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.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. |
public RequestConfig app(String appName)
appName
- Name of the app to specify in the config.RequestConfig
public String getAppName()
public RequestConfig with(Heroku.RequestKey key, String value)
Heroku.RequestKey
parameter.key
- Heroku request keyvalue
- value of the propertyRequestConfig
public RequestConfig with(Heroku.RequestKey key, Map<Heroku.RequestKey,RequestConfig.Either> value)
Heroku.RequestKey
parameter.key
- Heroku request keyvalue
- value of the propertyRequestConfig
public 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 © 2017. All rights reserved.