public static XMLStreamReader configureReader(XMLStreamReader xreader, Message message) throws XMLStreamException { Integer messageMaxChildElements = PropertyUtils.getInteger(message, MAX_CHILD_ELEMENTS); Integer messageMaxElementDepth = PropertyUtils.getInteger(message, MAX_ELEMENT_DEPTH); Integer messageMaxAttributeCount = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_COUNT); Integer messageMaxAttributeSize = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_SIZE); Integer messageMaxTextLength = PropertyUtils.getInteger(message, MAX_TEXT_LENGTH); Long messageMaxElementCount = PropertyUtils.getLong(message, MAX_ELEMENT_COUNT); Long messageMaxXMLCharacters = PropertyUtils.getLong(message, MAX_XML_CHARACTERS); return configureReader(xreader, messageMaxChildElements, messageMaxElementDepth, messageMaxAttributeCount, messageMaxAttributeSize, messageMaxTextLength, messageMaxElementCount, messageMaxXMLCharacters); }
public static XMLStreamReader configureReader(XMLStreamReader xreader, Message message) throws XMLStreamException { Integer messageMaxChildElements = PropertyUtils.getInteger(message, MAX_CHILD_ELEMENTS); Integer messageMaxElementDepth = PropertyUtils.getInteger(message, MAX_ELEMENT_DEPTH); Integer messageMaxAttributeCount = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_COUNT); Integer messageMaxAttributeSize = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_SIZE); Integer messageMaxTextLength = PropertyUtils.getInteger(message, MAX_TEXT_LENGTH); Long messageMaxElementCount = PropertyUtils.getLong(message, MAX_ELEMENT_COUNT); Long messageMaxXMLCharacters = PropertyUtils.getLong(message, MAX_XML_CHARACTERS); return configureReader(xreader, messageMaxChildElements, messageMaxElementDepth, messageMaxAttributeCount, messageMaxAttributeSize, messageMaxTextLength, messageMaxElementCount, messageMaxXMLCharacters); }
public static XMLStreamReader configureReader(XMLStreamReader xreader, Message message) throws XMLStreamException { Integer messageMaxChildElements = PropertyUtils.getInteger(message, MAX_CHILD_ELEMENTS); Integer messageMaxElementDepth = PropertyUtils.getInteger(message, MAX_ELEMENT_DEPTH); Integer messageMaxAttributeCount = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_COUNT); Integer messageMaxAttributeSize = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_SIZE); Integer messageMaxTextLength = PropertyUtils.getInteger(message, MAX_TEXT_LENGTH); Long messageMaxElementCount = PropertyUtils.getLong(message, MAX_ELEMENT_COUNT); Long messageMaxXMLCharacters = PropertyUtils.getLong(message, MAX_XML_CHARACTERS); return configureReader(xreader, messageMaxChildElements, messageMaxElementDepth, messageMaxAttributeCount, messageMaxAttributeSize, messageMaxTextLength, messageMaxElementCount, messageMaxXMLCharacters); }
public static XMLStreamReader configureReader(XMLStreamReader xreader, Message message) throws XMLStreamException { Integer messageMaxChildElements = PropertyUtils.getInteger(message, MAX_CHILD_ELEMENTS); Integer messageMaxElementDepth = PropertyUtils.getInteger(message, MAX_ELEMENT_DEPTH); Integer messageMaxAttributeCount = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_COUNT); Integer messageMaxAttributeSize = PropertyUtils.getInteger(message, MAX_ATTRIBUTE_SIZE); Integer messageMaxTextLength = PropertyUtils.getInteger(message, MAX_TEXT_LENGTH); Long messageMaxElementCount = PropertyUtils.getLong(message, MAX_ELEMENT_COUNT); Long messageMaxXMLCharacters = PropertyUtils.getLong(message, MAX_XML_CHARACTERS); return configureReader(xreader, messageMaxChildElements, messageMaxElementDepth, messageMaxAttributeCount, messageMaxAttributeSize, messageMaxTextLength, messageMaxElementCount, messageMaxXMLCharacters); }
protected void waitResponse(Exchange exchange) throws IOException { synchronized (exchange) { long remaining = synchronousTimeout; Long o = PropertyUtils.getLong(exchange.getOutMessage(), SYNC_TIMEOUT); if (o != null) { remaining = o; } while (!Boolean.TRUE.equals(exchange.get(FINISHED)) && remaining > 0) { long start = System.currentTimeMillis(); try { exchange.wait(remaining); } catch (InterruptedException ex) { // ignore } long end = System.currentTimeMillis(); remaining -= (int)(end - start); } if (!Boolean.TRUE.equals(exchange.get(FINISHED))) { LogUtils.log(LOG, Level.WARNING, "RESPONSE_TIMEOUT", exchange.getBindingOperationInfo().getOperationInfo().getName().toString()); String msg = new org.apache.cxf.common.i18n.Message("RESPONSE_TIMEOUT", LOG, exchange .getBindingOperationInfo().getOperationInfo().getName().toString()).toString(); throw new IOException(msg); } } }
protected void waitResponse(Exchange exchange) throws IOException { synchronized (exchange) { long remaining = synchronousTimeout; Long o = PropertyUtils.getLong(exchange.getOutMessage(), SYNC_TIMEOUT); if (o != null) { remaining = o; } while (!Boolean.TRUE.equals(exchange.get(FINISHED)) && remaining > 0) { long start = System.currentTimeMillis(); try { exchange.wait(remaining); } catch (InterruptedException ex) { // ignore } long end = System.currentTimeMillis(); remaining -= (int)(end - start); } if (!Boolean.TRUE.equals(exchange.get(FINISHED))) { LogUtils.log(LOG, Level.WARNING, "RESPONSE_TIMEOUT", exchange.get(OperationInfo.class).getName().toString()); String msg = new org.apache.cxf.common.i18n.Message("RESPONSE_TIMEOUT", LOG, exchange.get(OperationInfo.class) .getName().toString()) .toString(); throw new IOException(msg); } } }
protected void waitResponse(Exchange exchange) throws IOException { synchronized (exchange) { long remaining = synchronousTimeout; Long o = PropertyUtils.getLong(exchange.getOutMessage(), SYNC_TIMEOUT); if (o != null) { remaining = o; } while (!Boolean.TRUE.equals(exchange.get(FINISHED)) && remaining > 0) { long start = System.currentTimeMillis(); try { exchange.wait(remaining); } catch (InterruptedException ex) { // ignore } long end = System.currentTimeMillis(); remaining -= (int)(end - start); } if (!Boolean.TRUE.equals(exchange.get(FINISHED))) { LogUtils.log(LOG, Level.WARNING, "RESPONSE_TIMEOUT", exchange.getBindingOperationInfo().getOperationInfo().getName().toString()); String msg = new org.apache.cxf.common.i18n.Message("RESPONSE_TIMEOUT", LOG, exchange .getBindingOperationInfo().getOperationInfo().getName().toString()).toString(); throw new IOException(msg); } } }
protected void waitResponse(Exchange exchange) throws IOException { synchronized (exchange) { long remaining = synchronousTimeout; Long o = PropertyUtils.getLong(exchange.getOutMessage(), SYNC_TIMEOUT); if (o != null) { remaining = o; } while (!Boolean.TRUE.equals(exchange.get(FINISHED)) && remaining > 0) { long start = System.currentTimeMillis(); try { exchange.wait(remaining); } catch (InterruptedException ex) { // ignore } long end = System.currentTimeMillis(); remaining -= (int)(end - start); } if (!Boolean.TRUE.equals(exchange.get(FINISHED))) { LogUtils.log(LOG, Level.WARNING, "RESPONSE_TIMEOUT", exchange.get(OperationInfo.class).getName().toString()); String msg = new org.apache.cxf.common.i18n.Message("RESPONSE_TIMEOUT", LOG, exchange.get(OperationInfo.class) .getName().toString()) .toString(); throw new IOException(msg); } } }