All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qas.api.ResponseMetadata Maven / Gradle / Ivy

The newest version!
package org.qas.api;

import org.qas.api.internal.PropertyContainer;

import java.util.Map;

/**
 * ResponseMetadata
 *
 * @author: Dzung Nguyen
 * @version: $Id ResponseMetadata 2014-03-26 15:15:30z dungvnguyen $
 * @since 1.0
 */
public class ResponseMetadata extends PropertyContainer {
  public static final String REQUEST_ID = "RequestId";

  public ResponseMetadata() {
    this(null);
  }

  public ResponseMetadata(Map metadata) {
    if (metadata != null) {
      properties.putAll(metadata);
    }
  }

  @Override
  public String toString() {
    return JsonMapper.toJson(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy