public List < Probe > sendProbe ( Probe probe ) throws ProbeSenderException { List < Probe > actualProbesToSend ; try { actualProbesToSend = splitProbe ( probe ) ; } catch ( MalformedURLException | JAXBException | UnsupportedPayloadType e ) { throw new ProbeSenderException ( "Issue splitting the probe." , e ) ; } for ( Probe probeSegment : actualProbesToSend ) { // String payload try { probeTransport . sendProbe ( probeSegment ) ; } catch ( TransportException e ) { // TODO Auto-generated catch block e . printStackTrace ( ) ; } } return actualProbesToSend ; }
Send the probe . It will take the provided probe and then disassemble it into a number of smaller probes based on the max payload size of the transport provided .