Code example for WebSettings

Methods: setPluginState

0
  } 
   
  public static final void setPluginState(WebSettings s, int state) {
	  switch (state) {
	  case 0: 
		  s.setPluginState(WebSettings.PluginState.OFF);
		  break; 
	  case 1: 
		  s.setPluginState(WebSettings.PluginState.ON);
		  break; 
	  case 2: 
		  s.setPluginState(WebSettings.PluginState.ON_DEMAND);
		  break; 
	  } 
  } 
   
  public static Date getValidBefore(SslCertificate certificate) {
	  return certificate.getValidNotBeforeDate();
  } 
   
  public static Date getValidAfter(SslCertificate certificate) {