Package org.apache.maven.api.model
Class Site
java.lang.Object
org.apache.maven.api.model.Site
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Site
extends Object
implements Serializable, InputLocationTracker
Contains the information needed for deploying websites.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Site instances. -
Method Summary
Modifier and TypeMethodDescriptionWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1getId()
A unique identifier for a deployment location.getLocation
(Object key) Gets the location of the specified field in the input source.getName()
Human readable name of the deployment location.getUrl()
The url of the location where website is deployed, in the formprotocol://hostname/path
.boolean
static Site.Builder
Creates a newSite
builder instance.static Site.Builder
newBuilder
(boolean withDefaults) Creates a newSite
builder instance using default values or not.static Site.Builder
newBuilder
(Site from) Creates a newSite
builder instance using the specified object as a basis.static Site.Builder
newBuilder
(Site from, boolean forceCopy) Creates a newSite
builder instance using the specified object as a basis.static Site
Creates a newSite
instance.static Site
newInstance
(boolean withDefaults) Creates a newSite
instance using default values or not.with()
Creates a new builder with this object as the basis.withChildSiteUrlInheritAppendPath
(String childSiteUrlInheritAppendPath) Creates a newSite
instance using the specified childSiteUrlInheritAppendPath.Creates a newSite
instance using the specified id.Creates a newSite
instance using the specified name.Creates a newSite
instance using the specified url.
-
Method Details
-
getId
A unique identifier for a deployment location. This is used to match the site to configuration in thesettings.xml
file, for example.- Returns:
- a
String
-
getName
Human readable name of the deployment location.- Returns:
- a
String
-
getUrl
The url of the location where website is deployed, in the formprotocol://hostname/path
.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if site'schild.site.url.inherit.append.path="false"
- Returns:
- a
String
-
getChildSiteUrlInheritAppendPath
When children inherit from distribution management site url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:true
Since: Maven 3.6.1- Returns:
- a
String
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withId
Creates a newSite
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
Site
with the specified id
-
withName
Creates a newSite
instance using the specified name.- Parameters:
name
- the newString
to use- Returns:
- a
Site
with the specified name
-
withUrl
Creates a newSite
instance using the specified url.- Parameters:
url
- the newString
to use- Returns:
- a
Site
with the specified url
-
withChildSiteUrlInheritAppendPath
Creates a newSite
instance using the specified childSiteUrlInheritAppendPath.- Parameters:
childSiteUrlInheritAppendPath
- the newString
to use- Returns:
- a
Site
with the specified childSiteUrlInheritAppendPath
-
newInstance
Creates a newSite
instance. Equivalent tonewInstance( true )
.- Returns:
- a new
Site
- See Also:
-
newInstance
Creates a newSite
instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Site
-
newBuilder
Creates a newSite
builder instance. Equivalent tonewBuilder( true )
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newSite
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newSite
builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
.- Parameters:
from
- theSite
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newSite
builder instance using the specified object as a basis.- Parameters:
from
- theSite
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
isChildSiteUrlInheritAppendPath
public boolean isChildSiteUrlInheritAppendPath()
-