Creating a Class for Your Provider

Create a class file that implements the IRequestsProvider interface or the IDeployUnitsProvider interface.  

Authentication information is kept inside the ISessionData structure and is populated before each initialization of providers. You can keep session-sensitive data using setAttribute and getAttribute methods in ISessionData.

See the Java documentation for more information about methods.

Examples

A snippet of the Java code that creates a simple file system class by implementing the IRequestsProvider interface is shown in the following figure.

com.serena.rlm.provider.fs.FSRequestsProvider

public class FSRequestsProvider extends FSCustomProvider implements IRequestsProvider {

 

   private String requestsFile;

A snippet of the Java code that creates a simple file system class by implementing the IDeployUnitsProvider interface is shown in the following figure.

com.serena.rlm.provider.fs.FSDeployUnitsProvider

public class FSDeployUnitsProvider extends FSCustomProvider implements IDeployUnitsProvider {

 

   private String depunitsFile;

   private String stagesFile;

   private String depareaFile;