Class DefaultReportEnvironment
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.DefaultReportEnvironment
-
- All Implemented Interfaces:
Serializable
,Cloneable
,ReportEnvironment
public class DefaultReportEnvironment extends Object implements ReportEnvironment
A simple implementation that provides static environmental information. The environment properties are mapped against the global report configuration.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENVIRONMENT_KEY
static String
ENVIRONMENT_TYPE
-
Constructor Summary
Constructors Constructor Description DefaultReportEnvironment(org.pentaho.reporting.libraries.base.config.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Object
getEnvironmentProperty(String key)
Returns a environment property.Locale
getLocale()
TimeZone
getTimeZone()
String
getURLEncoding()
Returns the text encoding that should be used to encode URLs.Map<String,String[]>
getUrlExtraParameter()
void
setLocale(Locale locale)
void
setTimeZone(TimeZone timeZone)
void
update(org.pentaho.reporting.libraries.base.config.Configuration configuration)
-
-
-
Field Detail
-
ENVIRONMENT_KEY
public static final String ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
ENVIRONMENT_TYPE
public static final String ENVIRONMENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEnvironmentProperty
public Object getEnvironmentProperty(String key)
Description copied from interface:ReportEnvironment
Returns a environment property. These properties are usually defined by the outside world, but default values can be specified inside the report-definition.- Specified by:
getEnvironmentProperty
in interfaceReportEnvironment
- Returns:
-
getURLEncoding
public String getURLEncoding()
Returns the text encoding that should be used to encode URLs.- Specified by:
getURLEncoding
in interfaceReportEnvironment
- Returns:
- the encoding for URLs.
-
update
public void update(org.pentaho.reporting.libraries.base.config.Configuration configuration)
-
setLocale
public void setLocale(Locale locale)
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceReportEnvironment
-
getTimeZone
public TimeZone getTimeZone()
- Specified by:
getTimeZone
in interfaceReportEnvironment
-
clone
public Object clone()
- Specified by:
clone
in interfaceReportEnvironment
- Overrides:
clone
in classObject
-
getUrlExtraParameter
public Map<String,String[]> getUrlExtraParameter()
- Specified by:
getUrlExtraParameter
in interfaceReportEnvironment
-
-