Package org.ametys.cms.transformation
Class LocalURIResolver.URIInfo
- java.lang.Object
-
- org.ametys.cms.transformation.LocalURIResolver.URIInfo
-
- Enclosing class:
- LocalURIResolver
protected static class LocalURIResolver.URIInfo extends Object
Helper class containg all infos parsed from URI.
-
-
Field Summary
Fields Modifier and Type Field Description private Content_contentThe resolved content, if any.private String_contentIdThe content id.private String_contentVersionThe content version, if any.private String_metadataThe relevant attributeprivate String_pathThe path to the resource
-
Constructor Summary
Constructors Modifier Constructor Description protectedURIInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentgetContent()Returns the resolved content, if any.StringgetContentId()Returns the content id.StringgetContentVersion()Returns the content version, if any.StringgetMetadata()Returns the metadata.StringgetPath()Returns the resource path.voidsetContent(Content content)Set the content.voidsetContentId(String contentId)Set the content id.voidsetContentVersion(String contentVersion)Set the content version.voidsetMetadata(String metadata)Set the metadata.voidsetPath(String path)Set the resource path.
-
-
-
Field Detail
-
_contentId
private String _contentId
The content id.
-
_contentVersion
private String _contentVersion
The content version, if any.
-
-
Constructor Detail
-
URIInfo
protected URIInfo()
-
-
Method Detail
-
getContentId
public String getContentId()
Returns the content id.- Returns:
- the content id.
-
setContentId
public void setContentId(String contentId)
Set the content id.- Parameters:
contentId- the content id.
-
getMetadata
public String getMetadata()
Returns the metadata.- Returns:
- the metadata.
-
setMetadata
public void setMetadata(String metadata)
Set the metadata.- Parameters:
metadata- the metadata.
-
getContentVersion
public String getContentVersion()
Returns the content version, if any.- Returns:
- the content version.
-
setContentVersion
public void setContentVersion(String contentVersion)
Set the content version.- Parameters:
contentVersion- the content version.
-
getContent
public Content getContent()
Returns the resolved content, if any.- Returns:
- the content.
-
setContent
public void setContent(Content content)
Set the content.- Parameters:
content- the content.
-
-