/** * Return a property from the protocol handler. * * @param name the property name * @return the property value */ public Object getProperty(String name) { if (protocolHandler == null) { return null; } return IntrospectionUtils.getProperty(protocolHandler, name); }
/** * Return a property from the protocol handler. * * @param name the property name * @return the property value */ public Object getProperty(String name) { if (protocolHandler == null) { return null; } return IntrospectionUtils.getProperty(protocolHandler, name); }
private ObjectName getObjectName(Server server) throws MalformedObjectNameException { String domain = (String) IntrospectionUtils.getProperty(server, "domain"); return ObjectName.getInstance(domain , "type", "ModClusterListener"); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = (String) replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = (String) replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = (String) replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * Return a configured property. */ public Object getProperty(String name) { String repl = name; if (replacements.get(name) != null) { repl = replacements.get(name); } return IntrospectionUtils.getProperty(protocolHandler, repl); }
/** * {@inheritDoc} * @see org.jboss.modcluster.Server#getDomain() */ public String getDomain() { String domain = (String) IntrospectionUtils.getProperty(this.server, "domain"); return (domain != null) ? domain : this.mbeanServer.getDefaultDomain(); }
/** * {@inhericDoc} * @see org.jboss.modcluster.Connector#isReverse() */ public boolean isReverse() { return Boolean.TRUE.equals(IntrospectionUtils.getProperty(this.connector.getProtocolHandler(), "reverseConnection")); }
public String getProperty(String name) { String value = (String) getAttribute(name); final String socketName = "socket."; if (value == null && name.startsWith(socketName)) { Object result = IntrospectionUtils.getProperty(socketProperties, name.substring(socketName.length())); if (result != null) { value = result.toString(); } } return value; }
@Override public boolean isReverse() { return Boolean.TRUE.equals(IntrospectionUtils.getProperty(this.connector.getProtocolHandler(), "reverseConnection")); }
@Override public InetAddress getAddress() { Object value = IntrospectionUtils.getProperty(this.connector.getProtocolHandler(), "address"); if (value instanceof InetAddress) return (InetAddress) value; if (value instanceof String) { try { return InetAddress.getByName((String) value); } catch (UnknownHostException e) { // Ignore } } return null; }
/** * {@inhericDoc} * @see org.jboss.modcluster.Connector#getType() */ public Type getType() { if (isAJP(this.connector)) return Type.AJP; ProtocolHandler handler = this.connector.getProtocolHandler(); return Boolean.TRUE.equals(IntrospectionUtils.getProperty(handler, "SSLEnabled")) ? Type.HTTPS : Type.HTTP; }
@Override public Type getType() { if (isAJP(this.connector)) return Type.AJP; ProtocolHandler handler = this.connector.getProtocolHandler(); return Boolean.TRUE.equals(IntrospectionUtils.getProperty(handler, "secure")) ? Type.HTTPS : Type.HTTP; }
private static final Throwable findRootCause(Throwable theException, Throwable theRootCause) { Throwable deeperRootCause = null; if (theRootCause == null || theRootCause == theException) { return theException; } if (theRootCause instanceof ServletException) { deeperRootCause = ((ServletException) theRootCause).getRootCause(); } else if (jspExceptionClazz!=null && jspExceptionClazz.isAssignableFrom(theRootCause.getClass())) { deeperRootCause = (Throwable)IntrospectionUtils.getProperty( theRootCause, "rootCause"); } else if (theRootCause instanceof SQLException) { deeperRootCause = ((SQLException) theRootCause).getNextException(); } if (deeperRootCause == null) { deeperRootCause = theRootCause.getCause(); } return findRootCause(theRootCause, deeperRootCause); }