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
_content
The resolved content, if any.private String
_contentId
The content id.private String
_contentVersion
The content version, if any.private String
_metadata
The relevant attributeprivate String
_path
The path to the resource
-
Constructor Summary
Constructors Modifier Constructor Description protected
URIInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content
getContent()
Returns the resolved content, if any.String
getContentId()
Returns the content id.String
getContentVersion()
Returns the content version, if any.String
getMetadata()
Returns the metadata.String
getPath()
Returns the resource path.void
setContent(Content content)
Set the content.void
setContentId(String contentId)
Set the content id.void
setContentVersion(String contentVersion)
Set the content version.void
setMetadata(String metadata)
Set the metadata.void
setPath(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.
-
-