* @param protocol Protocol.
*/
public nitro_service(String ip, ipayload_formatter format,String protocol)throws nitro_exception
{
if (protocol == null || !(protocol.equalsIgnoreCase("http")|| protocol.equalsIgnoreCase("https"))) {
throw new nitro_exception("error: protocol value " + protocol + " is not supported");
}
this.ipaddress = ip;
this.version = "v1";
this.protocol = protocol;
this.format = format;