com.pcbsys.nirvana.base.nRealm Class Reference

This class represents a nirvana Realm. More...

Inherits fExternalable, and SortedObject.

Public Member Functions

Vector< fConnectionDetails > getConnections ()
 Gets the collection of the network interfaces this realm listens in. More...
 
String getHostVal ()
 
int getHTTPPortVal ()
 
int getPortVal ()
 
 nRealm ()
 Default constructor.
 
 nRealm (String pName, String[] connections) throws fException
 Constructs a new nRealm object with the specified name and collection of network interfaces. More...
 
 nRealm (String pName, Vector connections) throws fException
 Constructs a new nRealm object with the specified name and collection of network interfaces. More...
 
void readExternal (fEventInputStream ois) throws IOException
 Reads the object from an external Event InputStream. More...
 
void writeExternal (fEventOutputStream oos) throws IOException
 Writes the object to an external Event OutputStream. More...
 

Detailed Description

This class represents a nirvana Realm.

Constructor & Destructor Documentation

com.pcbsys.nirvana.base.nRealm.nRealm ( String  pName,
String[]  connections 
) throws fException

Constructs a new nRealm object with the specified name and collection of network interfaces.

Parameters
pNameA string specifying the realm's name
connectionsAn array of strings specifying the realm's network interfaces. These have to be in the form: protocol://host:port/servlet File , where: Protocol can be one of nsp, nhp, nsps, nhps where: nsp => Nirvana Socket Protocol nhp => Nirvana HTTP Protocol nsps => Nirvana Socket Protocol Secure (Socket protocol over SSL/TLS) nhps => Nirvana HTTP Protocol Secure (HTTP protocol over SSL/TLS) Host is the host the realm is running on Port is the port the realm is listening on servlet File specifies the location that servlets are mapped if talking to the realm via a web server (e.g. in a DMZ environment)
com.pcbsys.nirvana.base.nRealm.nRealm ( String  pName,
Vector  connections 
) throws fException

Constructs a new nRealm object with the specified name and collection of network interfaces.

Parameters
pNameA string specifying the realm's name
connectionsA vector of fConnectionDetails objects. These are created using strings specifying the realm's network interfaces. The strings have to be in the form: protocol://host:port/servlet File , where: Protocol can be one of nsp, nhp, nsps, nhps where: nsp => Nirvana Socket Protocol nhp => Nirvana HTTP Protocol nsps => Nirvana Socket Protocol Secure (Socket protocol over SSL/TLS) nhps => Nirvana HTTP Protocol Secure (HTTP protocol over SSL/TLS) Host is the host the realm is running on Port is the port the realm is listening on servlet File specifies the location that servlets are mapped if talking to the realm via a web server (e.g. in a DMZ environment)

Member Function Documentation

Vector<fConnectionDetails> com.pcbsys.nirvana.base.nRealm.getConnections ( )

Gets the collection of the network interfaces this realm listens in.

Returns
A vector containing an fConnectionDetails object for each realm interface.
String com.pcbsys.nirvana.base.nRealm.getHostVal ( )
See Also
com.pcbsys.nirvana.base.nRealm
Deprecated:
This method has been deprecated in favour of getConnections which returns a Vector of all known protocols, adapters and ports that the realm is configured for
int com.pcbsys.nirvana.base.nRealm.getHTTPPortVal ( )
See Also
com.pcbsys.nirvana.base.nRealm
Deprecated:
This method has been deprecated in favour of getConnections which returns a Vector of all known protocols, adapters and ports that the realm is configured for
int com.pcbsys.nirvana.base.nRealm.getPortVal ( )
See Also
com.pcbsys.nirvana.base.nRealm
Deprecated:
This method has been deprecated in favour of getConnections which returns a Vector of all known protocols, adapters and ports that the realm is configured for
void com.pcbsys.nirvana.base.nRealm.readExternal ( fEventInputStream  ois) throws IOException

Reads the object from an external Event InputStream.

Parameters
oisAn Event InputStream containing the externalised object
Exceptions
IOExceptionis thrown if in IO error occurs while reading of the stream
void com.pcbsys.nirvana.base.nRealm.writeExternal ( fEventOutputStream  oos) throws IOException

Writes the object to an external Event OutputStream.

Parameters
oosAn event outputstream containing the externalised object
Exceptions
IOExceptionis thrown if an IO error occurs while writing to the stream