java.io.Closeable, java.lang.AutoCloseablepublic final class OAuthSessionFactory
extends okhttp3.mockwebserver.Dispatcher
implements java.io.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 | Description |
|---|---|---|
static interface |
OAuthSessionFactory.Listener |
| Constructor | Description |
|---|---|
OAuthSessionFactory(SlackApi slackApi) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
okhttp3.mockwebserver.MockResponse |
dispatch(okhttp3.mockwebserver.RecordedRequest request) |
When the browser hits the redirect URL, use the provided code to ask Slack for a session.
|
okhttp3.HttpUrl |
newAuthorizeUrl(java.lang.String scopes,
java.lang.String team,
OAuthSessionFactory.Listener listener) |
|
void |
start() |
public OAuthSessionFactory(SlackApi slackApi)
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic okhttp3.HttpUrl newAuthorizeUrl(java.lang.String scopes,
java.lang.String team,
OAuthSessionFactory.Listener listener)
public okhttp3.mockwebserver.MockResponse dispatch(okhttp3.mockwebserver.RecordedRequest request)
dispatch in class okhttp3.mockwebserver.Dispatcherpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableCopyright © 2020. All Rights Reserved.