public static class SiteAdmin.Builder extends Object
SiteAdmin instance for site admin API usage. It is initialised using the correct Authentication
Builder class uses the builder pattern. This builds up the correct Octane REST API context.
build() method to create the SiteAdmin instance| Modifier and Type | Field and Description |
|---|---|
protected OctaneHttpClient |
octaneHttpClient |
protected String |
urlDomain |
| Constructor and Description |
|---|
Builder(Authentication authentication)
Creates a new Builder object using the correct authentication
|
Builder(Authentication authentication,
OctaneHttpClient octaneHttpClient)
Creates a new Builder object using the correct authentication
|
| Modifier and Type | Method and Description |
|---|---|
SiteAdmin |
build()
The main build procedure which creates the
SiteAdmin object and authenticates against the server |
protected SiteAdmin |
getSiteAdmin() |
SiteAdmin.Builder |
Server(String domain)
Sets the domain and the port.
|
SiteAdmin.Builder |
Server(String domain,
int port)
Sets the domain and the port.
|
String |
toString() |
protected String urlDomain
protected OctaneHttpClient octaneHttpClient
public Builder(Authentication authentication)
authentication - - Authentication object. Cannot be nullNullPointerException - if the authentication object is nullpublic Builder(Authentication authentication, OctaneHttpClient octaneHttpClient)
authentication - - Authentication object. Cannot be nulloctaneHttpClient - - Implementation of OctaneHttpClient. Cannot be nullAssertionError - if the authentication or octaneHttpClient is nullpublic SiteAdmin.Builder Server(String domain, int port)
http://octane.server.comdomain - - domain name including http schemeport - - port numberNullPointerException - if the domain is nullpublic SiteAdmin.Builder Server(String domain)
http://octane.server.comdomain - - domain name including http schemeNullPointerException - if the domain is nullpublic SiteAdmin build()
SiteAdmin object and authenticates against the serverprotected SiteAdmin getSiteAdmin()
Copyright © 2021 Micro Focus. All rights reserved.