public static class Octane.Builder extends Object
Octane instance for normal API usage. It is initialised using the correct Authentication
Builder class uses the builder pattern. This builds up the correct Octane REST API context. It is not
necessary to add a sharedspace or workspace and will work with entities under that context.
build() method to create the Octane instance| 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 |
|---|---|
Octane |
build()
The main build procedure which creates the
Octane object and authenticates against the server |
Octane.Builder |
OctaneClassFactoryClassName(String octaneClassFactoryClassName)
Sets the OctaneClassFactoryName.
|
Octane.Builder |
OctaneHttpClient(OctaneHttpClient octaneHttpClient)
Sets the
OctaneHttpClient instance. |
Octane.Builder |
Server(String domain)
Sets the domain and the port.
|
Octane.Builder |
Server(String domain,
int port)
Sets the domain and the port.
|
Octane.Builder |
settings(Octane.OctaneCustomSettings settings)
Configure a settings provider with custom settings like: readTimeout
|
Octane.Builder |
sharedSpace(long ssID)
Sets the shared_space id to be a long
|
Octane.Builder |
sharedSpace(UUID ssID)
Sets the shared_space id to be a UUID object
|
String |
toString() |
Octane.Builder |
workSpace(long lId)
Sets the workspace id to be a long.
|
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 Octane.Builder sharedSpace(UUID ssID)
ssID - - sharedSpace idNullPointerException - if ssID is nullpublic Octane.Builder sharedSpace(long ssID)
ssID - - sharedSpace idpublic Octane.Builder workSpace(long lId)
This can be set to be Octane.NO_WORKSPACE_ID which means that the context is set to be the space
admin to get the list of workspaces
If this is not set and the space id is set the context is assumed to be the space admin
lId - - workSpace idpublic Octane.Builder Server(String domain, int port)
http://octane.server.comdomain - - domain name including http schemeport - - port numberNullPointerException - if the domain is nullpublic Octane.Builder Server(String domain)
http://octane.server.comdomain - - domain name including http schemeNullPointerException - if the domain is nullpublic Octane.Builder OctaneClassFactoryClassName(String octaneClassFactoryClassName)
OctaneClassFactory for more detailsoctaneClassFactoryClassName - The name of the OctaneClassFactory to usepublic Octane.Builder OctaneHttpClient(OctaneHttpClient octaneHttpClient)
OctaneHttpClient instance.octaneHttpClient - The instance to usepublic Octane.Builder settings(Octane.OctaneCustomSettings settings)
settings - - a plain java object with timeout settings(for now)public Octane build()
Octane object and authenticates against the serverCopyright © 2021 Micro Focus. All rights reserved.