Examples of ReturnValue


Examples of org.wso2.carbon.rulecep.commons.ReturnValue

            if (result == null) {
                if (log.isDebugEnabled()) {
                    log.debug("Evaluation of the XPath :  " + xPath + " result in null," +
                            " returning given default value");
                }
                return new ReturnValue(defaultValue);
            }
            ReturnValue returnValue = new ReturnValue(result);
            returnValue.setFresh(true);
            return returnValue;
        } catch (JaxenException e) {
            throw new LoggedRuntimeException("Error when evaluating XPath : " + xPath, log);
        }
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.ReturnValue

            MessageContext messageContext = ((MessageContext) message);
            OMElement returnElement = messageContext.getEnvelope().getBody().getFirstElement();
            if (returnElement == null) {
                returnElement = messageContext.getEnvelope().getBody();
            }
            ReturnValue returnValue = new ReturnValue(returnElement);
            returnValue.setFresh(true);
            return returnValue;
        }
        return null;
    }
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.ReturnValue

        return null;
    }

    public ReturnValue extractEnvelope(Object message) {
        if (message instanceof MessageContext) {
            return new ReturnValue(((MessageContext) message).getEnvelope(), true);
        }
        throw new LoggedRuntimeException("Invalid context object, expected Axis2 Message Context",
                log);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.