com.google.api.client.extensions.jetty.auth.oauth2
Class LocalServerReceiver.Builder

java.lang.Object
  extended by com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver.Builder
Enclosing class:
LocalServerReceiver

public static final class LocalServerReceiver.Builder
extends Object

Builder.

Implementation is not thread-safe.


Constructor Summary
LocalServerReceiver.Builder()
           
 
Method Summary
 LocalServerReceiver build()
          Builds the LocalServerReceiver.
 String getHost()
          Returns the host name to use.
 int getPort()
          Returns the port to use or -1 to select an unused port.
 LocalServerReceiver.Builder setHost(String host)
          Sets the host name to use.
 LocalServerReceiver.Builder setPort(int port)
          Sets the port to use or -1 to select an unused port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalServerReceiver.Builder

public LocalServerReceiver.Builder()
Method Detail

build

public LocalServerReceiver build()
Builds the LocalServerReceiver.


getHost

public String getHost()
Returns the host name to use.


setHost

public LocalServerReceiver.Builder setHost(String host)
Sets the host name to use.


getPort

public int getPort()
Returns the port to use or -1 to select an unused port.


setPort

public LocalServerReceiver.Builder setPort(int port)
Sets the port to use or -1 to select an unused port.



Copyright © 2011-2012 Google. All Rights Reserved.