Class LoggerConfigurationEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.util.logging.LoggerConfigurationEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class LoggerConfigurationEntity extends Object implements WebEntity
Web entity used to carries the configuration of a given logger between a client and a REST resource.- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARENT_LEVEL
Constant that defines the level of a logger is the one of one of its parent.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LoggerConfigurationEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLevel()
String
getLogger()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration
toLoggerConfiguration()
static LoggerConfigurationEntity
toWebEntity(org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration configuration)
Constructs from the specified logger configuration its Web entity representation ready to be serialized in a given format (MIME type).LoggerConfigurationEntity
withAsURi(URI uri)
-
-
-
Field Detail
-
PARENT_LEVEL
public static final String PARENT_LEVEL
Constant that defines the level of a logger is the one of one of its parent. It is defaulted to one of its parent logger.- See Also:
- Constant Field Values
-
-
Method Detail
-
toWebEntity
public static LoggerConfigurationEntity toWebEntity(org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration configuration)
Constructs from the specified logger configuration its Web entity representation ready to be serialized in a given format (MIME type).- Parameters:
configuration
- a logger configuration.- Returns:
- the Web entity representation of the logger configuration.
-
withAsURi
public LoggerConfigurationEntity withAsURi(URI uri)
-
getURI
public URI getURI()
Gets the URI at which this web entity is published and can be accessed.
-
getLogger
public String getLogger()
-
getLevel
public String getLevel()
-
toLoggerConfiguration
public org.silverpeas.kernel.logging.LoggerConfigurationManager.LoggerConfiguration toLoggerConfiguration()
-
-