public interface ResourceDiscoveryExtension extends ServerExtension
| Modifier and Type | Method and Description |
|---|---|
DiscoveredObject |
discover(java.lang.String url,
SimpleCredentials credentials,
SProject project)
Returns object describing resource behind URL or null if this extension did not recognize resource.
|
@Nullable DiscoveredObject discover(@NotNull java.lang.String url, @Nullable SimpleCredentials credentials, @NotNull SProject project) throws ResourceDiscoveryException
url - url to resourcecredentials - credentials which can be used to authenticate on resourceproject - a project where discovery is performedResourceDiscoveryException - if resource is recognized, but some problem occurred on attempt to retrieve information about this resource (authentication failure, connection error, etc).