本文整理汇总了Java中org.apache.axis2.context.OperationContext.isComplete方法的典型用法代码示例。如果您正苦于以下问题:Java OperationContext.isComplete方法的具体用法?Java OperationContext.isComplete怎么用?Java OperationContext.isComplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.axis2.context.OperationContext
的用法示例。
在下文中一共展示了OperationContext.isComplete方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addMessageContext
import org.apache.axis2.context.OperationContext; //导入方法依赖的package包/类
public void addMessageContext(MessageContext msgContext,
OperationContext opContext) throws AxisFault {
if (!opContext.isComplete()) {
opContext.getMessageContexts().put(MESSAGE_LABEL_OUT_VALUE,
msgContext);
opContext.setComplete(true);
} else {
throw new AxisFault(Messages.getMessage("mepcompleted"));
}
}
示例2: registerOperationContext
import org.apache.axis2.context.OperationContext; //导入方法依赖的package包/类
public void registerOperationContext(MessageContext msgContext,
OperationContext operationContext)
throws AxisFault {
msgContext.setAxisOperation(this);
msgContext.getConfigurationContext().registerOperationContext(msgContext.getMessageID(),
operationContext);
operationContext.addMessageContext(msgContext);
msgContext.setOperationContext(operationContext);
if (operationContext.isComplete()) {
operationContext.cleanup();
}
}
示例3: registerMessageContext
import org.apache.axis2.context.OperationContext; //导入方法依赖的package包/类
public void registerMessageContext(MessageContext msgContext,
OperationContext operationContext) throws AxisFault {
msgContext.setAxisOperation(this);
operationContext.addMessageContext(msgContext);
msgContext.setOperationContext(operationContext);
if (operationContext.isComplete()) {
operationContext.cleanup();
}
}
示例4: addMessageContext
import org.apache.axis2.context.OperationContext; //导入方法依赖的package包/类
public void addMessageContext(MessageContext msgContext, OperationContext opContext)
throws AxisFault {
if (!opContext.isComplete()) {
opContext.getMessageContexts().put(MESSAGE_LABEL_IN_VALUE, msgContext);
opContext.setComplete(true);
} else {
throw new AxisFault(Messages.getMessage("mepcompleted"));
}
}
示例5: flowComplete
import org.apache.axis2.context.OperationContext; //导入方法依赖的package包/类
@Override
// Handle IN_ONLY operations
public void flowComplete(MessageContext msgContext) {
if (msgContext.getEnvelope() == null) {
return;
}
AxisService axisService = msgContext.getAxisService();
if (axisService == null ||
SystemFilter.isFilteredOutService(axisService.getAxisServiceGroup()) ||
axisService.isClientSide()) {
return;
}
try {
// Process Request Counter
OperationContext opContext = msgContext.getOperationContext();
if (opContext != null && opContext.isComplete()) {
AxisOperation axisOp = opContext.getAxisOperation();
if (axisOp != null && axisOp.isControlOperation()) {
return;
}
if (axisOp != null) {
String mep = axisOp.getMessageExchangePattern();
if (mep != null &&
(mep.equals(WSDL2Constants.MEP_URI_IN_ONLY) ||
mep.equals(WSDL2Constants.MEP_URI_ROBUST_IN_ONLY))) {
// Increment operation counter
final AxisOperation axisOperation = msgContext.getAxisOperation();
if (axisOperation != null) {
Parameter operationParameter =
axisOperation.getParameter(StatisticsConstants.IN_OPERATION_COUNTER);
if (operationParameter != null) {
((AtomicInteger) operationParameter.getValue()).incrementAndGet();
} else {
log.error(StatisticsConstants.IN_OPERATION_COUNTER +
" has not been set for operation " +
axisService.getName() + "." + axisOperation.getName());
return;
}
// Calculate response times
try {
ResponseTimeCalculator.calculateResponseTimes(msgContext);
} catch (AxisFault axisFault) {
log.error("Cannot compute response times", axisFault);
}
}
// Increment global counter
Parameter globalRequestCounter =
msgContext.getParameter(StatisticsConstants.GLOBAL_REQUEST_COUNTER);
((AtomicInteger) globalRequestCounter.getValue()).incrementAndGet();
updateCurrentInvocationGlobalStatistics(msgContext);
}
}
}
} catch (Throwable e) { // Catching Throwable since exceptions here should not be propagated up
log.error("Could not call InOnlyMEPHandler.flowComplete", e);
}
}