|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heroku.api.request.RequestConfig
public class RequestConfig
Wrapper class for an EnumMap to configure a Request. A Heroku.RequestKey serves as
a predetermined key for a name/value parameter.
| Constructor Summary | |
|---|---|
RequestConfig()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestConfig()
| Method Detail |
|---|
public RequestConfig onStack(Heroku.Stack stack)
Heroku.RequestKey.Stack parameter.
stack - A Heroku.Stack to specify in the config.
RequestConfigpublic 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 -
RequestConfigpublic String get(Heroku.RequestKey key)
public Map<Heroku.RequestKey,String> asMap()
public boolean has(Heroku.RequestKey key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||