public class FetchConfig
extends exa.bee.config.Versioned
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
FetchConfig.Mimes
Java class for anonymous complex type.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultFetcher |
protected java.lang.Integer |
defaultMaxSizeKB |
protected java.lang.Boolean |
defaultTruncate |
protected java.lang.String |
dnsServer |
protected java.util.List<Fetcher> |
fetcher |
protected java.lang.Integer |
fullDocumentMaxSizeKB |
protected FetchConfig.Mimes |
mimes |
Constructor and Description |
---|
FetchConfig()
Creates a new
FetchConfig instance. |
FetchConfig(FetchConfig o)
Creates a new
FetchConfig instance by deeply copying a given FetchConfig instance. |
Modifier and Type | Method and Description |
---|---|
FetchConfig |
clone()
Creates and returns a deep copy of this object.
|
java.lang.String |
getDefaultFetcher()
(default: null)
|
int |
getDefaultMaxSizeKB()
(default: 0)
|
java.lang.String |
getDnsServer()
(default: null)
|
java.util.List<Fetcher> |
getFetcher()
Gets the value of the fetcher property.
|
int |
getFullDocumentMaxSizeKB()
(default: 32768)
|
FetchConfig.Mimes |
getMimes()
Gets the value of the mimes property.
|
boolean |
isDefaultTruncate()
(default: false)
|
void |
setDefaultFetcher(java.lang.String value)
Sets the value of the defaultFetcher property.
|
void |
setDefaultMaxSizeKB(java.lang.Integer value)
Sets the value of the defaultMaxSizeKB property.
|
void |
setDefaultTruncate(java.lang.Boolean value)
Sets the value of the defaultTruncate property.
|
void |
setDnsServer(java.lang.String value)
Sets the value of the dnsServer property.
|
void |
setFullDocumentMaxSizeKB(java.lang.Integer value)
Sets the value of the fullDocumentMaxSizeKB property.
|
void |
setMimes(FetchConfig.Mimes value)
Sets the value of the mimes property.
|
FetchConfig |
withDefaultFetcher(java.lang.String value) |
FetchConfig |
withDefaultMaxSizeKB(java.lang.Integer value) |
FetchConfig |
withDefaultTruncate(java.lang.Boolean value) |
FetchConfig |
withDnsServer(java.lang.String value) |
FetchConfig |
withFetcher(java.util.Collection<Fetcher> values) |
FetchConfig |
withFetcher(Fetcher... values) |
FetchConfig |
withFullDocumentMaxSizeKB(java.lang.Integer value) |
FetchConfig |
withMimes(FetchConfig.Mimes value) |
FetchConfig |
withVersion(java.lang.Long value) |
protected java.util.List<Fetcher> fetcher
protected FetchConfig.Mimes mimes
protected java.lang.String defaultFetcher
protected java.lang.String dnsServer
protected java.lang.Integer defaultMaxSizeKB
protected java.lang.Boolean defaultTruncate
protected java.lang.Integer fullDocumentMaxSizeKB
public FetchConfig()
FetchConfig
instance.public FetchConfig(FetchConfig o)
FetchConfig
instance by deeply copying a given FetchConfig
instance.o
- The instance to copy.java.lang.NullPointerException
- if o
is null
.public java.util.List<Fetcher> getFetcher()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the fetcher property.
For example, to add a new item, do as follows:
getFetcher().add(newItem);
Objects of the following type(s) are allowed in the list
Fetcher
public FetchConfig.Mimes getMimes()
FetchConfig.Mimes
public void setMimes(FetchConfig.Mimes value)
value
- allowed object is
FetchConfig.Mimes
public java.lang.String getDefaultFetcher()
String
public void setDefaultFetcher(java.lang.String value)
value
- allowed object is
String
public java.lang.String getDnsServer()
String
public void setDnsServer(java.lang.String value)
value
- allowed object is
String
public int getDefaultMaxSizeKB()
Integer
public void setDefaultMaxSizeKB(java.lang.Integer value)
value
- allowed object is
Integer
public boolean isDefaultTruncate()
Boolean
public void setDefaultTruncate(java.lang.Boolean value)
value
- allowed object is
Boolean
public int getFullDocumentMaxSizeKB()
Integer
public void setFullDocumentMaxSizeKB(java.lang.Integer value)
value
- allowed object is
Integer
public FetchConfig withFetcher(Fetcher... values)
public FetchConfig withFetcher(java.util.Collection<Fetcher> values)
public FetchConfig withMimes(FetchConfig.Mimes value)
public FetchConfig withDefaultFetcher(java.lang.String value)
public FetchConfig withDnsServer(java.lang.String value)
public FetchConfig withDefaultMaxSizeKB(java.lang.Integer value)
public FetchConfig withDefaultTruncate(java.lang.Boolean value)
public FetchConfig withFullDocumentMaxSizeKB(java.lang.Integer value)
public FetchConfig withVersion(java.lang.Long value)
withVersion
in class exa.bee.config.Versioned
public FetchConfig clone()
clone
in class exa.bee.config.Versioned
Copyright © 2021 Dassault Systèmes, All Rights Reserved.