public final class OAuthSessionFactory extends Dispatcher implements Closeable
Clients should call start(), newAuthorizeUrl(java.lang.String, java.lang.String, okhttp3.slack.OAuthSessionFactory.Listener) and close() in that order.
Clients may request multiple sessions.
| Modifier and Type | Class and Description |
|---|---|
static interface |
OAuthSessionFactory.Listener |
| Constructor and Description |
|---|
OAuthSessionFactory(SlackApi slackApi) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MockResponse |
dispatch(RecordedRequest request)
When the browser hits the redirect URL, use the provided code to ask Slack for a session.
|
HttpUrl |
newAuthorizeUrl(String scopes,
String team,
OAuthSessionFactory.Listener listener) |
void |
start() |
peek, shutdownpublic OAuthSessionFactory(SlackApi slackApi)
public HttpUrl newAuthorizeUrl(String scopes, String team, OAuthSessionFactory.Listener listener)
public MockResponse dispatch(RecordedRequest request) throws InterruptedException
dispatch in class DispatcherInterruptedExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017. All Rights Reserved.