本文整理了Java中org.apache.cxf.message.Message.entrySet()
方法的一些代码示例,展示了Message.entrySet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.entrySet()
方法的具体详情如下:
包路径:org.apache.cxf.message.Message
类名称:Message
方法名:entrySet
暂无
代码示例来源:origin: apache/cxf
public Set<Entry<String, Object>> entrySet() {
return message.entrySet();
}
代码示例来源:origin: org.apache.cxf/cxf-core
public Set<Entry<String, Object>> entrySet() {
return message.entrySet();
}
代码示例来源:origin: org.apache.cxf/cxf-api
public Set<Entry<String, Object>> entrySet() {
return message.entrySet();
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public Set<Entry<String, Object>> entrySet() {
return message.entrySet();
}
代码示例来源:origin: org.apache.camel/camel-cxf
public void extractJaxWsContext(org.apache.cxf.message.Exchange cxfExchange, Map<String, Object> context) {
org.apache.cxf.message.Message inMessage = cxfExchange.getInMessage();
for (Map.Entry<String, Object> entry : inMessage.entrySet()) {
if (entry.getKey().startsWith("javax.xml.ws")) {
context.put(entry.getKey(), entry.getValue());
}
}
}
代码示例来源:origin: apache/cxf
private void addPropertiesFrom(ExchangeData exchange, Message message) {
for (Map.Entry<String, Object> entry : message.entrySet()) {
if (entry.getKey().equals(org.apache.cxf.message.Message.ENCODING)) {
exchange.setEncoding((String)entry.getValue());
} else if (entry.getKey().equals(org.apache.cxf.message.Message.REQUEST_URI)) {
exchange.setUri((String)entry.getValue());
} else if (entry.getKey().equals(org.apache.cxf.message.Message.PROTOCOL_HEADERS)) {
if (entry.getValue() instanceof Map) {
List<?> userAgents = (List<?>)((Map<?, ?>)entry.getValue()).get("user-agent");
if (userAgents != null && !userAgents.isEmpty()) {
exchange.setUserAgent(userAgents.get(0).toString());
}
}
if (entry.getValue() != null) {
addProperty(exchange, entry.getKey(), entry.getValue().toString());
}
} else if (entry.getKey().startsWith("org.apache.cxf.message.Message.")
&& (entry.getValue() instanceof String || entry.getValue() instanceof Integer || entry
.getValue() instanceof Boolean)) {
addProperty(exchange, entry.getKey(), entry.getValue().toString());
} else if (entry.getKey().startsWith(CXF_CONSOLE_ADDITIONAL_PROPERTY_PREFIX)) {
addProperty(exchange, entry.getKey().substring(
CXF_CONSOLE_ADDITIONAL_PROPERTY_PREFIX
.length()), entry.getValue().toString());
}
}
}
代码示例来源:origin: apache/cxf
public void copy(Message message, Message copy) {
Set<String> filter = CastUtils.cast((Set<?>)message.get(MESSAGE_FILTER_PROPERTIES));
if (filter == null) {
filter = messageFilterProperties;
}
Set<String> includes = CastUtils.cast((Set<?>)message.get(MESSAGE_INCLUDE_PROPERTIES));
if (includes == null) {
includes = messageIncludeProperties;
}
// copy all the contents
for (Map.Entry<String, Object> e : message.entrySet()) {
if ((includes.contains(e.getKey())
|| messageIncludeProperties.contains(e.getKey()))
&& !filter.contains(e.getKey())) {
copy.put(e.getKey(), e.getValue());
}
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-local
public void copy(Message message, Message copy) {
Set<String> filter = CastUtils.cast((Set<?>)message.get(MESSAGE_FILTER_PROPERTIES));
if (filter == null) {
filter = messageFilterProperties;
}
Set<String> includes = CastUtils.cast((Set<?>)message.get(MESSAGE_INCLUDE_PROPERTIES));
if (includes == null) {
includes = messageIncludeProperties;
}
// copy all the contents
for (Map.Entry<String, Object> e : message.entrySet()) {
if ((includes.contains(e.getKey())
|| messageIncludeProperties.contains(e.getKey()))
&& !filter.contains(e.getKey())) {
copy.put(e.getKey(), e.getValue());
}
}
}
}
代码示例来源:origin: org.apache.servicemix.cxf/org.apache.servicemix.cxf.transport.nmr
for (Map.Entry<String, Object> ent : message.entrySet()) {
代码示例来源:origin: org.apache.servicemix/servicemix-cxf-se
for (Map.Entry<String, Object> ent : inMessage.entrySet()) {
代码示例来源:origin: org.apache.cxf/cxf-rt-transports-jbi
for (Map.Entry<String, Object> ent : inMessage.entrySet()) {
代码示例来源:origin: org.apache.servicemix.cxf/org.apache.servicemix.cxf.transport.nmr
for (Map.Entry<String, Object> ent : outMessage.entrySet()) {
内容来源于网络,如有侵权,请联系作者删除!