org.apache.cxf.message.Message.resetContextCache()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中org.apache.cxf.message.Message.resetContextCache()方法的一些代码示例,展示了Message.resetContextCache()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.resetContextCache()方法的具体详情如下:
包路径:org.apache.cxf.message.Message
类名称:Message
方法名:resetContextCache

Message.resetContextCache介绍

[英]Resets the cache of contextual properties that messages may contain. Subsequent calls to getContextualProperty will likely recalculate the cache.
[中]重置消息可能包含的上下文属性的缓存。对getContextualProperty的后续调用可能会重新计算缓存。

代码示例

代码示例来源:origin: apache/cxf

public void resetContextCache() {
  message.resetContextCache();
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

private void resetContextCaches() {
  if (inMessage != null) {
    inMessage.resetContextCache();
  }
  if (outMessage != null) {
    outMessage.resetContextCache();
  }
  if (inFaultMessage != null) {
    inFaultMessage.resetContextCache();
  }
  if (outFaultMessage != null) {
    outFaultMessage.resetContextCache();
  }
}

代码示例来源:origin: org.apache.cxf/cxf-core

public void resetContextCache() {
  message.resetContextCache();
}

代码示例来源:origin: org.apache.cxf/cxf-core

private void resetContextCaches() {
  if (inMessage != null) {
    inMessage.resetContextCache();
  }
  if (outMessage != null) {
    outMessage.resetContextCache();
  }
  if (inFaultMessage != null) {
    inFaultMessage.resetContextCache();
  }
  if (outFaultMessage != null) {
    outFaultMessage.resetContextCache();
  }
}

代码示例来源:origin: apache/cxf

private void resetContextCaches() {
  if (inMessage != null) {
    inMessage.resetContextCache();
  }
  if (outMessage != null) {
    outMessage.resetContextCache();
  }
  if (inFaultMessage != null) {
    inFaultMessage.resetContextCache();
  }
  if (outFaultMessage != null) {
    outFaultMessage.resetContextCache();
  }
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

public void resetContextCache() {
  message.resetContextCache();
}

代码示例来源:origin: org.apache.cxf/cxf-api

public void resetContextCache() {
  message.resetContextCache();
}

代码示例来源:origin: org.apache.cxf/cxf-api

private void resetContextCaches() {
  if (inMessage != null) {
    inMessage.resetContextCache();
  }
  if (outMessage != null) {
    outMessage.resetContextCache();
  }
  if (inFaultMessage != null) {
    inFaultMessage.resetContextCache();
  }
  if (outFaultMessage != null) {
    outFaultMessage.resetContextCache();
  }
}

代码示例来源:origin: org.apache.cxf/cxf-core

void setContextualProperty(String key, Object v) {
  if (message instanceof MessageImpl) {
    ((MessageImpl)message).setContextualProperty(key, v);
  }  else if (message instanceof AbstractWrappedMessage) {
    ((AbstractWrappedMessage)message).setContextualProperty(key, v);
  } else {
    //cannot set directly.  Just invalidate the cache.
    message.resetContextCache();
  }
}

代码示例来源:origin: apache/cxf

void setContextualProperty(String key, Object v) {
  if (message instanceof MessageImpl) {
    ((MessageImpl)message).setContextualProperty(key, v);
  }  else if (message instanceof AbstractWrappedMessage) {
    ((AbstractWrappedMessage)message).setContextualProperty(key, v);
  } else {
    //cannot set directly.  Just invalidate the cache.
    message.resetContextCache();
  }
}

代码示例来源:origin: apache/cxf

private void setMessageContextProperty(Message m, String key, Object value) {
  if (m == null) {
    return;
  }
  if (m instanceof MessageImpl) {
    ((MessageImpl)m).setContextualProperty(key, value);
  }  else if (m instanceof AbstractWrappedMessage) {
    ((AbstractWrappedMessage)m).setContextualProperty(key, value);
  } else {
    //cannot set directly.  Just invalidate the cache.
    m.resetContextCache();
  }
}

代码示例来源:origin: org.apache.cxf/cxf-core

private void setMessageContextProperty(Message m, String key, Object value) {
  if (m == null) {
    return;
  }
  if (m instanceof MessageImpl) {
    ((MessageImpl)m).setContextualProperty(key, value);
  }  else if (m instanceof AbstractWrappedMessage) {
    ((AbstractWrappedMessage)m).setContextualProperty(key, value);
  } else {
    //cannot set directly.  Just invalidate the cache.
    m.resetContextCache();
  }
}

代码示例来源:origin: apache/cxf

public void removeToken(Message message, SecurityToken securityToken) {
  // Remove token from cache
  message.getExchange().getEndpoint().remove(SecurityConstants.TOKEN);
  message.getExchange().getEndpoint().remove(SecurityConstants.TOKEN_ID);
  message.getExchange().remove(SecurityConstants.TOKEN_ID);
  message.getExchange().remove(SecurityConstants.TOKEN);
  message.resetContextCache();
  if (securityToken != null) {
    TokenStoreUtils.getTokenStore(message).remove(securityToken.getId());
  }
}

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

public void removeToken(Message message, SecurityToken securityToken) {
  // Remove token from cache
  message.getExchange().getEndpoint().remove(SecurityConstants.TOKEN);
  message.getExchange().getEndpoint().remove(SecurityConstants.TOKEN_ID);
  message.getExchange().remove(SecurityConstants.TOKEN_ID);
  message.getExchange().remove(SecurityConstants.TOKEN);
  message.resetContextCache();
  if (securityToken != null) {
    TokenStoreUtils.getTokenStore(message).remove(securityToken.getId());
  }
}

代码示例来源:origin: apache/cxf

message.resetContextCache();
message.put(Conduit.class, c);
return c;

代码示例来源:origin: org.apache.cxf/cxf-core

message.resetContextCache();
message.put(Conduit.class, c);
return c;

代码示例来源:origin: org.apache.cxf/cxf-api

message.resetContextCache();
message.put(Conduit.class, c);
return c;

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

message.resetContextCache();
message.put(Conduit.class, c);
return c;

相关文章