/**
 * Implement Har PageTimings Class.
 * 
 * @author Rod Olliver - CA Services
 *
 */

package com.ca.apm.swat.epaplugins.asm.har.json;


import com.ca.apm.swat.epaplugins.asm.har.PageTimings;
import com.ca.apm.swat.epaplugins.asm.har.Assertion;

import java.util.Calendar;

import org.json.JSONObject;

import com.ca.apm.swat.epaplugins.asm.har.Timings;

public class JsonTimings implements Timings {

    JSONObject obj;

    public JsonTimings(JSONObject obj) {
        this.obj = obj;
    }

    public Integer getDns() {
        return obj.getInt("dns");
    }

    public Integer getConnect() {
        return obj.getInt("connect");
    }

    public int getSend() {
        return obj.getInt("send");
    }

    public int getWait() {
        return obj.getInt("wait");
    }

    public int getReceive() {
        return obj.getInt("receive");
    }

    public int getSsl() {
        return obj.getInt("ssl");
    }

    public Integer getBlocked() {
        return obj.getInt("blocked");
    }

    public String getComment() {
        return obj.getString("comment");
    }

}
@@ -137,145 +137,8 @@
 ;%0A%0A%0A
-import com.ca.apm.swat.epaplugins.asm.har.PageTimings;%0Aimport com.ca.apm.swat.epaplugins.asm.har.Assertion;%0A%0Aimport java.util.Calendar;%0A%0A
 impo

remove unnecessary imports