net.larsan.norna
Interface Environment


public interface Environment

The environment is a helper interface used by the framework to inform its services about the runtime environment.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson

Method Summary
 java.lang.String getNamespace()
          Get the framework namespace.
 java.lang.String getRootAddress()
          Get the root address on which the framework is installed.
 int getRootPort()
          Get the root port number fro the local framework.
 

Method Detail

getNamespace

public java.lang.String getNamespace()
Get the framework namespace. The namespace is the base of the framewrk or and starts with the prefix 'norna', for example:
       norna://webhost/
 

Returns:
the Framework namespace name

getRootAddress

public java.lang.String getRootAddress()
Get the root address on which the framework is installed. This is the address that appear in all Norna URLs and can be either an IP address or a host name.
       norna://webhost/1/calculator
 
In the address a bove "webhost" is the root address of the framework installation.

Returns:
The root address

getRootPort

public int getRootPort()
Get the root port number fro the local framework. This is an optional element in the framework addressing system. and if no port is specified the default port 8666 is asumed.
      norna://webhost:8666/services/calculator
 

Returns:
The framework root port