本文整理汇总了Java中org.apache.cxf.message.Exchange.isOneWay方法的典型用法代码示例。如果您正苦于以下问题:Java Exchange.isOneWay方法的具体用法?Java Exchange.isOneWay怎么用?Java Exchange.isOneWay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cxf.message.Exchange
的用法示例。
在下文中一共展示了Exchange.isOneWay方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleMessage
import org.apache.cxf.message.Exchange; //导入方法依赖的package包/类
@Override
public void handleMessage(Message message) throws Fault
{
Exchange exchange = message.getExchange();
if (exchange.isOneWay() && !isRequestor(message) && factory != null)
{
factory.getWrapper().storeCurrentThreadSelector(exchange);
}
}
示例2: setNamespaceContextSelector
import org.apache.cxf.message.Exchange; //导入方法依赖的package包/类
protected void setNamespaceContextSelector(Exchange exchange)
{
if (exchange.isOneWay() && nsCtxSelectorFactory != null)
{
nsCtxSelectorFactory.getWrapper().setCurrentThreadSelector(exchange);
}
}
示例3: clearNamespaceContextSelector
import org.apache.cxf.message.Exchange; //导入方法依赖的package包/类
protected void clearNamespaceContextSelector(Exchange exchange)
{
if (exchange.isOneWay() && nsCtxSelectorFactory != null)
{
nsCtxSelectorFactory.getWrapper().clearCurrentThreadSelector(exchange);
}
}
示例4: isOneWay
import org.apache.cxf.message.Exchange; //导入方法依赖的package包/类
/**
* @param message the message under consideration
* @return true iff the message has been marked as oneway
*/
protected final boolean isOneWay(Message message) {
Exchange ex = message.getExchange();
return ex == null ? false : ex.isOneWay();
}
示例5: isOneway
import org.apache.cxf.message.Exchange; //导入方法依赖的package包/类
private boolean isOneway(Exchange exchange) {
return exchange != null && exchange.isOneWay();
}