Class LocalServerReceiver.Builder (1.36.0)

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
Type Description
LocalServerReceiver

getCallbackPath()

public String getCallbackPath()

Returns the callback path of redirect_uri.

Returns
Type Description
String

getHost()

public String getHost()

Returns the host name to use.

Returns
Type Description
String

getPort()

public int getPort()

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

Returns
Type Description
int

setCallbackPath(String callbackPath)

public LocalServerReceiver.Builder setCallbackPath(String callbackPath)

Set the callback path of redirect_uri.

Parameter
Name Description
callbackPath String
Returns
Type Description
LocalServerReceiver.Builder

setHost(String host)

public LocalServerReceiver.Builder setHost(String host)

Sets the host name to use.

Parameter
Name Description
host String
Returns
Type Description
LocalServerReceiver.Builder

setLandingPages(String successLandingPageUrl, String failureLandingPageUrl)

public LocalServerReceiver.Builder setLandingPages(String successLandingPageUrl, String failureLandingPageUrl)
Parameters
Name Description
successLandingPageUrl String
failureLandingPageUrl String
Returns
Type Description
LocalServerReceiver.Builder

setPort(int port)

public LocalServerReceiver.Builder setPort(int port)

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

Parameter
Name Description
port int
Returns
Type Description
LocalServerReceiver.Builder