Class RemoteRepositorySearchBackendImpl
java.lang.Object
org.apache.maven.search.support.SearchBackendSupport
org.apache.maven.search.backend.remoterepository.internal.RemoteRepositorySearchBackendImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,RemoteRepositorySearchBackend,SearchBackend,SearchEngine
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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRemoteRepositorySearchBackendImpl(String backendId, String repositoryId, String baseUri, RemoteRepositorySearchTransport 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.support.SearchBackendSupport
close, getBackendId, getRepositoryIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.search.SearchBackend
getBackendId, getRepositoryId
-
Constructor Details
-
RemoteRepositorySearchBackendImpl
public RemoteRepositorySearchBackendImpl(String backendId, String repositoryId, String baseUri, RemoteRepositorySearchTransport 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:RemoteRepositorySearchBackendReturns the base "service URI" that is used by this backend. nevernull.- Specified by:
getBaseUriin interfaceRemoteRepositorySearchBackend
-
search
Description copied from interface:SearchEngine- Specified by:
searchin interfaceRemoteRepositorySearchBackend- Specified by:
searchin interfaceSearchEngine- Throws:
IOException
-