/** * return all property names, including standard JMS properties and JMSX properties * @return Enumeration of all property names on this message * @throws JMSException */ @SuppressWarnings("rawtypes") public Enumeration getAllPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); result.addAll(JMS_PROPERTY_SETERS.keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override public boolean propertyExists(String name) throws JMSException { try { return (this.getProperties().containsKey(name) || getObjectProperty(name)!= null); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
protected TabularDataSupport createTabularData(ActiveMQMessage m, TabularType type, Class valueType) throws IOException, OpenDataException { TabularDataSupport answer = new TabularDataSupport(type); Set<Map.Entry<String,Object>> entries = m.getProperties().entrySet(); for (Map.Entry<String, Object> entry : entries) { Object value = entry.getValue(); if (value instanceof UTF8Buffer && valueType.equals(String.class)) { String actual = value.toString(); CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), actual); answer.put(compositeData); } if (valueType.isInstance(value)) { CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), value); answer.put(compositeData); } } return answer; }
@Override @SuppressWarnings("rawtypes") public Enumeration getPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); if( getRedeliveryCounter()!=0 ) { result.add("JMSXDeliveryCount"); } if( getGroupID()!=null ) { result.add("JMSXGroupID"); } if( getGroupID()!=null ) { result.add("JMSXGroupSeq"); } if( getUserID()!=null ) { result.add("JMSXUserID"); } return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
rc.put(CompositeDataConstants.ORIGINAL_DESTINATION, toString(m.getOriginalDestination())); try { rc.put(CompositeDataConstants.PROPERTIES, "" + m.getProperties()); } catch (IOException e) { rc.put(CompositeDataConstants.PROPERTIES, "");
public Enumeration getPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * return all property names, including standard JMS properties and JMSX properties * @return Enumeration of all property names on this message * @throws JMSException */ @SuppressWarnings("rawtypes") public Enumeration getAllPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); result.addAll(JMS_PROPERTY_SETERS.keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * return all property names, including standard JMS properties and JMSX properties * @return Enumeration of all property names on this message * @throws JMSException */ public Enumeration getAllPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); result.addAll(JMS_PROPERTY_SETERS.keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * return all property names, including standard JMS properties and JMSX properties * @return Enumeration of all property names on this message * @throws JMSException */ @SuppressWarnings("rawtypes") public Enumeration getAllPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); result.addAll(JMS_PROPERTY_SETERS.keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
/** * return all property names, including standard JMS properties and JMSX properties * @return Enumeration of all property names on this message * @throws JMSException */ @SuppressWarnings("rawtypes") public Enumeration getAllPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); result.addAll(JMS_PROPERTY_SETERS.keySet()); return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override public boolean propertyExists(String name) throws JMSException { try { return (this.getProperties().containsKey(name) || getObjectProperty(name)!= null); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override public boolean propertyExists(String name) throws JMSException { try { return (this.getProperties().containsKey(name) || getObjectProperty(name)!= null); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override public boolean propertyExists(String name) throws JMSException { try { return (this.getProperties().containsKey(name) || getObjectProperty(name)!= null); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
public boolean propertyExists(String name) throws JMSException { try { return (this.getProperties().containsKey(name) || getObjectProperty(name)!= null); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
protected TabularDataSupport createTabularData(ActiveMQMessage m, TabularType type, Class valueType) throws IOException, OpenDataException { TabularDataSupport answer = new TabularDataSupport(type); Set<Map.Entry<String,Object>> entries = m.getProperties().entrySet(); for (Map.Entry<String, Object> entry : entries) { Object value = entry.getValue(); if (valueType.isInstance(value)) { CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), value); answer.put(compositeData); } } return answer; }
protected TabularDataSupport createTabularData(ActiveMQMessage m, TabularType type, Class valueType) throws IOException, OpenDataException { TabularDataSupport answer = new TabularDataSupport(type); Set<Map.Entry<String,Object>> entries = m.getProperties().entrySet(); for (Map.Entry<String, Object> entry : entries) { Object value = entry.getValue(); if (value instanceof UTF8Buffer && valueType.equals(String.class)) { String actual = value.toString(); CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), actual); answer.put(compositeData); } if (valueType.isInstance(value)) { CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), value); answer.put(compositeData); } } return answer; }
protected TabularDataSupport createTabularData(ActiveMQMessage m, TabularType type, Class valueType) throws IOException, OpenDataException { TabularDataSupport answer = new TabularDataSupport(type); Set<Map.Entry<String,Object>> entries = m.getProperties().entrySet(); for (Map.Entry<String, Object> entry : entries) { Object value = entry.getValue(); if (value instanceof UTF8Buffer && valueType.equals(String.class)) { String actual = value.toString(); CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), actual); answer.put(compositeData); } if (valueType.isInstance(value)) { CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), value); answer.put(compositeData); } } return answer; }
protected TabularDataSupport createTabularData(ActiveMQMessage m, TabularType type, Class valueType) throws IOException, OpenDataException { TabularDataSupport answer = new TabularDataSupport(type); Set<Map.Entry<String,Object>> entries = m.getProperties().entrySet(); for (Map.Entry<String, Object> entry : entries) { Object value = entry.getValue(); if (value instanceof UTF8Buffer && valueType.equals(String.class)) { String actual = value.toString(); CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), actual); answer.put(compositeData); } if (valueType.isInstance(value)) { CompositeDataSupport compositeData = createTabularRowValue(type, entry.getKey(), value); answer.put(compositeData); } } return answer; }
@Override @SuppressWarnings("rawtypes") public Enumeration getPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); if( getRedeliveryCounter()!=0 ) { result.add("JMSXDeliveryCount"); } if( getGroupID()!=null ) { result.add("JMSXGroupID"); } if( getGroupID()!=null ) { result.add("JMSXGroupSeq"); } if( getUserID()!=null ) { result.add("JMSXUserID"); } return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }
@Override @SuppressWarnings("rawtypes") public Enumeration getPropertyNames() throws JMSException { try { Vector<String> result = new Vector<String>(this.getProperties().keySet()); if( getRedeliveryCounter()!=0 ) { result.add("JMSXDeliveryCount"); } if( getGroupID()!=null ) { result.add("JMSXGroupID"); } if( getGroupID()!=null ) { result.add("JMSXGroupSeq"); } if( getUserID()!=null ) { result.add("JMSXUserID"); } return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e); } }