public class SourceFetchConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowRawDocumentFetch |
java.lang.String |
customFetcherClass |
java.lang.String |
customFetcherUrl |
static boolean |
DEFAULT_ALLOW_RAW_DOCUMENT_FETCH |
java.lang.String |
fetchProtocol |
Constructor and Description |
---|
SourceFetchConfig() |
SourceFetchConfig(SourceFetchConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SourceFetchConfig.
|
static SourceFetchConfig |
fromString(java.lang.String s)
String representation of this SourceFetchConfig.
|
java.lang.String |
getCustomFetcherClass() |
java.lang.String |
getCustomFetcherUrl()
Base URL used for retrieving documents from this connector.
This is used for preview, thumbnails and raw fetch from the search results. For unmanaged connectors, this is always used. For managed connectors, if this parameter is given, it completely replaces the retriever within the connectors server. |
java.lang.String |
getFetchProtocol()
Protocol implemented by the
customFetcherURL .One of v1 , v2 , rpv3 , or networkRetriever |
boolean |
isAllowRawDocumentFetch() |
SourceFetchConfig |
makeCopy()
Creates and returns a deep copy of this SourceFetchConfig.
|
static SourceFetchConfig |
readFrom(java.io.InputStream is)
Read this SourceFetchConfig from an XML fragment.
|
void |
setAllowRawDocumentFetch(boolean allowRawDocumentFetch) |
void |
setCustomFetcherClass(java.lang.String customFetcherClass) |
void |
setCustomFetcherUrl(java.lang.String customFetcherUrl)
Base URL used for retrieving documents from this connector.
This is used for preview, thumbnails and raw fetch from the search results. For unmanaged connectors, this is always used. For managed connectors, if this parameter is given, it completely replaces the retriever within the connectors server. |
void |
setFetchProtocol(java.lang.String fetchProtocol)
Protocol implemented by the
customFetcherURL .One of v1 , v2 , rpv3 , or networkRetriever |
java.lang.String |
toString()
String representation of this SourceFetchConfig.
|
SourceFetchConfig |
withAllowRawDocumentFetch(boolean allowRawDocumentFetch) |
SourceFetchConfig |
withAllowRawDocumentFetch(java.lang.Boolean allowRawDocumentFetch) |
SourceFetchConfig |
withCustomFetcherClass(java.lang.String customFetcherClass) |
SourceFetchConfig |
withCustomFetcherUrl(java.lang.String customFetcherUrl) |
SourceFetchConfig |
withFetchProtocol(java.lang.String fetchProtocol) |
void |
writeTo(java.io.OutputStream os)
Write this SourceFetchConfig as an XML fragment
|
public boolean allowRawDocumentFetch
public static final boolean DEFAULT_ALLOW_RAW_DOCUMENT_FETCH
public java.lang.String customFetcherClass
public java.lang.String customFetcherUrl
public java.lang.String fetchProtocol
public SourceFetchConfig()
public SourceFetchConfig(SourceFetchConfig o)
public void setAllowRawDocumentFetch(boolean allowRawDocumentFetch)
public boolean isAllowRawDocumentFetch()
public SourceFetchConfig withAllowRawDocumentFetch(boolean allowRawDocumentFetch)
public SourceFetchConfig withAllowRawDocumentFetch(java.lang.Boolean allowRawDocumentFetch)
public void setCustomFetcherClass(java.lang.String customFetcherClass)
public java.lang.String getCustomFetcherClass()
public SourceFetchConfig withCustomFetcherClass(java.lang.String customFetcherClass)
public void setCustomFetcherUrl(java.lang.String customFetcherUrl)
public java.lang.String getCustomFetcherUrl()
public SourceFetchConfig withCustomFetcherUrl(java.lang.String customFetcherUrl)
public void setFetchProtocol(java.lang.String fetchProtocol)
customFetcherURL
.v1
, v2
, rpv3
, or networkRetriever
public java.lang.String getFetchProtocol()
customFetcherURL
.v1
, v2
, rpv3
, or networkRetriever
public SourceFetchConfig withFetchProtocol(java.lang.String fetchProtocol)
public SourceFetchConfig makeCopy()
public static SourceFetchConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static SourceFetchConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.