Ejemplo n.º 1
0
 /**
  * Convert 200502 wsrm:SequenceAcknowledgement with 200508 WS-Addressing namespace to internal
  * form.
  *
  * @param exposed (non-<code>null</code>)
  * @return converted
  */
 public static SequenceAcknowledgement convert(
     org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement exposed) {
   SequenceAcknowledgement internal = new SequenceAcknowledgement();
   internal.setIdentifier(convert(exposed.getIdentifier()));
   List<SequenceAcknowledgement.AcknowledgementRange> internalRanges =
       internal.getAcknowledgementRange();
   for (org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement.AcknowledgementRange range :
       exposed.getAcknowledgementRange()) {
     SequenceAcknowledgement.AcknowledgementRange internalRange =
         new SequenceAcknowledgement.AcknowledgementRange();
     internalRange.setLower(range.getLower());
     internalRange.setUpper(range.getUpper());
     internalRanges.add(internalRange);
     putAll(range.getOtherAttributes(), internalRange.getOtherAttributes());
   }
   addAll(exposed.getAny(), internal.getAny());
   putAll(exposed.getOtherAttributes(), internal.getOtherAttributes());
   return internal;
 }
Ejemplo n.º 2
0
 /**
  * Convert wsrm:SequenceAcknowledgement to 200502 version with 200508 WS-Addressing namespace.
  *
  * @param internal (non-<code>null</code>)
  * @return converted
  */
 public static org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement convert200502wsa15(
     SequenceAcknowledgement internal) {
   org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement exposed =
       RMUtils.getWSRM200502WSA200508Factory().createSequenceAcknowledgement();
   exposed.setIdentifier(convert200502wsa15(internal.getIdentifier()));
   List<org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement.AcknowledgementRange>
       exposedRanges = exposed.getAcknowledgementRange();
   for (SequenceAcknowledgement.AcknowledgementRange range : internal.getAcknowledgementRange()) {
     org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement.AcknowledgementRange exposedRange =
         new org.apache.cxf.ws.rm.v200502wsa15.SequenceAcknowledgement.AcknowledgementRange();
     exposedRange.setLower(range.getLower());
     exposedRange.setUpper(range.getUpper());
     exposedRanges.add(exposedRange);
     putAll(range.getOtherAttributes(), exposedRange.getOtherAttributes());
   }
   addAll(internal.getAny(), exposed.getAny());
   putAll(internal.getOtherAttributes(), exposed.getOtherAttributes());
   return exposed;
 }