Class RemoteApiOptions

  • java.lang.Object

  • public class RemoteApiOptions
    extends java.lang.Object
    A mutable object containing settings for installing the remote API.

    Example for connecting to a development app server:

     RemoteApiOptions options = new RemoteApiOptions()
         .server("localhost", 8888),

    Example for connecting to a deployed app:

     RemoteApiOptions options = new RemoteApiOptions()
         .server("", 443),

    The options should be passed to RemoteApiInstaller.install(

    • Constructor Detail

      • RemoteApiOptions

        public RemoteApiOptions()
    • Method Detail

      • server

        public RemoteApiOptions server(java.lang.String newHostname,
                                       int newPort)
        Sets the host and port port where we will connect.
      • credentials

        public RemoteApiOptions credentials(java.lang.String newUserEMail,
                                                        java.lang.String newPassword)
        Deprecated. Use useApplicationDefaultCredential() or useServiceAccountCredential instead.
        Sets a username and password to be used for logging in via the ClientLogin API. Overrides any previously-provided credentials.
      • reuseCredentials

        public RemoteApiOptions reuseCredentials(java.lang.String newUserEma