本文整理了Java中org.restlet.util.Series.isEmpty()
方法的一些代码示例,展示了Series.isEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Series.isEmpty()
方法的具体详情如下:
包路径:org.restlet.util.Series
类名称:Series
方法名:isEmpty
暂无
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
public boolean isEmpty() {
if ((this.jaxRsRespHeaders != null) && !this.jaxRsRespHeaders.isEmpty()) {
return false;
}
final Series<Header> headers = getHeaders();
if (headers != null) {
return headers.isEmpty();
}
return true;
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
/**
* Creates a MediaType without any parameters.
*
* @param mediaType
* A MediaType, perhaps with parameters.
* @return Creates a MediaType without any parameters.
*/
public static org.restlet.data.MediaType getMediaTypeWithoutParams(
org.restlet.data.MediaType mediaType) {
if (mediaType == null) {
return null;
}
Series<Parameter> parameters = mediaType.getParameters();
if ((parameters == null) || parameters.isEmpty()) {
return mediaType;
}
return mediaType.getParent();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
if (parameters != null && !parameters.isEmpty()) {
throw new RuntimeException("parameters != null.");
代码示例来源:origin: org.restlet.osgi/org.restlet
if (parameters != null && !parameters.isEmpty()) {
try {
if (params == null) {
代码示例来源:origin: org.restlet.osgi/org.restlet
if (!request.getCookies().isEmpty()) {
addHeader(HEADER_COOKIE, CookieWriter.write(request.getCookies()), headers);
内容来源于网络,如有侵权,请联系作者删除!