code: public static String getDomainUrl(final boolean ssl, final boolean withServerPort,
  		final boolean withSlashAtTheEnd)
  	{
  		return newDomainUrl(ssl ? Scheme.HTTPS.urlName() : Scheme.HTTP.urlName(),
  			WicketUrlExtensions.getServerName(),
  			WicketComponentExtensions.getHttpServletRequest().getServerPort(), withServerPort,
  			withSlashAtTheEnd);
  	}
docs: Gets the domain url.
  
  @param ssl
  if the domain url is secure the scheme https will be added otherwise http
  @param withServerPort
  the with server port
  @param withSlashAtTheEnd
  the with slash at the end
  @return the domain url