Home | History | Annotate | Download | only in header

Lines Matching refs:DURATION

53     /** constant DURATION parameter.
55 public static final String DURATION = ParameterNames.DURATION;
57 /** duration field
103 /** remove duration field
106 super.removeParameter(DURATION);
164 * Sets the duration value of the RetryAfterHeader. The retry after value
167 * @param duration - the new duration value of this RetryAfterHeader
172 public void setDuration(int duration) throws InvalidArgumentException {
173 if (duration < 0)
174 throw new InvalidArgumentException("the duration parameter is <0");
175 this.setParameter(DURATION, duration);
179 * Gets the duration value of the RetryAfterHeader. This duration value
182 * @return the duration value of the RetryAfterHeader, return zero if not
188 if (this.getParameter(DURATION) == null) return -1;
189 else return super.getParameterAsInt(DURATION);