public ProbeWrapper unmarshal(String payload) throws ProbeParseException {
    Probe xmlProbe = parseProbePayload(payload);

    ProbeWrapper probe = new ProbeWrapper(xmlProbe.getId());
    probe.setClientId(xmlProbe.getClient());
    probe.setDESVersion(xmlProbe.getDESVersion());
    probe.setRespondToPayloadType(xmlProbe.getRespondToPayloadType());

    if (xmlProbe.getRa() != null) {
      for (RespondTo respondToUrl : xmlProbe.getRa().getRespondTo()) {
        probe.addRespondToURL(respondToUrl.getLabel(), respondToUrl.getValue());
      }
    }

    if (xmlProbe.getScids() != null) {
      for (String scid : xmlProbe.getScids().getServiceContractID()) {
        probe.addServiceContractID(scid);
      }
    }

    if (xmlProbe.getSiids() != null) {
      for (String siid : xmlProbe.getSiids().getServiceInstanceID()) {
        probe.addServiceInstanceID(siid);
      }
    }

    return probe;
  }
public ProbeWrapper unmarshal ( String payload ) throws ProbeParseException { Probe xmlProbe = parseProbePayload ( payload ) ; ProbeWrapper probe = new ProbeWrapper ( xmlProbe . getId ( ) ) ; probe . setClientId ( xmlProbe . getClient ( ) ) ; probe . setDESVersion ( xmlProbe . getDESVersion ( ) ) ; probe . setRespondToPayloadType ( xmlProbe . getRespondToPayloadType ( ) ) ; if ( xmlProbe . getRa ( ) != null ) { for ( RespondTo respondToUrl : xmlProbe . getRa ( ) . getRespondTo ( ) ) { probe . addRespondToURL ( respondToUrl . getLabel ( ) , respondToUrl . getValue ( ) ) ; } } if ( xmlProbe . getScids ( ) != null ) { for ( String scid : xmlProbe . getScids ( ) . getServiceContractID ( ) ) { probe . addServiceContractID ( scid ) ; } } if ( xmlProbe . getSiids ( ) != null ) { for ( String siid : xmlProbe . getSiids ( ) . getServiceInstanceID ( ) ) { probe . addServiceInstanceID ( siid ) ; } } return probe ; }
Create a new ProbeWrapper from the wireline payload.

@param payload - the string serialized probe that came directly off the
wire. This should only be in XML
@return the ProbeWrapper instance
@throws ProbeParseException if there was an issue parsing the payload