jet.server.api.http
Interface CustomizedServerEnv


public interface CustomizedServerEnv

The CustomizedServerEnv is uesed to customize JReport self-contained server startup environment. The startup environment includes JReport server reporthome and server's propterties, i.e. the contents of ${reporthome}/bin/server.properties.

This class should be implemented by users if they want to control JREntServer's reporthome and server properties.

The name of this class should be pass to JReport server with key jreport.servenv before JReport self-contained server initializing.

Users could set this class by VM -D parameter, or by put into the Properties when invoking HttpUtil.initEnv(), or by configure in web.xml or ejb-jar.xml


Field Summary
static java.lang.String CLASS_NAME
          The environment name that indicates the class name of user implemented CustomizedServerEnv.
 
Method Summary
 java.lang.String getReportHome()
          Gets the customized JReport server report home.
 java.util.Properties getServerProperties()
          Gets the properties which users want to merge to server.properties file.
 

Field Detail

CLASS_NAME

static final java.lang.String CLASS_NAME
The environment name that indicates the class name of user implemented CustomizedServerEnv.

See Also:
Constant Field Values
Method Detail

getReportHome

java.lang.String getReportHome()
Gets the customized JReport server report home.

It could be a blank folder in the file system, and it should has privilages of read and write.

It could be null, that say, did not specifiy reporthome for JReport server, then the JReport server will use '${user.home}/.jreport' as default reporthome.

Returns:
the report home for JReport server

getServerProperties

java.util.Properties getServerProperties()
Gets the properties which users want to merge to server.properties file.

All properties in this Properties will be merged into server.properties file before JReport server startup.

Returns:
the Properties. It could be null, then nothing will be specified for JReport server.