/** * Gets the format of the entries in the keystore. The default format for * Java keystores is JKS, though some connector implementations support * PCKS12 (and possibly other formats). */ public String getKeystoreType() { return (String)connector.getAttribute("keystoreType"); }
/** * Gets a comma seperated list of the encryption ciphers that may be used. If not * specified, then any available cipher may be used. */ public String getCiphers() { return (String)connector.getAttribute("ciphers"); }
public String getAddress() { Object value = connector.getAttribute("address"); if (value == null) { return "0.0.0.0"; } else if (value instanceof InetAddress) { return ((InetAddress) value).getHostAddress(); } else return value.toString(); }
/** * Gets the size of the buffer used to handle network data for this * connector. */ public int getBufferSizeBytes() { Object value = connector.getAttribute("bufferSize"); return value == null ? 2048 : Integer.parseInt(value.toString()); }
/** * Gets the hostname/IP that this connector listens on. */ public String getHost() { Object value = connector.getAttribute("address"); if(value == null) { return "0.0.0.0"; } else if(value instanceof InetAddress) { return ((InetAddress)value).getHostAddress(); } else return value.toString(); }
/** * Gets the maximum number of threads used to service connections from * this connector. */ public int getMaxThreads() { Object value = connector.getAttribute("maxThreads"); return value == null ? 200 : Integer.parseInt(value.toString()); }
/** * Gets the maximum number of connections that may be queued while all * threads are busy. Any requests received while the queue is full will * be rejected. */ public int getAcceptQueueSize() { Object value = connector.getAttribute("acceptCount"); return value == null ? 10 : Integer.parseInt(value.toString()); }
public String getAddress() { Object value = connector.getAttribute("address"); if (value == null) { return "0.0.0.0"; } else if (value instanceof InetAddress) { return ((InetAddress) value).getHostAddress(); } else return value.toString(); }
public int getAcceptorThreadPriority() { Object value = connector.getAttribute("acceptorThreadCount"); return value == null ? Thread.NORM_PRIORITY : Integer.parseInt(value.toString()); }
public int getPollerThreadCount() { Object value = connector.getAttribute("pollerThreadCount"); return value == null ? 1 : Integer.parseInt(value.toString()); }
public int getSocket_keyCache() { Object value = connector.getAttribute("socket.keyCache"); return value == null ? 500 : Integer.parseInt(value.toString()); }
public int getMaxThreads() { Object value = connector.getAttribute("maxThreads"); return value == null ? 200 : Integer.parseInt(value.toString()); }
public int getBufferSize() { Object value = connector.getAttribute("bufferSize"); return value == null ? 2048 : Integer.parseInt(value.toString()); }
/** * Gets whether the TCP_NODELAY flag is set for the sockets used by this * connector. This usually enhances performance, so it should typically * be set. */ public boolean isTcpNoDelay() { Object value = connector.getAttribute("tcpNoDelay"); return value == null ? true : new Boolean(value.toString()).booleanValue(); }
public boolean getUseExecutor() { Object value = connector.getAttribute("useExecutor"); return value == null ? true : new Boolean(value.toString()).booleanValue(); }
public boolean getTcpNoDelay() { Object value = connector.getAttribute("tcpNoDelay"); return value == null ? true : new Boolean(value.toString()).booleanValue(); }
public boolean getClientAuth() { Object value = connector.getAttribute("clientAuth"); return value == null ? false : new Boolean(value.toString()).booleanValue(); }
public String getExecutor() { Object value = connector.getAttribute("executor"); if (value == null) return null; if (value instanceof String) return (String)value; if(value instanceof Executor){ return ((Executor) value).getName(); } return (String) value.getClass().getName(); }
public String getSslCACertificateFile() { String path = (String) connector.getAttribute("SSLCACertificateFile"); return getRelatedPathtoCatalinaHome(path); }
public int getKeepAliveTimeout() { Object value = connector.getAttribute("keepAliveTimeout"); return value == null ? getConnectionTimeout() : Integer.parseInt(value.toString()); }