Package com.mes.sdk.reporting

Source Code of com.mes.sdk.reporting.ReportingResponse

package com.mes.sdk.reporting;

import java.util.HashMap;

import com.mes.sdk.core.ResponseObject;
import com.mes.sdk.exception.MesRuntimeException;

/**
* The ReportingResponse adds to {@link ResponseObject} with the data return from the Reporting API.
* @author brice
*
*/
public class ReportingResponse extends ResponseObject {
 
  public ReportingResponse(int httpCode, String httpText, String rawResponse, float duration) {
    super(null, httpCode, httpText, rawResponse, duration);
  }

  @Override
  public HashMap<String, String> getResponseValues() {
    throw new MesRuntimeException("Response values not supported via Reporting API.");
  }

  @Override
  public String getResponseValue(String key) {
    throw new MesRuntimeException("Response values not supported via Reporting API.");
  }
 
}
TOP

Related Classes of com.mes.sdk.reporting.ReportingResponse

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.