Search in sources :

Example 1 with RMFeature

use of org.apache.cxf.ws.rm.feature.RMFeature in project cxf by apache.

the class WSRM12ServerCycleTest method wsrm.

public static RMFeature wsrm(long brtxInterval, long ackInterval) {
    RMAssertion.BaseRetransmissionInterval baseRetransmissionInterval = new RMAssertion.BaseRetransmissionInterval();
    baseRetransmissionInterval.setMilliseconds(Long.valueOf(brtxInterval));
    RMAssertion.AcknowledgementInterval acknowledgementInterval = new RMAssertion.AcknowledgementInterval();
    acknowledgementInterval.setMilliseconds(Long.valueOf(ackInterval));
    RMAssertion rmAssertion = new RMAssertion();
    rmAssertion.setAcknowledgementInterval(acknowledgementInterval);
    rmAssertion.setBaseRetransmissionInterval(baseRetransmissionInterval);
    AcksPolicyType acksPolicy = new AcksPolicyType();
    acksPolicy.setIntraMessageThreshold(0);
    DestinationPolicyType destinationPolicy = new DestinationPolicyType();
    destinationPolicy.setAcksPolicy(acksPolicy);
    RMFeature feature = new RMFeature();
    feature.setRMAssertion(rmAssertion);
    feature.setDestinationPolicy(destinationPolicy);
    feature.setRMNamespace(RM11Constants.NAMESPACE_URI);
    return feature;
}
Also used : AcksPolicyType(org.apache.cxf.ws.rm.manager.AcksPolicyType) RMAssertion(org.apache.cxf.ws.rmp.v200502.RMAssertion) RMFeature(org.apache.cxf.ws.rm.feature.RMFeature) DestinationPolicyType(org.apache.cxf.ws.rm.manager.DestinationPolicyType)

Aggregations

RMFeature (org.apache.cxf.ws.rm.feature.RMFeature)1 AcksPolicyType (org.apache.cxf.ws.rm.manager.AcksPolicyType)1 DestinationPolicyType (org.apache.cxf.ws.rm.manager.DestinationPolicyType)1 RMAssertion (org.apache.cxf.ws.rmp.v200502.RMAssertion)1