/** * Set the query header when provided as a name-value pair. * @param nameValue qeuery header provided as a name,value pair. */ public void setQHeader(NameValue nameValue) { this.qheaders.set(nameValue); }
public Object clone() { NameValueList retval = new NameValueList(); retval.setSeparator(this.separator); if(hmap != null) { Iterator<NameValue> it = this.iterator(); while (it.hasNext()) { retval.set((NameValue) ((NameValue) it.next()).clone()); } } return retval; }
/** Set the parameter as given. *@param nameValue - parameter to set. */ public void setUriParameter(NameValue nameValue) { this.uriParms.set(nameValue); }
/** * Sets the <code>gr</code> parameter. * * Not part on the interface since gruu is not part of the base RFC3261. */ public void setGrParam(String value) { this.uriParms.set(GRUU, value); // JvB: fixed to not add duplicates }
/** Sets the value of the user parameter. The user URI parameter exists to * distinguish telephone numbers from user names that happen to look like * telephone numbers. This is equivalent to setParameter("user", user). * * @param usertype New value String value of the method parameter */ public void setUserParam(String usertype) { uriParms.set(USER, usertype); }
/** * Set the Method * @param method method parameter */ public void setMethod(String method) { uriParms.set(METHOD, method); }
public void setRefresher(String refresher) { this.parameters.set(REFRESHER,refresher); } }
/** Sets the value of the <code>lr</code> parameter of this SipURI. The lr * parameter, when present, indicates that the element responsible for * this resource implements the routing mechanisms specified in RFC 3261. * This parameter will be used in the URIs proxies place in the * Record-Route header field values, and may appear in the URIs in a * pre-existing route set. */ public void setLrParam() { this.uriParms.set("lr",null); // JvB: fixed to not add duplicates }
public void setTempGruuParam(String value) { this.parameters.set(ParameterNames.TEMP_GRUU, value); } }
/** Set the parameter given a name and value. * * @param nameValue - the name value of the parameter to set. */ public void setParameter(NameValue nameValue) { this.parameters.set(nameValue); }
/** * set the specified parameter * @param nv NameValue to set */ public void setParameter(NameValue nv) { authParams.set(nv); }
/** Set the expiry time in seconds. *@param expiryDeltaSeconds exipry time. */ public void setExpires(int expiryDeltaSeconds) { Integer deltaSeconds = Integer.valueOf(expiryDeltaSeconds); this.parameters.set(EXPIRES, deltaSeconds); }
/** * <p>Add another Event Charging Function (ECF) Address to this header</p> * * @param ecfAddress - the address to set in the ECF parameter * @throws ParseException */ public void addEventChargingFunctionAddress(String ecfAddress) throws ParseException { if (ecfAddress == null) throw new NullPointerException( "JAIN-SIP Exception, " + "P-Charging-Function-Addresses, setEventChargingFunctionAddress(), the ecfAddress parameter is null."); this.parameters.set(ParameterNamesIms.ECF, ecfAddress); }
/** * Set the cause. * *@param cause - cause to set. */ public void setCause(int cause) throws javax.sip.InvalidArgumentException { this.parameters.set("cause", Integer.valueOf(cause)); }
/** set the specified parameter * @param name String to set * @param value Object to set */ public void setParm(String name, Object value) { NameValue nv = new NameValue(name, value); parameters.set(nv); }
/** * Set a given URI parameter. Note - parameter must be properly * encoded before the function is called. * @param name Name of the parameter to set. * @param value value of the parameter to set. */ public void setUriParm(String name, Object value) { NameValue nv = new NameValue(name, value); uriParms.set(nv); }
/** set the PostDial field * @param p String to set */ public void setPostDial(String p) { NameValue nv = new NameValue(POSTDIAL, p); parameters.set(nv); }
/** Sets the value of the specified header fields to be included in a * request constructed from the URI. If the header already had a value it * will be overwritten. * * @param name - a String specifying the header name * @param value - a String specifying the header value */ public void setHeader(String name, String value) { NameValue nv = new NameValue(name, value); qheaders.set(nv); }
/** * set the Q-value parameter * @param qValue float to set */ public void setQValue(float qValue) throws InvalidArgumentException { if (qValue != -1 && (qValue < 0 || qValue > 1)) throw new InvalidArgumentException( "JAIN-SIP Exception, Contact, setQValue(), " + "the qValue is not between 0 and 1"); this.parameters.set(Q, Float.valueOf(qValue)); }
/** Set the default parameters for this URI. * Do nothing if the parameter is already set to some value. * Otherwise set it to the given value. * @param name Name of the parameter to set. * @param value value of the parameter to set. */ public void setDefaultParm(String name, Object value) { if (uriParms.getValue(name) == null) { NameValue nv = new NameValue(name, value); uriParms.set(nv); } }