Package com.tll.common.data

Source Code of com.tll.common.data.Payload

/**
* The Logic Lab
* @author jpk
* Aug 29, 2007
*/
package com.tll.common.data;

import com.tll.IMarshalable;
import com.tll.common.msg.Status;

/**
* Payload - Common container with which to send data to client.
* @author jpk
*/
public class Payload implements IMarshalable {

  protected Status status;

  /**
   * Constructor
   */
  public Payload() {
    super();
    this.status = new Status();
  }

  /**
   * Constructor
   * @param status
   */
  public Payload(Status status) {
    super();
    this.status = status;
  }

  public final Status getStatus() {
    if(status == null) {
      status = new Status();
    }
    return status;
  }

  public final boolean hasErrors() {
    return status == null ? false : status.hasErrors();
  }
}
TOP

Related Classes of com.tll.common.data.Payload

TOP
Copyright © 2018 www.massapi.com. 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.