public static final class LocalServerReceiver.Builder extends Object
Implementation is not thread-safe.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LocalServerReceiver |
build()
Builds the
LocalServerReceiver . |
String |
getCallbackPath()
Returns the callback path of redirect_uri
|
String |
getHost()
Returns the host name to use.
|
int |
getPort()
Returns the port to use or
-1 to select an unused port. |
LocalServerReceiver.Builder |
setCallbackPath(String callbackPath)
Set the callback path of redirect_uri
|
LocalServerReceiver.Builder |
setHost(String host)
Sets the host name to use.
|
LocalServerReceiver.Builder |
setLandingPages(String successLandingPageUrl,
String failureLandingPageUrl) |
LocalServerReceiver.Builder |
setPort(int port)
Sets the port to use or
-1 to select an unused port. |
public LocalServerReceiver build()
LocalServerReceiver
.public String getHost()
public LocalServerReceiver.Builder setHost(String host)
public int getPort()
-1
to select an unused port.public LocalServerReceiver.Builder setPort(int port)
-1
to select an unused port.public String getCallbackPath()
public LocalServerReceiver.Builder setCallbackPath(String callbackPath)
public LocalServerReceiver.Builder setLandingPages(String successLandingPageUrl, String failureLandingPageUrl)
Copyright © 2011–2019 Google. All rights reserved.