All Packages Class Hierarchy This Package Previous Next Index
Class semper.seccomm.basic.BasicServicesAddress
java.lang.Object
|
+----semper.comm.ComPointAddress
|
+----semper.seccomm.SecComPointAddress
|
+----semper.seccomm.basic.BasicServicesAddress
- public class BasicServicesAddress
- extends SecComPointAddress
This class defines addresses to be used with the BasicServices
service module.
- Version:
- $Revision: 1.15 $ $Date: 1998/07/14 09:30:56 $
-
BasicServicesAddress(AttributeSet, SituationDescription, ComPointAddress)
- Create a BasicServiceAddress.
-
BasicServicesAddress(AttributeSet, SituationDescription, int)
- Create a BasicServiceAddress.
-
BasicServicesAddress(AttributeSet, SituationDescription, String, int)
- Create a BasicServiceAddress.
-
BasicServicesAddress(AttributeSet, SituationDescription, String, int, String)
- Create a BasicServiceAddress.
-
getHost()
-
-
getOwnID()
-
-
getPeerID()
-
-
getPort()
-
-
getProtocol()
-
-
getSituationDescription()
-
-
setSituationDescription(SituationDescription)
- Set a new situation description.
-
toString()
- Creates an string representation of the address.
BasicServicesAddress
public BasicServicesAddress(AttributeSet secAttributeList,
SituationDescription situationDescription,
String host,
int port)
- Create a BasicServiceAddress.
- Parameters:
- secAttributeList - The attributes to be applied.
- port - The port of the peer
- host - The hostname of the peer
BasicServicesAddress
public BasicServicesAddress(AttributeSet secAttributeList,
SituationDescription situationDescription,
int port)
- Create a BasicServiceAddress.
- Parameters:
- secAttributeList - The attributes to be applied.
- port - The port to open the compoint to.
BasicServicesAddress
public BasicServicesAddress(AttributeSet secAttributeList,
SituationDescription situationDescription,
ComPointAddress cpa)
- Create a BasicServiceAddress.
- Parameters:
- secAttributeList - The attributes to be applied.
- comPointAddress - A ComPointAddress to clone all
relevant info from.
BasicServicesAddress
public BasicServicesAddress(AttributeSet secAttributeList,
SituationDescription situationDescription,
String hostOrMailAddr,
int port,
String protocol) throws SecComPointException
- Create a BasicServiceAddress.
- Parameters:
- secAttributeList - The attributes to be applied.
- port - The port of the peer
- hostOrMailAddr - The hostname of the peer or it's mail addr (if protocol==COMPROTOCOL_MAIL)
- protocol - The protocol to use, i.e. ComPointConstants.COMPROTOCOL_TCP,
ComPointConstants.COMPROTOCOL_MAIL,
ComPointConstants.COMPROTOCOL_HTTP,
- Throws: SecComPointException
- When the protocol is not one of the
ComPointConstants.COMPROTOCOL_*-Strings
getPort
public int getPort()
- Returns:
- The port.
- Overrides:
- getPort in class ComPointAddress
getHost
public String getHost()
- Returns:
- The host.
- Overrides:
- getHost in class ComPointAddress
getProtocol
public String getProtocol()
- Returns:
- The protocol, i.e. ComPointConstants.COMPROTOCOL_TCP,
ComPointConstants.COMPROTOCOL_MAIL,
ComPointConstants.COMPROTOCOL_HTTP,
- Overrides:
- getProtocol in class ComPointAddress
getSituationDescription
public SituationDescription getSituationDescription()
- Returns:
- The situationdescription stored at
object creation time.
setSituationDescription
public void setSituationDescription(SituationDescription sd)
- Set a new situation description.
getPeerID
public String getPeerID()
- Returns:
- The peerName from the SituationDescription.
getOwnID
public String getOwnID()
- Returns:
- The userName from the SituationDescription.
toString
public String toString()
- Creates an string representation of the address.
- Overrides:
- toString in class SecComPointAddress
All Packages Class Hierarchy This Package Previous Next Index