*
* @param protocol HTTP Protocol.
*/
public void setProtocol(String protocol) {
if (protocol == null) {
throw new ViPRException("Protocol must not be null");
}
if (!(protocol.equals("https") || protocol.equals("http"))) {
throw new ViPRException("Protocol must be 'http' or 'https'");
}
this.protocol = protocol;
}