本文整理了Java中org.restlet.util.Series.addAll()
方法的一些代码示例,展示了Series.addAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Series.addAll()
方法的具体详情如下:
包路径:org.restlet.util.Series
类名称:Series
方法名:addAll
暂无
代码示例来源:origin: org.restlet/org.restlet
/**
* Sets the modifiable series of parameters.
*
* @param parameters
* The modifiable series of parameters.
*/
public synchronized void setParameters(Series<Parameter> parameters) {
this.parameters.clear();
this.parameters.addAll(parameters);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the modifiable series of parameters. This method clears the current
* series and adds all entries in the parameter series.
*
* @param parameters
* A series of parameters.
*/
public void setParameters(Series<Parameter> parameters) {
synchronized (getParameters()) {
if (parameters != getParameters()) {
getParameters().clear();
if (parameters != null) {
getParameters().addAll(parameters);
}
}
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the modifiable series of parameters. This method clears the current
* series and adds all entries in the parameter series.
*
* @param parameters
* A series of parameters.
*/
public void setParameters(Series<Parameter> parameters) {
synchronized (getParameters()) {
if (parameters != getParameters()) {
getParameters().clear();
if (parameters != null) {
getParameters().addAll(parameters);
}
}
}
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Sets the modifiable series of parameters. This method clears the current
* series and adds all entries in the parameter series.
*
* @param parameters
* A series of parameters.
*/
public void setParameters(Series<Parameter> parameters) {
synchronized (getParameters()) {
if (parameters != getParameters()) {
getParameters().clear();
if (parameters != null) {
getParameters().addAll(parameters);
}
}
}
}
代码示例来源:origin: org.metaeffekt.dcc/dcc-agent-core
httpServer.getContext().getParameters().addAll(sslConfiguration);
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the modifiable series of cookie settings provided by the server.
* Note that when used with HTTP connectors, this property maps to the
* "Set-Cookie" and "Set-Cookie2" headers. This method clears the current
* series and adds all entries in the parameter series.
*
* @param cookieSettings
* A series of cookie settings provided by the server.
*/
public void setCookieSettings(Series<CookieSetting> cookieSettings) {
synchronized (getCookieSettings()) {
if (cookieSettings != getCookieSettings()) {
getCookieSettings().clear();
if (cookieSettings != null) {
getCookieSettings().addAll(cookieSettings);
}
}
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Sets the modifiable series of cookies provided by the client. Note that
* when used with HTTP connectors, this property maps to the "Cookie"
* header. This method clears the current series and adds all entries in the
* parameter series.
*
* @param cookies
* A series of cookies provided by the client.
*/
public void setCookies(Series<Cookie> cookies) {
synchronized (getCookies()) {
if (cookies != getCookies()) {
if (getCookies() != null) {
getCookies().clear();
}
if (cookies != null) {
getCookies().addAll(cookies);
}
}
}
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Sets the modifiable series of cookies provided by the client. Note that
* when used with HTTP connectors, this property maps to the "Cookie"
* header. This method clears the current series and adds all entries in the
* parameter series.
*
* @param cookies
* A series of cookies provided by the client.
*/
public void setCookies(Series<Cookie> cookies) {
synchronized (getCookies()) {
if (cookies != getCookies()) {
if (getCookies() != null) {
getCookies().clear();
}
if (cookies != null) {
getCookies().addAll(cookies);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!