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.JsonPrimitive
protected static final com.google.gson.JsonPrimitive
protected final String
protected final Transport
Fields 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 Record
convert
(com.google.gson.JsonObject doc) protected String
cscPaging
(SearchRequest searchRequest, HashSet<Field> searchedFields) protected String
protected String
encodeQueryParameterValue
(String parameterValue) protected String
extra
(SearchRequest searchRequest, HashSet<Field> searchedFields) protected String
Returns the base "service URI" that is used by this SMO backend.protected static String
protected static void
protected String
paging
(SearchRequest searchRequest, HashSet<Field> searchedFields) protected int
populateFromRaw
(com.google.gson.JsonObject raw, List<Record> page) search
(SearchRequest searchRequest) protected String
smoPaging
(SearchRequest searchRequest, HashSet<Field> searchedFields) protected String
toSMOQuery
(HashSet<Field> searchedFields, Query query) protected String
toURI
(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
-
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:SmoSearchBackend
Returns the base "service URI" that is used by this SMO backend. nevernull
.- Specified by:
getSmoUri
in interfaceSmoSearchBackend
-
search
Description copied from interface:SearchEngine
- Specified by:
search
in interfaceSearchEngine
- Specified by:
search
in interfaceSmoSearchBackend
- Throws:
IOException
-
toURI
-
paging
-
smoPaging
-
cscPaging
-
extra
-
fetch
- Throws:
IOException
-
toSMOQuery
-
encodeQueryParameterValue
-
populateFromRaw
-
convert
-
mayGet
-
mayPut
-