org.silverpeas.contribution.web
Class AbstractContentEntity
java.lang.Object
org.silverpeas.contribution.web.AbstractContentEntity
- All Implemented Interfaces:
- Exposable, Serializable
- Direct Known Subclasses:
- FormEntity
public abstract class AbstractContentEntity
- extends Object
- implements Exposable
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
Method Summary |
protected String |
getType()
|
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
|
withURI(URI uri)
Sets a URI to this entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentEntity
protected AbstractContentEntity(String type)
- Default hidden constructor.
AbstractContentEntity
protected AbstractContentEntity()
withURI
public <T> T withURI(URI uri)
- Sets a URI to this entity. With this URI, it can then be accessed through the Web.
- Parameters:
uri
- the web entity URI.
- Returns:
- itself.
getURI
public URI getURI()
- Description copied from interface:
Exposable
- Gets the URI at which this resource is published and can be accessed.
- Specified by:
getURI
in interface Exposable
- Returns:
- the web resource URI.
getType
protected String getType()
Copyright © 2016 Silverpeas. All Rights Reserved.