/** * Convert wsrm:AcceptType to 200502 version with 200408 WS-Addressing namespace. * * @param internal (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ private static org.apache.cxf.ws.rm.v200502.AcceptType convert200502(AcceptType internal) { if (internal == null) { return null; } org.apache.cxf.ws.rm.v200502.AcceptType exposed = RMUtils.getWSRM200502Factory().createAcceptType(); exposed.setAcksTo( org.apache.cxf.ws.addressing.VersionTransformer.convert(internal.getAcksTo())); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }
/** * Convert wsrm:AcceptType to 200502 version with 200508 WS-Addressing namespace. * * @param internal (may be <code>null</code>) * @return converted (<code>null</code> if internal is <code>null</code>) */ private static org.apache.cxf.ws.rm.v200502wsa15.AcceptType convert200502wsa15( AcceptType internal) { if (internal == null) { return null; } org.apache.cxf.ws.rm.v200502wsa15.AcceptType exposed = RMUtils.getWSRM200502WSA200508Factory().createAcceptType(); exposed.setAcksTo(internal.getAcksTo()); addAll(internal.getAny(), exposed.getAny()); putAll(internal.getOtherAttributes(), exposed.getOtherAttributes()); return exposed; }