本文整理了Java中javax.servlet.sip.URI.setParameter()
方法的一些代码示例,展示了URI.setParameter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.setParameter()
方法的具体详情如下:
包路径:javax.servlet.sip.URI
类名称:URI
方法名:setParameter
[英]Sets the value of the named parameter. If this URL previously contained a value for the given parameter name, then the old value is replaced by the specified value. The setting of a flag parameter is indicated by specifying a zero-length String for the parameter value.
[中]设置命名参数的值。如果此URL以前包含给定参数名的值,则旧值将替换为指定值。通过为参数值指定长度为零的字符串来指示标志参数的设置。
代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl
/**
* {@inheritDoc}
*/
public void encodeURI(URI uri) {
// no need to encode the id it is done automatically in setParameter method of the uri
// Issue 1299 Sip request contains ApplicationSessionKey in request URI is not dispatched to existing SippApplicationSession
// http://code.google.com/p/mobicents/issues/detail?id=1299
uri.setParameter(SIP_APPLICATION_KEY_PARAM_NAME, getId());
}
代码示例来源:origin: org.restcomm/restcomm-connect.telephony.api
parName = keyValPair.substring(0, equalsPos);
parVal = keyValPair.substring(equalsPos+1);
reqURI.setParameter(parName, parVal);
if(logger.isDebugEnabled()) {
logger.debug("ReqURI pars ="+parName+"="+parVal+" equalsPos="+equalsPos+" keyValPair="+keyValPair);
内容来源于网络,如有侵权,请联系作者删除!