| |
|
| com.jcorporate.expresso.ext.dbobj.ISOCountryCodes com.jcorporate.expresso.ext.dbobj.ReverseLookupDomains
ReverseLookupDomains | public class ReverseLookupDomains extends ISOCountryCodes (Code) | | Class that maintains a database of all known top level domain codes. Useful
for testing whether a particular domain should be denied or not.
See
com.jcorporate.expresso.ext.dbobj.RestrictedCountries for sample usage.
This class derives from ISOCountryCodes since most top level domain names are
simply the ISO country codes. However, an additional table is necessary for
all the additions such as .com, .biz, .uk, etc.
The domain information was from http://www.iana.org/
author: Michael Rimov since: Expresso 5.0 |
FLD_DESCRIPTION | final public static String FLD_DESCRIPTION(Code) | | |
FLD_DOMAINCODE | final public static String FLD_DOMAINCODE(Code) | | |
ReverseLookupDomains | public ReverseLookupDomains() throws DBException(Code) | | Constructor
throws: DBException - if there's an initialization problem |
ReverseLookupDomains | public ReverseLookupDomains(DBConnection myConnection) throws DBException(Code) | | Constructor
Parameters: myConnection - database connection for transactions throws: DBException - if there's an initialization problem |
ReverseLookupDomains | public ReverseLookupDomains(int uid) throws DBException(Code) | | Use over (String) constructor. Initializes the object in the context
of the user who's uid belongs to the parameter.
Parameters: uid - the Uid of the user context throws: DBException - if there's an initialization problem |
ReverseLookupDomains | public ReverseLookupDomains(RequestContext request) throws DBException(Code) | | For using DBObjects within Controllers. Initializes based upon the current
user and the requested db. [Of course this can be modified later]
Parameters: request - - The controller request handed to you by the framework. throws: DBException - if there's an initialization problem |
getDomainId | public String getDomainId(String ipAddress) throws DBException(Code) | | Use this function to lookup any domain names given the InetAddress
Parameters: ipAddress - the address to check String: ex 'uk' or 'gov' or 'com' throws: DBException - if an error occurs |
getExpectedDefaultPopulation | public int getExpectedDefaultPopulation()(Code) | | Useful method for unit testing to make sure that everything got added during
setup as expected.
the length o |
getInternetCodes | protected synchronized String[][] getInternetCodes()(Code) | | |
getValues | public Vector getValues() throws DBException(Code) | | Vector of ValidValue Value/Description pairs for ISO Country Codes throws: DBException - If the values cannot be retrieved |
setupFields | protected void setupFields() throws DBException(Code) | | Sets up the fields for use in this database
throws: DBException - if an error occurs while instantiating the object |
|
|
|