public void addAccessPoint ( String label , String ip , String port , String url , String dataType , String data ) { AccessPoint ap = new AccessPoint ( ) ; ap . label = label ; ap . ipAddress = ip ; ap . port = port ; ap . url = url ; ap . dataType = dataType ; ap . data = data ; accessPoints . add ( ap ) ; }
Add a new access point for the service record . This structure exists to help deal with network access issues and not multiple contracts . For example a service could have an access point that is different because of multiple NICs that host is accessible on . It s not to have a service accessible by HTTP and HTTPS - those are actually two different service contract IDs . So if you have multiple access points that are actually providing connection Information for different contracts then you ve done something wrong .