public String url(boolean isHttps) {
		String mergedIP = ipAddress().replaceAll("\\.", "");
		char[] domainChars = mergedIP.toCharArray();
		for (int i = 0; i < domainChars.length; i++) {
			char c = domainChars[i];
			domainChars[i] = (char) (c + 97);
		}

		String domain = String.valueOf(domainChars);
		if (isHttps) {
			return "https://" + domain + ".com";
		} else {
			return "http://" + domain + ".com";
		}
	}
public String url ( boolean isHttps ) { String mergedIP = ipAddress ( ) . replaceAll ( "\\." , "" ) ; char [ ] domainChars = mergedIP . toCharArray ( ) ; for ( int i = 0 ; i < domainChars . length ; i ++ ) { char c = domainChars [ i ] ; domainChars [ i ] = ( char ) ( c + 97 ) ; } String domain = String . valueOf ( domainChars ) ; if ( isHttps ) { return "https://" + domain + ".com" ; } else { return "http://" + domain + ".com" ; } }
Add a simple url generator
Example: networkProducer.url(baseProducer.trueOrFalse())

@param isHttps is https or not
@return A faked url.