02/28/2005
 

com.epicentric.common
Class DomainUtils

java.lang.Object
  |
  +--com.epicentric.common.DomainUtils

Deprecated. as of version 4.5, to be removed in 8.0 or later. No replacement.

public class DomainUtils
extends Object

Static utility methods for dealing with Domains.


Method Summary
static String getDomain()
          Deprecated. Get the default domain name that is stored in the properties.txt.
static String getDomain(javax.servlet.http.HttpServletRequest request)
          Deprecated. As of version 4.5, to be removed in 8.0 or later. Partially replaced by EntitlementManager.registerDomain(HttpServletRequest) (all known non-deprecated usages immediately called the EntitlementManager).
static String getDomain(javax.servlet.jsp.PageContext context)
          Deprecated. From the PageContext, get the string domain name
static String getDomain(PortalPageContext context)
          Deprecated. From the PortalPageContext, get the string domain name
static String getDomain(String domain)
          Deprecated. From the String domain, get the string domain name if the input domain is an IP address, the default domain will be returned
static boolean isValidDomainName(String domain)
          Deprecated. Check to see if a domain name is valid for Entitlements purposes, meaning that the domain name is valid and is not an IP address and is not "localhost".
static boolean isValidIPAddress(String ipString)
          Deprecated. Check to see if a string is a valid IP address.
static boolean isValidSubdomainName(String subdomainName)
          Deprecated. Make sure a specific part of a fully qualified hostname (one of the parts delimited by dots) uses DNS-safe characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDomain

public static String getDomain(PortalPageContext context)
Deprecated. 
From the PortalPageContext, get the string domain name
Parameters:
context - - PortalPageContext
Returns:
domain name

getDomain

public static String getDomain(javax.servlet.jsp.PageContext context)
Deprecated. 
From the PageContext, get the string domain name
Parameters:
context - - PageContext
Returns:
domain name

getDomain

public static String getDomain(javax.servlet.http.HttpServletRequest request)
Deprecated. As of version 4.5, to be removed in 8.0 or later. Partially replaced by EntitlementManager.registerDomain(HttpServletRequest) (all known non-deprecated usages immediately called the EntitlementManager).

From the HttpServletRequest, get the string domain name
Parameters:
request - - HttpServletRequest
Returns:
domain name

getDomain

public static String getDomain(String domain)
Deprecated. 
From the String domain, get the string domain name if the input domain is an IP address, the default domain will be returned
Parameters:
domain - - domain name (could be IP address)
Returns:
domain - Actual domain name

getDomain

public static String getDomain()
Deprecated. 
Get the default domain name that is stored in the properties.txt. The domain name can not be an IP address
Returns:
domain - Actual domain name

isValidDomainName

public static boolean isValidDomainName(String domain)
Deprecated. 
Check to see if a domain name is valid for Entitlements purposes, meaning that the domain name is valid and is not an IP address and is not "localhost". Used by the Entitlements system to validate domain names.
Parameters:
domain - - domain name
Returns:
true|false

isValidIPAddress

public static boolean isValidIPAddress(String ipString)
Deprecated. 
Check to see if a string is a valid IP address. This method does not check network availability but only checks to see if the string is in valid 255.255.255.254 numeric format.
Parameters:
ipString - The String representation of an ip address to be validated.
Returns:
true if the specified ipString is of a valid format.

isValidSubdomainName

public static boolean isValidSubdomainName(String subdomainName)
Deprecated. 
Make sure a specific part of a fully qualified hostname (one of the parts delimited by dots) uses DNS-safe characters. (Also used to validate Site DNS names).
Returns:
a boolean showing whether the subdomain name is valid and DNS-safe

02/28/2005
 

Copyright and Trademark Notices