public String getConnectorName() { return this.connector.toString(); }
public String getConnectorName() { return this.connector.toString(); }
public String getConnectorName() { return this.connector.toString(); }
@Deprecated public String getConnectorName() { return this.connector.toString(); }
@Deprecated public String getConnectorName() { return this.connector.toString(); }
protected Map<String,List<String>> getConnectorCiphers() { Map<String,List<String>> result = new HashMap<>(); Connector connectors[] = getConnectors(); for (Connector connector : connectors) { if (Boolean.TRUE.equals(connector.getProperty("SSLEnabled"))) { SSLHostConfig[] sslHostConfigs = connector.getProtocolHandler().findSslHostConfigs(); for (SSLHostConfig sslHostConfig : sslHostConfigs) { String name = connector.toString() + "-" + sslHostConfig.getHostName(); /* Add cipher list, keep order but remove duplicates */ result.put(name, new ArrayList<>(new LinkedHashSet<>( Arrays.asList(sslHostConfig.getEnabledCiphers())))); } } else { ArrayList<String> cipherList = new ArrayList<>(1); cipherList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), cipherList); } } return result; }
/** * Find and return the set of Connectors associated with this Service. * @return an array of string representations of the connectors * @throws MBeanException error accessing the associated service */ public String[] findConnectors() throws MBeanException { Service service = doGetManagedResource(); Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i = 0; i < connectors.length; i++) { str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @return an array of string representations of the connectors * @throws MBeanException error accessing the associated service */ public String[] findConnectors() throws MBeanException { Service service = doGetManagedResource(); Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i = 0; i < connectors.length; i++) { str[i] = connectors[i].toString(); } return str; }
protected Map<String,List<String>> getConnectorCiphers() { Map<String,List<String>> result = new HashMap<>(); Connector connectors[] = getConnectors(); for (Connector connector : connectors) { if (Boolean.TRUE.equals(connector.getProperty("SSLEnabled"))) { SSLHostConfig[] sslHostConfigs = connector.getProtocolHandler().findSslHostConfigs(); for (SSLHostConfig sslHostConfig : sslHostConfigs) { String name = connector.toString() + "-" + sslHostConfig.getHostName(); /* Add cipher list, keep order but remove duplicates */ result.put(name, new ArrayList<>(new LinkedHashSet<>( Arrays.asList(sslHostConfig.getEnabledCiphers())))); } } else { ArrayList<String> cipherList = new ArrayList<>(1); cipherList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), cipherList); } } return result; }
protected Map<String,Set<String>> getConnectorCiphers() { Map<String,Set<String>> result = new HashMap<>(); Engine e = (Engine) host.getParent(); Service s = e.getService(); Connector connectors[] = s.findConnectors(); for (Connector connector : connectors) { Set<String> cipherList = new HashSet<>(); if (Boolean.TRUE.equals(connector.getProperty("SSLEnabled"))) { String[] ciphersUsed = (String[]) connector.getProperty("ciphersUsed"); for (String cipherUsed : ciphersUsed) { cipherList.add(cipherUsed); } } else { cipherList.add(sm.getString("managerServlet.notSslConnector")); } result.put(connector.toString(), cipherList); } return result; } }
SSLHostConfig[] sslHostConfigs = connector.getProtocolHandler().findSslHostConfigs(); for (SSLHostConfig sslHostConfig : sslHostConfigs) { String name = connector.toString() + "-" + sslHostConfig.getHostName(); List<String> certList = new ArrayList<>(); SSLContext sslContext = List<String> certList = new ArrayList<>(1); certList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), certList);
SSLHostConfig[] sslHostConfigs = connector.getProtocolHandler().findSslHostConfigs(); for (SSLHostConfig sslHostConfig : sslHostConfigs) { String name = connector.toString() + "-" + sslHostConfig.getHostName(); List<String> certList = new ArrayList<>(); if (sslHostConfig.getOpenSslContext().longValue() == 0) { List<String> certList = new ArrayList<>(1); certList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), certList);
sslHostConfig.getCertificates(); for (SSLHostConfigCertificate sslHostConfigCert : sslHostConfigCerts) { String name = connector.toString() + "-" + sslHostConfig.getHostName() + "-" + sslHostConfigCert.getType(); List<String> certList = new ArrayList<>(); List<String> certList = new ArrayList<>(); certList.add(sm.getString("managerServlet.certsNotAvailable")); String name = connector.toString() + "-" + sslHostConfig.getHostName(); result.put(name, certList); List<String> certList = new ArrayList<>(1); certList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), certList);
sslHostConfig.getCertificates(); for (SSLHostConfigCertificate sslHostConfigCert : sslHostConfigCerts) { String name = connector.toString() + "-" + sslHostConfig.getHostName() + "-" + sslHostConfigCert.getType(); List<String> certList = new ArrayList<>(); List<String> certList = new ArrayList<>(1); certList.add(sm.getString("managerServlet.notSslConnector")); result.put(connector.toString(), certList);
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }
/** * Find and return the set of Connectors associated with this Service. * @throws MBeanException */ public String[] findConnectors() throws MBeanException { Service service; try { service = (Service)getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (RuntimeOperationsException e) { throw new MBeanException(e); } catch (InvalidTargetObjectTypeException e) { throw new MBeanException(e); } Connector[] connectors = service.findConnectors(); String[] str = new String[connectors.length]; for(int i=0; i< connectors.length; i++){ str[i] = connectors[i].toString(); } return str; }