protected List<Record> fetchRecords() throws IOException {
  List<Record> records;
  if (recordHandler.getFinishedBytes() != null) {
    records=recordHandler.parseRecords(recordHandler.getFinishedBytes());
    recordHandler.setFinishedBytes(null);
  }
 else {
    byte[] rawResponse=transportHandler.fetchData();
    while ((records=recordHandler.parseRecords(rawResponse)) == null) {
      rawResponse=ArrayConverter.concatenate(rawResponse,transportHandler.fetchData());
    }
    if (records.isEmpty()) {
      throw new WorkflowExecutionException("The configured protocol message was not found, " + "the TLS peer does not send any data.");
    }
  }
  return records;
}

protected List < Record > fetchRecords ( ) throws IOException { List < Record > records ; if ( recordHandler . getFinishedBytes ( ) != null ) { records = recordHandler . parseRecords ( recordHandler . getFinishedBytes ( ) ) ; recordHandler . setFinishedBytes ( null ) ; } else { byte [ ] rawResponse = transportHandler . fetchData ( ) ; while ( ( records = recordHandler . parseRecords ( rawResponse ) ) == null ) { rawResponse = ArrayConverter . concatenate ( rawResponse , transportHandler . fetchData ( ) ) ; } if ( records . isEmpty ( ) ) { throw new WorkflowExecutionException ( "The configured protocol message was not found, " + "the TLS peer does not send any data." ) ; } } return records ; }
fetches a list of records from the server
