eu.beesoft.abeona
Class LicenseServer

java.lang.Object
  extended by eu.beesoft.abeona.LicenseServer

public abstract class LicenseServer
extends java.lang.Object

This is abstract superclass for license server. It uses HTTP for data transfer, port is configurable.
You must serve method getProperties(String, String) in your implementation. This method is invoked from client License.load(String, String, String, String) method.


Constructor Summary
LicenseServer()
          Creates new instance of LicenseServer.
 
Method Summary
protected abstract  java.util.Properties getProperties(java.lang.String application, java.lang.String user)
          Returns properties for license client.
 boolean isRunning()
          Checks whether server is running.
 void start(int port)
          Starts license server and creates socket for given port.
 void stop()
          Stops license server and releases socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseServer

public LicenseServer()
Creates new instance of LicenseServer.

Method Detail

isRunning

public boolean isRunning()
Checks whether server is running.

Returns:
true if server is running

start

public void start(int port)
Starts license server and creates socket for given port.

Parameters:
port - Port number (1 - 9999) to listening license clients.

stop

public void stop()
Stops license server and releases socket.


getProperties

protected abstract java.util.Properties getProperties(java.lang.String application,
                                                      java.lang.String user)
Returns properties for license client. The only one method you need to server for LicenseServer.

Parameters:
application - A name of the application properties are requested for
user - System user name who requests license properties
Returns:
Properties for client license