List of usage examples for org.springframework.integration.stomp.support IntegrationStompHeaders PREFIX
String PREFIX
To view the source code for org.springframework.integration.stomp.support IntegrationStompHeaders PREFIX.
Click Source Link
From source file:org.springframework.integration.stomp.support.StompHeaderMapper.java
@Override public Map<String, Object> toHeaders(StompHeaders source) { Map<String, Object> target = new HashMap<String, Object>(); for (String name : source.keySet()) { if (shouldMapHeader(name, this.inboundHeaderNames)) { if (StompHeaders.CONTENT_TYPE.equals(name)) { target.put(MessageHeaders.CONTENT_TYPE, source.getContentType()); } else { String key = name; if (IntegrationStompHeaders.HEADERS.contains(name)) { key = IntegrationStompHeaders.PREFIX + name; }//w w w .ja va 2 s . c o m target.put(key, source.getFirst(name)); } } } return target; }