Class LocalServerReceiver.Builder (1.32.1)

public static final class LocalServerReceiver.Builder

Builder.

Implementation is not thread-safe.

Inheritance

java.lang.Object > LocalServerReceiver.Builder

Constructors

Builder()

public Builder()

Methods

build()

public LocalServerReceiver build()

Builds the LocalServerReceiver.

Returns
TypeDescription
LocalServerReceiver

getCallbackPath()

public String getCallbackPath()

Returns the callback path of redirect_uri.

Returns
TypeDescription
String

getHost()

public String getHost()

Returns the host name to use.

Returns
TypeDescription
String

getPort()

public int getPort()

Returns the port to use or -1 to select an unused port.

Returns
TypeDescription
int

setCallbackPath(String callbackPath)

public LocalServerReceiver.Builder setCallbackPath(String callbackPath)

Set the callback path of redirect_uri.

Parameter
NameDescription
callbackPathString
Returns
TypeDescription
LocalServerReceiver.Builder

setHost(String host)

public LocalServerReceiver.Builder setHost(String host)

Sets the host name to use.

Parameter
NameDescription
hostString
Returns
TypeDescription
LocalServerReceiver.Builder

setLandingPages(String successLandingPageUrl, String failureLandingPageUrl)

public LocalServerReceiver.Builder setLandingPages(String successLandingPageUrl, String failureLandingPageUrl)
Parameters
NameDescription
successLandingPageUrlString
failureLandingPageUrlString
Returns
TypeDescription
LocalServerReceiver.Builder

setPort(int port)

public LocalServerReceiver.Builder setPort(int port)

Sets the port to use or -1 to select an unused port.

Parameter
NameDescription
portint
Returns
TypeDescription
LocalServerReceiver.Builder