public Object clone() { Via retval = (Via) super.clone(); if (this.sentProtocol != null) retval.sentProtocol = (Protocol) this.sentProtocol.clone(); if (this.sentBy != null) retval.sentBy = (HostPort) this.sentBy.clone(); if ( this.getRPort() != -1) retval.setParameter(RPORT,this.getRPort()); return retval; }
/** * Set the q value * @param qValue float to set * @throws IllegalArgumentException if qValue is <0.0 or >1.0 */ public void setQValue(float qValue) throws InvalidArgumentException { if (qValue == -1) super.removeParameter(ParameterNames.Q); super.setParameter(ParameterNames.Q, qValue); }
@Override public Object clone() { AcceptLanguageList retval = new AcceptLanguageList(); retval.clonehlist(this.hlist); return retval; }
public Object clone() { ContactList retval = new ContactList(); retval.clonehlist(this.hlist); return retval; } /**
/** * 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); } }
public Object clone() { AuthenticationInfoList retval = new AuthenticationInfoList(); retval.clonehlist(this.hlist); return retval; }
/** Returns the CNonce value of this AuthenticationInfoHeader. * * @return the String representing the cNonce information, null if value is * not set. * @since v1.1 */ public String getCNonce() { return this.getParameter(ParameterNames.CNONCE); }
/** * Get the RESPONSE value (or null if it does not exist). * * @return String response parameter value. */ public String getResponse() { return (String) getParameterValue(ParameterNames.RESPONSE); }
/** * Remove the q value. * @since 1.0 */ public void removeQValue() { removeParameter("q"); }
/** Get the content subtype. *@return the content subtype string (or null if not set). */ public String getContentSubType() { return mediaRange == null ? null : mediaRange.getSubtype(); }
/** Get the charset parameter. */ public String getCharset() { return this.getParameter("charset"); }
protected StringBuilder encodeBody(StringBuilder buffer) { if (callIdentifier != null) callIdentifier.encode(buffer); return buffer; }
/** * get QValue field * * @return float */ public float getQValue() { return getParameterAsFloat("q"); }
/** Returns the "targetname" value of this AuthenticationInfoHeader. * @return the String representing the targetname information. */ public String getTargetName() { return this.getParameter(ParameterNames.TARGET_NAME); }