com.starteam
Class IPRange

java.lang.Object
  extended by com.starteam.IPRange

public final class IPRange
extends java.lang.Object

This class represents a range of TCP/IP addresses and the required level of encryption for clients to connect to the StarTeam server.


Constructor Summary
IPRange(IPRange source)
          construct a new IPRange from the source
IPRange(java.lang.String min, java.lang.String max, Server.EncryptionAlgorithm required)
          Creates a new IP range/required encryption level.
 
Method Summary
 IPRange copy()
          return a copy of this IPRange instance
 Server.EncryptionAlgorithm getAlgorithm()
          Returns the minimum required level of encryption for this range.
 java.lang.String getMaxIP()
          Returns the maximum IP address for this range.
 java.lang.String getMinIP()
          Returns the minimum IP address for this range.
 boolean isEqualTo(IPRange other)
          returns true if the Object passed in is a IPRange instance, with the same set of values as this IPRange instance
 void setAlgorithm(Server.EncryptionAlgorithm algorithm)
          Sets the minimum required level of encryption for this range.
 void setMaxIP(java.lang.String ip)
          Sets the maximum IP address for this range.
 void setMinIP(java.lang.String ip)
          Sets the minimum IP address for this range.
 java.lang.String toString()
          returns a string representation of this range
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPRange

public IPRange(java.lang.String min,
               java.lang.String max,
               Server.EncryptionAlgorithm required)
Creates a new IP range/required encryption level. A client whose IP address falls in the specified range will be required to connect with the specified encryption level. The default catch all range is specified with a min and max IP address of "0.0.0.0".

Parameters:
min - the start of the IP range in the form "0.0.0.0"
max - the end of the IP range in the form "0.0.0.0"
required - the minimum required encryption level for the specified range

IPRange

public IPRange(IPRange source)
construct a new IPRange from the source

Parameters:
source - IPRange the IPRange to copy
Method Detail

copy

public IPRange copy()
return a copy of this IPRange instance

Returns:
IPRange a copy of this IPRange instance

isEqualTo

public boolean isEqualTo(IPRange other)
returns true if the Object passed in is a IPRange instance, with the same set of values as this IPRange instance

Parameters:
other - Object another instance of a IPRange object
Returns:
boolean true if the IPRange parameter has the same set of values as this one

getMinIP

public java.lang.String getMinIP()
Returns the minimum IP address for this range. The form will be "0.0.0.0".

Returns:
the minimum IP address for this range. The form will be "0.0.0.0".

setMinIP

public void setMinIP(java.lang.String ip)
Sets the minimum IP address for this range. The range must a string of the form "0.0.0.0"

Parameters:
ip - the IP address for the minimum of this range.

getMaxIP

public java.lang.String getMaxIP()
Returns the maximum IP address for this range. The form will be "0.0.0.0".

Returns:
the maximum IP address for this range. The form will be "0.0.0.0".

setMaxIP

public void setMaxIP(java.lang.String ip)
Sets the maximum IP address for this range. The range must a string of the form "0.0.0.0"

Parameters:
ip - the IP address for the maximum of this range.

getAlgorithm

public Server.EncryptionAlgorithm getAlgorithm()
Returns the minimum required level of encryption for this range.

Returns:
the minimum required level of encryption for this range.

setAlgorithm

public void setAlgorithm(Server.EncryptionAlgorithm algorithm)
Sets the minimum required level of encryption for this range.

Parameters:
algorithm - the minimum required encryption algorithm

toString

public java.lang.String toString()
returns a string representation of this range

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this range


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.