本文整理了Java中com.google.gdata.client.Query.<init>
方法的一些代码示例,展示了Query.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.<init>
方法的具体详情如下:
包路径:com.google.gdata.client.Query
类名称:Query
方法名:<init>
[英]Constructs a new Query object that targets a feed. The initial state of the query contains no parameters, meaning all entries in the feed would be returned if the query was executed immediately after construction.
[中]构造一个以提要为目标的新查询对象。查询的初始状态不包含任何参数,这意味着如果在构造之后立即执行查询,则将返回提要中的所有条目。
代码示例来源:origin: com.mulesoft.google/google-api-gdata
@Override
public <F extends IFeed> F getFeed(Query query, Class<F> feedClass,
String etag) throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, etag);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, etag);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
@Override
public <F extends IFeed> F getFeed(Query query,
Class<F> feedClass,
DateTime ifModifiedSince)
throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, ifModifiedSince);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, ifModifiedSince);
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
@Override
public <F extends IFeed> F getFeed(Query query, Class<F> feedClass,
String etag) throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, etag);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, etag);
}
代码示例来源:origin: com.google.gdata/gdata-java-client
@Override
public <F extends IFeed> F getFeed(Query query, Class<F> feedClass,
String etag) throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, etag);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, etag);
}
代码示例来源:origin: com.google.gdata/gdata-core-1.0
@Override
public <F extends IFeed> F getFeed(Query query,
Class<F> feedClass,
DateTime ifModifiedSince)
throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, ifModifiedSince);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, ifModifiedSince);
}
代码示例来源:origin: com.mulesoft.google/google-api-gdata
@Override
public <F extends IFeed> F getFeed(Query query,
Class<F> feedClass,
DateTime ifModifiedSince)
throws IOException, ServiceException {
try {
return super.getFeed(query, feedClass, ifModifiedSince);
} catch (RedirectRequiredException e) {
query = new Query(handleRedirectException(e));
} catch (SessionExpiredException e) {
handleSessionExpiredException(e);
}
return super.getFeed(query, feedClass, ifModifiedSince);
}
代码示例来源:origin: wso2-attic/esb-connectors
/**
* Positive test case for RetrieveContactGroupsByQuery method with mandatory parameters.
*
* @throws Exception the exception
*/
@Test(priority = 2, groups = { "wso2.esb" }, description = "Google Contacts {retrieveContactGroupsByQuery} integration test with mandatory parameters.")
public void testRetrieveContactGroupsByQueryWithMandatoryParameters() throws Exception {
Query contactQuery = new Query(new URL("https://www.google.com/m8/feeds/groups/default/full"));
SOAPEnvelope esbSoapResponse =
sendSOAPRequest(proxyUrl, "esb_retrieveContactGroupsByQuery_mandatory.xml");
ContactGroupFeed feed =
directInvoker.getDirectInvokerContactsService().query(contactQuery, ContactGroupFeed.class);
// Assert Total Results.
Assert.assertEquals(Integer.parseInt((String) xPathEvaluate(esbSoapResponse.getBody()
.getFirstElement(), "string(//openSearch:totalResults/text())", nameSpaceMap)), feed.getTotalResults());
}
代码示例来源:origin: wso2-attic/esb-connectors
Query contactQuery = new Query(feedUrl);
代码示例来源:origin: wso2-attic/esb-connectors
final Query contactQuery = setParamsForQuery(new Query(new URL(requestUrl.toString())), queryParamMap);
内容来源于网络,如有侵权,请联系作者删除!