public class Source extends ISource implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Source.Roots
Java class for anonymous complex type.
|
ISource.MimeTypes, ISource.QueryParameterBlacklist, ISource.Rules
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
indexRedirectSources |
protected Source.Roots |
roots |
protected java.lang.Boolean |
smartRefresh |
protected java.lang.Integer |
smartRefreshDelayS |
defaultFollow, defaultFollowRoots, defaultIndex, disableConditionalGet, enableSimpleSiteCollapsing, fetcher, keyValue, mimeTypes, mimeTypesMode, name, queryParameterBlacklist, rules, simpleSiteCollapsingDepth
Constructor and Description |
---|
Source()
Creates a new
Source instance. |
Source(Source o)
Creates a new
Source instance by deeply copying a given Source instance. |
Modifier and Type | Method and Description |
---|---|
Source |
clone()
Creates and returns a deep copy of this object.
|
Source.Roots |
getRoots()
A list of root urls.
|
int |
getSmartRefreshDelayS()
Age in milli seconds at which we begin to smart refresh old urls.
|
boolean |
isIndexRedirectSources()
Whether to index redirections with target data.
|
boolean |
isSmartRefresh()
Whether to crawl a fraction of refreshed urls.
|
void |
setIndexRedirectSources(java.lang.Boolean value)
Sets the value of the indexRedirectSources property.
|
void |
setRoots(Source.Roots value)
Sets the value of the roots property.
|
void |
setSmartRefresh(java.lang.Boolean value)
Sets the value of the smartRefresh property.
|
void |
setSmartRefreshDelayS(java.lang.Integer value)
Sets the value of the smartRefreshDelayS property.
|
Source |
withDefaultFollow(java.lang.Boolean value) |
Source |
withDefaultFollowRoots(java.lang.Boolean value) |
Source |
withDefaultIndex(java.lang.Boolean value) |
Source |
withDisableConditionalGet(java.lang.Boolean value) |
Source |
withEnableSimpleSiteCollapsing(java.lang.Boolean value) |
Source |
withFetcher(java.lang.String value) |
Source |
withIndexRedirectSources(java.lang.Boolean value) |
Source |
withKeyValue(java.util.Collection<KeyValue> values) |
Source |
withKeyValue(KeyValue... values) |
Source |
withMimeTypes(ISource.MimeTypes value) |
Source |
withMimeTypesMode(java.lang.String value) |
Source |
withName(java.lang.String value) |
Source |
withQueryParameterBlacklist(ISource.QueryParameterBlacklist value) |
Source |
withRoots(Source.Roots value) |
Source |
withRules(ISource.Rules value) |
Source |
withSimpleSiteCollapsingDepth(java.lang.Long value) |
Source |
withSmartRefresh(java.lang.Boolean value) |
Source |
withSmartRefreshDelayS(java.lang.Integer value) |
getFetcher, getKeyValue, getMimeTypes, getMimeTypesMode, getName, getQueryParameterBlacklist, getRules, getSimpleSiteCollapsingDepth, isDefaultFollow, isDefaultFollowRoots, isDefaultIndex, isDisableConditionalGet, isEnableSimpleSiteCollapsing, setDefaultFollow, setDefaultFollowRoots, setDefaultIndex, setDisableConditionalGet, setEnableSimpleSiteCollapsing, setFetcher, setMimeTypes, setMimeTypesMode, setName, setQueryParameterBlacklist, setRules, setSimpleSiteCollapsingDepth
protected Source.Roots roots
protected java.lang.Boolean smartRefresh
protected java.lang.Integer smartRefreshDelayS
protected java.lang.Boolean indexRedirectSources
public Source()
Source
instance.public Source(Source o)
Source
instance by deeply copying a given Source
instance.o
- The instance to copy.java.lang.NullPointerException
- if o
is null
.public Source.Roots getRoots()
Source.Roots
public void setRoots(Source.Roots value)
value
- allowed object is
Source.Roots
public boolean isSmartRefresh()
Boolean
public void setSmartRefresh(java.lang.Boolean value)
value
- allowed object is
Boolean
public int getSmartRefreshDelayS()
Integer
public void setSmartRefreshDelayS(java.lang.Integer value)
value
- allowed object is
Integer
public boolean isIndexRedirectSources()
Boolean
public void setIndexRedirectSources(java.lang.Boolean value)
value
- allowed object is
Boolean
public Source withRoots(Source.Roots value)
public Source withSmartRefresh(java.lang.Boolean value)
public Source withSmartRefreshDelayS(java.lang.Integer value)
public Source withIndexRedirectSources(java.lang.Boolean value)
public Source withKeyValue(KeyValue... values)
withKeyValue
in class ISource
public Source withKeyValue(java.util.Collection<KeyValue> values)
withKeyValue
in class ISource
public Source withRules(ISource.Rules value)
public Source withMimeTypes(ISource.MimeTypes value)
withMimeTypes
in class ISource
public Source withQueryParameterBlacklist(ISource.QueryParameterBlacklist value)
withQueryParameterBlacklist
in class ISource
public Source withFetcher(java.lang.String value)
withFetcher
in class ISource
public Source withDisableConditionalGet(java.lang.Boolean value)
withDisableConditionalGet
in class ISource
public Source withDefaultIndex(java.lang.Boolean value)
withDefaultIndex
in class ISource
public Source withDefaultFollow(java.lang.Boolean value)
withDefaultFollow
in class ISource
public Source withDefaultFollowRoots(java.lang.Boolean value)
withDefaultFollowRoots
in class ISource
public Source withEnableSimpleSiteCollapsing(java.lang.Boolean value)
withEnableSimpleSiteCollapsing
in class ISource
public Source withSimpleSiteCollapsingDepth(java.lang.Long value)
withSimpleSiteCollapsingDepth
in class ISource
public Source withMimeTypesMode(java.lang.String value)
withMimeTypesMode
in class ISource
Copyright © 2021 Dassault Systèmes, All Rights Reserved.