- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.google.gdata.client.youtube.YouTubeQuery.getCustomParameterValue()
方法的一些代码示例,展示了YouTubeQuery.getCustomParameterValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YouTubeQuery.getCustomParameterValue()
方法的具体详情如下:
包路径:com.google.gdata.client.youtube.YouTubeQuery
类名称:YouTubeQuery
方法名:getCustomParameterValue
暂无
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Sets the value of the {@code location-radius} parameter. Format is
* "100km". Valid units of measurement are "ft", "mi", "m", and "km".
* @return The current search radius.
*/
public String getLocationRadius() {
return getCustomParameterValue(LOCATION_RADIUS);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Sets the value of the {@code location-radius} parameter. Format is
* "100km". Valid units of measurement are "ft", "mi", "m", and "km".
* @return The current search radius.
*/
public String getLocationRadius() {
return getCustomParameterValue(LOCATION_RADIUS);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code lr} parameter.
*
* @return value of the {@code lr} parameter; a language code
*/
public String getLanguageRestrict() {
return getCustomParameterValue(LANGUAGE_RESTRICT);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code lr} parameter.
*
* @return value of the {@code lr} parameter; a language code
*/
public String getLanguageRestrict() {
return getCustomParameterValue(LANGUAGE_RESTRICT);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Returns {@code true} if the query only wants results that have latitude
* and longitude information.
* @return {@code true} if the query is restricted by location, {@code false} otherwise.
*/
public boolean hasRestrictLocation() {
String location = getCustomParameterValue(LOCATION);
return location != null && location.endsWith("!");
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code vq} parameter.
*
* @return current query string
* @deprecated Please use {@link Query#getFullTextQuery()} instead.
*/
@Deprecated
public String getVideoQuery() {
return getCustomParameterValue(VQ);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code vq} parameter.
*
* @return current query string
* @deprecated Please use {@link Query#getFullTextQuery()} instead.
*/
@Deprecated
public String getVideoQuery() {
return getCustomParameterValue(VQ);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Returns {@code true} if the query only wants results that have latitude
* and longitude information.
* @return {@code true} if the query is restricted by location, {@code false} otherwise.
*/
public boolean hasRestrictLocation() {
String location = getCustomParameterValue(LOCATION);
return location != null && location.endsWith("!");
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code racy} parameter.
*
* @return true if the {@code racy=include} parameter is present
* @deprecated Please use {@link #getSafeSearch()} instead.
*/
@Deprecated
public boolean getIncludeRacy() {
return RACY_INCLUDE.equals(getCustomParameterValue(RACY));
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code racy} parameter.
*
* @return true if the {@code racy=include} parameter is present
* @deprecated Please use {@link #getSafeSearch()} instead.
*/
@Deprecated
public boolean getIncludeRacy() {
return RACY_INCLUDE.equals(getCustomParameterValue(RACY));
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Retrieves the IP restriction set on the current query, if any.
*
* @return the current IP v4 restriction or {@code null} if no IP restriction
* is set.
*
* @see #getCountryRestriction()
*/
public String getIpRestriction() {
String restriction = getCustomParameterValue(RESTRICTION);
if (restriction == null) {
return null;
}
return IP_V4_PATTERN.matcher(restriction).matches() ? restriction : null;
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Returns the value of the {@code location} parameter.
* @return A {@link com.google.gdata.data.geo.impl.GeoRssWhere} element
* describing the center of where to search.
*/
public GeoRssWhere getLocation() {
String location = getCustomParameterValue(LOCATION);
location = location.replaceAll("!", "");
String[] parts = location.split(",");
return new GeoRssWhere(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code uploader} parameter.
*
* @return value of the {@code uploader} parameter.
* @throws IllegalStateException if a value was found in the
* query that cannot be transformed into {@link YouTubeQuery.Uploader}
*/
public Uploader getUploader() {
String stringValue = getCustomParameterValue(UPLOADER);
return Uploader.fromParameterValue(stringValue);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Returns the value of the {@code location} parameter.
* @return A {@link com.google.gdata.data.geo.impl.GeoRssWhere} element
* describing the center of where to search.
*/
public GeoRssWhere getLocation() {
String location = getCustomParameterValue(LOCATION);
location = location.replaceAll("!", "");
String[] parts = location.split(",");
return new GeoRssWhere(Double.parseDouble(parts[0]), Double.parseDouble(parts[1]));
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code safeSearch} parameter.
*
* @return value of the {@code safeSearch} parameter.
* @throws IllegalStateException if a value was found in the
* query that cannot be transformed into {@link YouTubeQuery.SafeSearch}
*/
public SafeSearch getSafeSearch() {
String stringValue = getCustomParameterValue(SAFE_SEARCH);
return SafeSearch.fromParameterValue(stringValue);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code safeSearch} parameter.
*
* @return value of the {@code safeSearch} parameter.
* @throws IllegalStateException if a value was found in the
* query that cannot be transformed into {@link YouTubeQuery.SafeSearch}
*/
public SafeSearch getSafeSearch() {
String stringValue = getCustomParameterValue(SAFE_SEARCH);
return SafeSearch.fromParameterValue(stringValue);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code time} parameter.
*
* @return value of the {@code time} parameter
* @throws IllegalStateException if a time value was found in the
* query that cannot be transformed into {@link YouTubeQuery.Time}
*/
public Time getTime() {
return Time.fromParameterValue(getCustomParameterValue(TIME));
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
/**
* Gets the value of the {@code uploader} parameter.
*
* @return value of the {@code uploader} parameter.
* @throws IllegalStateException if a value was found in the
* query that cannot be transformed into {@link YouTubeQuery.Uploader}
*/
public Uploader getUploader() {
String stringValue = getCustomParameterValue(UPLOADER);
return Uploader.fromParameterValue(stringValue);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code time} parameter.
*
* @return value of the {@code time} parameter
* @throws IllegalStateException if a time value was found in the
* query that cannot be transformed into {@link YouTubeQuery.Time}
*/
public Time getTime() {
return Time.fromParameterValue(getCustomParameterValue(TIME));
}
代码示例来源:origin: com.google.gdata/gdata-java-client
/**
* Gets the value of the {@code orderby} parameter.
*
* @return value of the {@code orderby} parameter.
* @throws IllegalStateException if a time value was found in the
* query that cannot be transformed into {@link YouTubeQuery.OrderBy}
*/
public OrderBy getOrderby() {
String stringValue = getCustomParameterValue(ORDERBY);
if (stringValue != null && stringValue.startsWith("relevance_")) {
return OrderBy.RELEVANCE;
}
return OrderBy.fromParameterValue(stringValue);
}
本文整理了Java中com.google.gdata.client.youtube.YouTubeQuery.getCustomParameterValue()方法的一些代码示例,展示了YouTube
我是一名优秀的程序员,十分优秀!