dropContentType = PropertyUtils.isFalse(setCtForEmptyRequestProp);
/** * It might seem odd to return 'true' if a property == FALSE, but it * is required sometimes. * * @param props * @param key * @return false if value is either the String "false" or Boolean.FALSE. Otherwise returns * true. */ public static boolean isFalse(Map<String, Object> props, String key) { if (props == null || key == null) { return false; } return isFalse(props.get(key)); }
/** * It might seem odd to return 'true' if a property == FALSE, but it * is required sometimes. * * @param props * @param key * @return false if value is either the String "false" or Boolean.FALSE. Otherwise returns * true. */ public static boolean isFalse(Map<String, Object> props, String key) { if (props == null || key == null) { return false; } return isFalse(props.get(key)); }
/** * It might seem odd to return 'true' if a property == FALSE, but it * is required sometimes. * * @param props * @param key * @return false if value is either the String "false" or Boolean.FALSE. Otherwise returns * true. */ public static boolean isFalse(Map<String, Object> props, String key) { if (props == null || key == null) { return false; } else { return isFalse(props.get(key)); } }
/** * It might seem odd to return 'true' if a property == FALSE, but it * is required sometimes. * * @param props * @param key * @return false if value is either the String "false" or Boolean.FALSE. Otherwise returns * true. */ public static boolean isFalse(Map<String, Object> props, String key) { if (props == null || key == null) { return false; } else { return isFalse(props.get(key)); } }
public JAXBDataBinding(boolean qualified, Map<String, Object> props) throws JAXBException { this(qualified); if (props != null && props.get("jaxb.additionalContextClasses") != null) { Object o = props.get("jaxb.additionalContextClasses"); if (o instanceof Class) { o = new Class[] {(Class<?>)o}; } extraClass = (Class[])o; } // the default for scan packages is true, so the jaxb scan packages // property must be explicitly set to false to disable it if (PropertyUtils.isFalse(props, JAXB_SCAN_PACKAGES)) { scanPackages = false; } }
protected static boolean isLoggingDisabledNow(Message message) throws Fault { Object liveLoggingProp = message.getContextualProperty(LIVE_LOGGING_PROP); return liveLoggingProp != null && PropertyUtils.isFalse(liveLoggingProp); }
protected static boolean isLoggingDisabledNow(Message message) throws Fault { Object liveLoggingProp = message.getContextualProperty(LIVE_LOGGING_PROP); return liveLoggingProp != null && PropertyUtils.isFalse(liveLoggingProp); }
protected static boolean isLoggingDisabledNow(Message message) throws Fault { Object liveLoggingProp = message.getContextualProperty(LIVE_LOGGING_PROP); return liveLoggingProp != null && PropertyUtils.isFalse(liveLoggingProp); }
protected static boolean isLoggingDisabledNow(Message message) throws Fault { Object liveLoggingProp = message.getContextualProperty(LIVE_LOGGING_PROP); return liveLoggingProp != null && PropertyUtils.isFalse(liveLoggingProp); }
dropContentType = PropertyUtils.isFalse(setCtForEmptyRequestProp);
dropContentType = PropertyUtils.isFalse(setCtForEmptyRequestProp);
if ((suspendProp == null || PropertyUtils.isFalse(suspendProp)) && iterator.hasPrevious()) { iterator.previous();
if ((suspendProp == null || PropertyUtils.isFalse(suspendProp)) && iterator.hasPrevious()) { iterator.previous();
protected void checkClientException(Message outMessage, Exception ex) throws Exception { Throwable actualEx = ex instanceof Fault ? ((Fault)ex).getCause() : ex; Exchange exchange = outMessage.getExchange(); Integer responseCode = getResponseCode(exchange); if (responseCode == null || responseCode < 300 && !(actualEx instanceof IOException) || actualEx instanceof IOException && exchange.get("client.redirect.exception") != null) { if (actualEx instanceof ProcessingException) { throw (RuntimeException)actualEx; } else if (actualEx != null) { Object useProcExProp = exchange.get("wrap.in.processing.exception"); if (actualEx instanceof RuntimeException && useProcExProp != null && PropertyUtils.isFalse(useProcExProp)) { throw (Exception)actualEx; } throw new ProcessingException(actualEx); } else if (!exchange.isOneWay() || cfg.isResponseExpectedForOneway()) { waitForResponseCode(exchange); } } }
protected void checkClientException(Message outMessage, Exception ex) throws Exception { Throwable actualEx = ex instanceof Fault ? ((Fault)ex).getCause() : ex; Exchange exchange = outMessage.getExchange(); Integer responseCode = getResponseCode(exchange); if (responseCode == null || responseCode < 300 && !(actualEx instanceof IOException) || actualEx instanceof IOException && exchange.get("client.redirect.exception") != null) { if (actualEx instanceof ProcessingException) { throw (RuntimeException)actualEx; } else if (actualEx != null) { Object useProcExProp = exchange.get("wrap.in.processing.exception"); if (actualEx instanceof RuntimeException && useProcExProp != null && PropertyUtils.isFalse(useProcExProp)) { throw (Exception)actualEx; } throw new ProcessingException(actualEx); } else if (!exchange.isOneWay() || cfg.isResponseExpectedForOneway()) { waitForResponseCode(exchange); } } }