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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
URIInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttribute()
Returns the metadata.Content
getContent()
Returns the resolved content, if any.String
getContentId()
Returns the content id.String
getContentVersion()
Returns the content version, if any.String
getFilename()
Returns the resource name.void
setAttribute(String attribute)
Set the metadata.void
setContent(Content content)
Set the content.void
setContentId(String contentId)
Set the content id.void
setContentVersion(String contentVersion)
Set the content version.void
setFilename(String name)
Set the resource name.
-
-
-
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.
-
getAttribute
public String getAttribute()
Returns the metadata.- Returns:
- the metadata.
-
setAttribute
public void setAttribute(String attribute)
Set the metadata.- Parameters:
attribute
- the metadata.
-
getFilename
public String getFilename()
Returns the resource name.- Returns:
- the name
-
setFilename
public void setFilename(String name)
Set the resource name.- Parameters:
name
- the name.
-
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.
-
-