/*
 * @(#)QueuePusherResponse.java        1.00 2013
 *
 * Copyright (c) 2013 OneSource, Consultoria Informatica.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of OneSource
 * Consultoria Informatica. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with OneSource.
 */

package net.floodlightcontroller.queuepusher;

public class QueuePusherResponse {

	public QueuePusherResponseCode code;
	public String out;
	public String err;
	public String qid;
	
	public QueuePusherResponse(QueuePusherResponseCode code) {
		this.code = code;
		this.out = "";
		this.err = "";
		this.qid = "";
	}
	
	public QueuePusherResponse(QueuePusherResponseCode code, String out) {
		this.code = code;
		this.out = out == null ? "" : out;
		this.err = "";
		this.qid = "";
	}
	
	public QueuePusherResponse(QueuePusherResponseCode code, String out, String err) {
		this.code = code;
		this.out = out == null ? "" : out;
		this.err = err == null ? "" : err;
		this.qid = "";
	}
	
	public QueuePusherResponse(QueuePusherResponseCode code, String out, String err, int qid) {
		this.code = code;
		this.out = out == null ? "" : out;
		this.err = err == null ? "" : err;
		this.qid = qid == 0 ? "" : (String)(""+qid);
	}
	
	@Override
	public String toString() {
		return code + ": " + out;
	}
	
}

@@ -157,52 +157,17 @@
  is 
-the confidential and proprietary information
+copyright
  of 
@@ -175,19 +175,16 @@
 neSource
-%0A *
  Consult
@@ -204,105 +204,15 @@
 ica.
- (%22Confidential Information%22).  You shall not%0A * disclose such Confidential Information and shall
+%0A * You
  use
@@ -222,19 +222,16 @@
  only in
-%0A *
  accorda
@@ -255,16 +255,19 @@
 s of the
+%0A *
  license

Update QueuePusherResponse.java