com.heroku.api.request
public class RequestConfig extends Object
EnumMap
to configure a Request
. A Heroku.RequestKey
serves as
a predetermined key for a name/value parameter.Constructor and Description |
---|
RequestConfig() |
Modifier and Type | Method and Description |
---|---|
RequestConfig |
app(String appName)
Sets the
Heroku.RequestKey.AppName parameter. |
Map<Heroku.RequestKey,String> |
asMap() |
String |
get(Heroku.RequestKey key) |
boolean |
has(Heroku.RequestKey key) |
RequestConfig |
onStack(Heroku.Stack stack)
Sets the
Heroku.RequestKey.Stack parameter. |
RequestConfig |
with(Heroku.RequestKey key,
String value)
Sets a
Heroku.RequestKey parameter. |
public RequestConfig onStack(Heroku.Stack stack)
Heroku.RequestKey.Stack
parameter.stack
- A Heroku.Stack
to specify in the config.RequestConfig
public RequestConfig app(String appName)
Heroku.RequestKey.AppName
parameter.appName
- Name of the app to specify in the config.RequestConfig
public RequestConfig with(Heroku.RequestKey key, String value)
Heroku.RequestKey
parameter.key
- value
- RequestConfig
public String get(Heroku.RequestKey key)
public Map<Heroku.RequestKey,String> asMap()
public boolean has(Heroku.RequestKey key)
Copyright © 2014. All Rights Reserved.