Class Gitea
java.lang.Object
org.jenkinsci.plugin.gitea.client.api.Gitea
Entry point to the Gitea client API for opening a
GiteaConnection.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanTheJsonIgnoreProperties.ignoreUnknown()to use. -
Method Summary
Modifier and TypeMethodDescriptionas()Specify the authentication to connect to the server with.classLoader(ClassLoader classLoader) Sets theClassLoaderthat the SPI implementation will be resolved from.open()Opens aGiteaConnectionto the Gitea server.static GiteaCreates a newGitea.
-
Field Details
-
IGNORE_UNKNOWN_PROPERTIES
public static final boolean IGNORE_UNKNOWN_PROPERTIESTheJsonIgnoreProperties.ignoreUnknown()to use. (For production use this should always betrue, but during testing of API changes it can be changed tofalseso that the API can be verified as correctly implemented.- See Also:
-
-
Method Details
-
server
Creates a newGitea.- Parameters:
serverUrl- URL of the Gitea server.- Returns:
- the
Gitea.
-
as
Specify the authentication to connect to the server with.- Parameters:
authentication- the authentication.- Returns:
thisfor method chaining.
-
serverUrl
-
as
-
classLoader
-
classLoader
Sets theClassLoaderthat the SPI implementation will be resolved from.- Parameters:
classLoader- theClassLoader- Returns:
thisfor method chaining.
-
open
Opens aGiteaConnectionto the Gitea server.- Returns:
- the connection.
- Throws:
IOException- if the connection could not be established.InterruptedException- if interrupted while opening the connection.
-
jenkinsPluginClassLoader
-