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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Site instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSite(Site.Builder builder) Constructor for this class, to be called from its subclasses andSite.Builder.
- 
Method SummaryModifier and TypeMethodDescriptionWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBooleangetId()A unique identifier for a deployment location.Gets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of 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.booleanstatic Site.BuilderCreates a newSitebuilder instance.static Site.BuildernewBuilder(boolean withDefaults) Creates a newSitebuilder instance using default values or not.static Site.BuildernewBuilder(Site from) Creates a newSitebuilder instance using the specified object as a basis.static Site.BuildernewBuilder(Site from, boolean forceCopy) Creates a newSitebuilder instance using the specified object as a basis.static SiteCreates a newSiteinstance.static SitenewInstance(boolean withDefaults) Creates a newSiteinstance using default values or not.with()Creates a new builder with this object as the basis.withChildSiteUrlInheritAppendPath(String childSiteUrlInheritAppendPath) Creates a newSiteinstance using the specified childSiteUrlInheritAppendPath.Creates a newSiteinstance using the specified id.Creates a newSiteinstance using the specified name.Creates a newSiteinstance using the specified url.
- 
Constructor Details- 
SiteConstructor for this class, to be called from its subclasses andSite.Builder.- See Also:
 
 
- 
- 
Method Details- 
getIdA unique identifier for a deployment location. This is used to match the site to configuration in thesettings.xmlfile, for example.- Returns:
- a String
 
- 
getNameHuman readable name of the deployment location.- Returns:
- a String
 
- 
getUrlThe 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's child.site.url.inherit.append.path="false".- Returns:
- a String
 
- 
getChildSiteUrlInheritAppendPathWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBooleanDefault value is: true- Returns:
- a String
- Since:
- Maven 3.6.1
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
getLocationKeysGets the keys of the locations of the input source.
- 
getImportedFromGets the input location that caused this model to be read.- Specified by:
- getImportedFromin interface- InputLocationTracker
- Returns:
- InputLocation
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withIdCreates a newSiteinstance using the specified id.- Parameters:
- id- the new- Stringto use
- Returns:
- a Sitewith the specified id
 
- 
withNameCreates a newSiteinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a Sitewith the specified name
 
- 
withUrlCreates a newSiteinstance using the specified url.- Parameters:
- url- the new- Stringto use
- Returns:
- a Sitewith the specified url
 
- 
withChildSiteUrlInheritAppendPathCreates a newSiteinstance using the specified childSiteUrlInheritAppendPath.- Parameters:
- childSiteUrlInheritAppendPath- the new- Stringto use
- Returns:
- a Sitewith the specified childSiteUrlInheritAppendPath
 
- 
newInstanceCreates a newSiteinstance. Equivalent tonewInstance(true).- Returns:
- a new Site
- See Also:
 
- 
newInstanceCreates a newSiteinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Site
 
- 
newBuilderCreates a newSitebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newSitebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newSitebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Siteinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newSitebuilder instance using the specified object as a basis.- Parameters:
- from- the- Siteinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
isChildSiteUrlInheritAppendPathpublic boolean isChildSiteUrlInheritAppendPath()
 
-