@Experimental @Generated @ThreadSafe @Immutable public class Site extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Site.Builder
Builder class used to create Site instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getChildSiteUrlInheritAppendPath()
When children inherit from distribution management site url, append path or not? Note: While the type
of this field is
String for technical reasons, the semantic type is actually
Boolean
Default value is: true
Since: Maven 3.6.1 |
String |
getId()
A unique identifier for a deployment location.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
Human readable name of the deployment location.
|
String |
getUrl()
The url of the location where website is deployed, in the form
protocol://hostname/path . |
boolean |
isChildSiteUrlInheritAppendPath() |
static Site.Builder |
newBuilder()
Creates a new
Site builder instance. |
static Site.Builder |
newBuilder(boolean withDefaults)
Creates a new
Site builder instance using default values or not. |
static Site.Builder |
newBuilder(Site from)
Creates a new
Site builder instance using the specified object as a basis. |
static Site.Builder |
newBuilder(Site from,
boolean forceCopy)
Creates a new
Site builder instance using the specified object as a basis. |
static Site |
newInstance()
Creates a new
Site instance. |
static Site |
newInstance(boolean withDefaults)
Creates a new
Site instance using default values or not. |
Site.Builder |
with()
Creates a new builder with this object as the basis.
|
Site |
withChildSiteUrlInheritAppendPath(String childSiteUrlInheritAppendPath)
Creates a new
Site instance using the specified childSiteUrlInheritAppendPath. |
Site |
withId(String id)
Creates a new
Site instance using the specified id. |
Site |
withName(String name)
Creates a new
Site instance using the specified name. |
Site |
withUrl(String url)
Creates a new
Site instance using the specified url. |
public String getId()
settings.xml
file, for example.String
public String getName()
String
public String getUrl()
protocol://hostname/path
.
child.site.url.inherit.append.path="false"
String
public String getChildSiteUrlInheritAppendPath()
String
for technical reasons, the semantic type is actually
Boolean
true
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public Site.Builder with()
Builder
@Nonnull public Site withId(String id)
Site
instance using the specified id.id
- the new String
to useSite
with the specified id@Nonnull public Site withName(String name)
Site
instance using the specified name.name
- the new String
to useSite
with the specified name@Nonnull public Site withUrl(String url)
Site
instance using the specified url.url
- the new String
to useSite
with the specified url@Nonnull public Site withChildSiteUrlInheritAppendPath(String childSiteUrlInheritAppendPath)
Site
instance using the specified childSiteUrlInheritAppendPath.childSiteUrlInheritAppendPath
- the new String
to useSite
with the specified childSiteUrlInheritAppendPath@Nonnull public static Site newInstance()
Site
instance.
Equivalent to newInstance( true )
.Site
newInstance(boolean)
@Nonnull public static Site newInstance(boolean withDefaults)
Site
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedSite
@Nonnull public static Site.Builder newBuilder()
Site
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Site.Builder newBuilder(boolean withDefaults)
Site
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Site.Builder newBuilder(Site from)
Site
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Site
instance to use as a basisBuilder
@Nonnull public static Site.Builder newBuilder(Site from, boolean forceCopy)
Site
builder instance using the specified object as a basis.from
- the Site
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public boolean isChildSiteUrlInheritAppendPath()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.