本文整理了Java中org.apache.axis2.context.MessageContext.getPropertyNonReplicable()
方法的一些代码示例,展示了MessageContext.getPropertyNonReplicable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MessageContext.getPropertyNonReplicable()
方法的具体详情如下:
包路径:org.apache.axis2.context.MessageContext
类名称:MessageContext
方法名:getPropertyNonReplicable
暂无
代码示例来源:origin: org.apache.synapse/synapse-core
/**
* Factory method to create <code>StatisticsRecord</code> instances
*
* @param synCtx Current Message through synapse
* @return StatisticsRecord instance
*/
public static StatisticsRecord getStatisticsRecord(MessageContext synCtx) {
String messageId = synCtx.getMessageID();
org.apache.axis2.context.MessageContext axisMC = ((Axis2MessageContext) synCtx)
.getAxis2MessageContext();
String remoteIP = (String) axisMC.getPropertyNonReplicable(
org.apache.axis2.context.MessageContext.REMOTE_ADDR);
String domainName = (String) axisMC.getPropertyNonReplicable(NhttpConstants.REMOTE_HOST);
StatisticsRecord statisticsRecord = new StatisticsRecord(messageId, remoteIP, domainName);
if (log.isDebugEnabled()) {
log.debug("Created a StatisticsRecord : " + statisticsRecord);
}
return statisticsRecord;
}
}
代码示例来源:origin: org.wso2.carbon.appmgt/org.wso2.carbon.appmgt.gateway
remoteIP = (String) axisMC.getProperty("REMOTE_ADDR");
String domainName = (String) axisMC.getPropertyNonReplicable(NhttpConstants.REMOTE_HOST);
代码示例来源:origin: org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.gateway
remoteIP = (String) axisMC.getProperty(org.apache.axis2.context.MessageContext.REMOTE_ADDR);
String domainName = (String) axisMC.getPropertyNonReplicable(NhttpConstants.REMOTE_HOST);
代码示例来源:origin: wso2/wso2-synapse
String roleID = null;
HttpServletRequest request =
(HttpServletRequest) messageContext.getPropertyNonReplicable(
HTTPConstants.MC_HTTP_SERVLETREQUEST);
if (request != null) {
代码示例来源:origin: wso2/wso2-synapse
(HttpServletRequest) messageContext.getPropertyNonReplicable(
HTTPConstants.MC_HTTP_SERVLETREQUEST);
if (request != null) {
代码示例来源:origin: org.apache.synapse/synapse-core
= (CacheReplicationCommand) msgCtx.getPropertyNonReplicable(
CachingConstants.STATE_REPLICATION_OBJECT);
if (cacheReplicationCommand != null) {
代码示例来源:origin: wso2/wso2-synapse
newMC.setNonReplicableProperty(key, ori.getPropertyNonReplicable(key));
代码示例来源:origin: org.apache.synapse/synapse-core
newMC.setNonReplicableProperty(key, ori.getPropertyNonReplicable(key));
代码示例来源:origin: wso2/wso2-synapse
newMC.setNonReplicableProperty(key, ori.getPropertyNonReplicable(key));
代码示例来源:origin: wso2/wso2-synapse
boolean canAccess = true;
String remoteIP = (String) axisMC.getPropertyNonReplicable(org.apache.axis2.context.MessageContext.REMOTE_ADDR);
String domainName = (String) axisMC.getPropertyNonReplicable(NhttpConstants.REMOTE_HOST);
代码示例来源:origin: org.apache.synapse/synapse-extensions
boolean canAccess = true;
String remoteIP = (String) axisMC.getPropertyNonReplicable(
org.apache.axis2.context.MessageContext.REMOTE_ADDR);
String domainName = (String) axisMC.getPropertyNonReplicable(NhttpConstants.REMOTE_HOST);
内容来源于网络,如有侵权,请联系作者删除!