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 SummaryFieldsModifier 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.SearchBackendSupportbackendId, repositoryId
- 
Constructor SummaryConstructorsConstructorDescriptionSmoSearchBackendImpl(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 SummaryModifier 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.SearchBackendSupportclose, getBackendId, getRepositoryIdMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.search.api.SearchBackendgetBackendId, getRepositoryId
- 
Field Details- 
FIELD_TRANSLATION
- 
smoUri
- 
transport
- 
commonHeaders
- 
EC_SOURCE_JARprotected static final com.google.gson.JsonPrimitive EC_SOURCE_JAR
- 
EC_JAVADOC_JARprotected static final com.google.gson.JsonPrimitive EC_JAVADOC_JAR
 
- 
- 
Constructor Details
- 
Method Details- 
discoverVersion
- 
getSmoUriDescription copied from interface:SmoSearchBackendReturns the base "service URI" that is used by this SMO backend. nevernull.- Specified by:
- getSmoUriin interface- SmoSearchBackend
 
- 
searchDescription copied from interface:SearchEngine- Specified by:
- searchin interface- SearchEngine
- Specified by:
- searchin interface- SmoSearchBackend
- Throws:
- IOException
 
- 
toURI
- 
paging
- 
smoPaging
- 
cscPaging
- 
extra
- 
fetch- Throws:
- IOException
 
- 
toSMOQuery
- 
encodeQueryParameterValue
- 
populateFromRaw
- 
convert
- 
mayGet
- 
mayPut
 
-