Class SmoSearchBackendImpl
java.lang.Object
org.apache.maven.search.api.support.SearchBackendSupport
org.apache.maven.search.backend.smo.internal.SmoSearchBackendImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,SearchBackend,SearchEngine,SmoSearchBackend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.google.gson.JsonPrimitiveprotected static final com.google.gson.JsonPrimitiveprotected final Stringprotected final TransportFields inherited from class org.apache.maven.search.api.support.SearchBackendSupport
backendId, repositoryId -
Constructor Summary
ConstructorsConstructorDescriptionSmoSearchBackendImpl(String backendId, String repositoryId, String smoUri, Transport transport) Creates a customized instance of SMO backend, like an in-house instances of SMO or different IDs. -
Method Summary
Modifier and TypeMethodDescriptionprotected Recordconvert(com.google.gson.JsonObject doc) protected StringcscPaging(SearchRequest searchRequest, HashSet<Field> searchedFields) protected Stringprotected StringencodeQueryParameterValue(String parameterValue) protected Stringextra(SearchRequest searchRequest, HashSet<Field> searchedFields) protected StringReturns the base "service URI" that is used by this SMO backend.protected static Stringprotected static voidprotected Stringpaging(SearchRequest searchRequest, HashSet<Field> searchedFields) protected intpopulateFromRaw(com.google.gson.JsonObject raw, List<Record> page) search(SearchRequest searchRequest) protected StringsmoPaging(SearchRequest searchRequest, HashSet<Field> searchedFields) protected StringtoSMOQuery(HashSet<Field> searchedFields, Query query) protected StringtoURI(SearchRequest searchRequest) Methods inherited from class org.apache.maven.search.api.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.api.SearchBackend
getBackendId, getRepositoryId
-
Field Details
-
FIELD_TRANSLATION
-
smoUri
-
transport
-
commonHeaders
-
EC_SOURCE_JAR
protected static final com.google.gson.JsonPrimitive EC_SOURCE_JAR -
EC_JAVADOC_JAR
protected static final com.google.gson.JsonPrimitive EC_JAVADOC_JAR
-
-
Constructor Details
-
Method Details
-
discoverVersion
-
getSmoUri
Description copied from interface:SmoSearchBackendReturns the base "service URI" that is used by this SMO backend. nevernull.- Specified by:
getSmoUriin interfaceSmoSearchBackend
-
search
Description copied from interface:SearchEngine- Specified by:
searchin interfaceSearchEngine- Specified by:
searchin interfaceSmoSearchBackend- Throws:
IOException
-
toURI
-
paging
-
smoPaging
-
cscPaging
-
extra
-
fetch
- Throws:
IOException
-
toSMOQuery
-
encodeQueryParameterValue
-
populateFromRaw
-
convert
-
mayGet
-
mayPut
-