Package com.errplane.util

Examples of com.errplane.util.MergedReports


  private static void sendHttpReport(List<ReportHelper> rhs) {
    try {
      int bytesWritten = 0;
      HTTPPostHelper postHelper = new HTTPPostHelper();
      String rptBody = new MergedReports(rhs).getReportBody();
      bytesWritten += rptBody.length() + 1;
      OutputStream os = postHelper.getOutputStream(errplaneUrl, bytesWritten);
      os.write(rptBody.getBytes());
      os.write('\n');
      if (!postHelper.sendPost(bytesWritten)) {
View Full Code Here


      e.printStackTrace();
    }
  }

  private static void sendUdpReport(List<ReportHelper> rhs) {
    byte[] payloadString = new MergedReports(rhs).getReportBody().getBytes();
    try {
      DatagramPacket packet = new DatagramPacket(payloadString,payloadString.length);
      udpSocket.send(packet);
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.errplane.util.MergedReports

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.