Class DefaultGiteaConnectionFactory
java.lang.Object
org.jenkinsci.plugin.gitea.client.spi.GiteaConnectionFactory
org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnectionFactory
The SPI implementation of
GiteaConnectionFactory.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSPI: confirm that this factory can open connections to the supplied builder.SPI: open the connection to the supplied URL with the supplied authentication.Methods inherited from class org.jenkinsci.plugin.gitea.client.spi.GiteaConnectionFactory
priority
-
Constructor Details
-
DefaultGiteaConnectionFactory
public DefaultGiteaConnectionFactory()
-
-
Method Details
-
canOpen
SPI: confirm that this factory can open connections to the supplied builder.- Specified by:
canOpenin classGiteaConnectionFactory- Parameters:
gitea- the builder.- Returns:
trueif connections can be opened.
-
open
SPI: open the connection to the supplied URL with the supplied authentication.- Specified by:
openin classGiteaConnectionFactory- Parameters:
gitea- the builder.- Returns:
- the connection.
- Throws:
IOException- if the connection could not be opened.
-