/** * Gets the duration value of the RetryAfterHeader. This duration value * is relative time. * * @return the duration value of the RetryAfterHeader, return zero if not * set. * */ public int getDuration() { if (this.getParameter(DURATION) == null) return -1; else return super.getParameterAsInt(DURATION); } }