Class RemoteRepositorySearchBackendImpl
java.lang.Object
org.apache.maven.search.api.support.SearchBackendSupport
org.apache.maven.search.backend.remoterepository.internal.RemoteRepositorySearchBackendImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SearchBackend
,SearchEngine
,RemoteRepositorySearchBackend
public class RemoteRepositorySearchBackendImpl
extends SearchBackendSupport
implements RemoteRepositorySearchBackend
Implementation of
RemoteRepositorySearchBackend
that is tested against Maven Central.
All the methods are "loosely encapsulated" (are protected) to enable easy override of any
required aspect of this implementation, to suit it against different remote repositories
(HTML parsing) if needed.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionRemoteRepositorySearchBackendImpl
(String backendId, String repositoryId, String baseUri, Transport transport, ResponseExtractor responseExtractor) Creates a customized instance of SMO backend, like an in-house instances of SMO or different IDs. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base "service URI" that is used by this backend.search
(SearchRequest searchRequest) Methods inherited from class org.apache.maven.search.api.support.SearchBackendSupport
close, getBackendId, getRepositoryId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.search.api.SearchBackend
getBackendId, getRepositoryId
-
Constructor Details
-
RemoteRepositorySearchBackendImpl
public RemoteRepositorySearchBackendImpl(String backendId, String repositoryId, String baseUri, Transport transport, ResponseExtractor responseExtractor) Creates a customized instance of SMO backend, like an in-house instances of SMO or different IDs.
-
-
Method Details
-
getBaseUri
Description copied from interface:RemoteRepositorySearchBackend
Returns the base "service URI" that is used by this backend. nevernull
.- Specified by:
getBaseUri
in interfaceRemoteRepositorySearchBackend
-
search
Description copied from interface:SearchEngine
- Specified by:
search
in interfaceRemoteRepositorySearchBackend
- Specified by:
search
in interfaceSearchEngine
- Throws:
IOException
-