1658 lines
105 KiB
HTML
1658 lines
105 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_01) on Fri Feb 04 15:26:57 GMT-05:00 2011 -->
|
|
<TITLE>
|
|
GoogleService (Google Data APIs Client Library (1.43.0))
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2011-02-04">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../dev_javadoc.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="GoogleService (Google Data APIs Client Library (1.43.0))";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<h1 id="doc_title">Google Data APIs Client Library (1.43.0)</h1><HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../com/google/gdata/client/GoogleAuthTokenFactory.UserToken.html" title="class in com.google.gdata.client"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../com/google/gdata/client/GoogleService.AccountDeletedException.html" title="class in com.google.gdata.client"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?com/google/gdata/client/GoogleService.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="GoogleService.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_com.google.gdata.client.Service">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
com.google.gdata.client</FONT>
|
|
<BR>
|
|
Class GoogleService</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">com.google.gdata.client.Service</A>
|
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.gdata.client.GoogleService</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/gdata/client/AuthTokenFactory.TokenListener.html" title="interface in com.google.gdata.client">AuthTokenFactory.TokenListener</A></DD>
|
|
</DL>
|
|
<DL>
|
|
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/google/gdata/client/analytics/AnalyticsService.html" title="class in com.google.gdata.client.analytics">AnalyticsService</A>, <A HREF="../../../../com/google/gdata/client/appsforyourdomain/AppsForYourDomainService.html" title="class in com.google.gdata.client.appsforyourdomain">AppsForYourDomainService</A>, <A HREF="../../../../com/google/gdata/client/blogger/BloggerService.html" title="class in com.google.gdata.client.blogger">BloggerService</A>, <A HREF="../../../../com/google/gdata/client/books/BooksService.html" title="class in com.google.gdata.client.books">BooksService</A>, <A HREF="../../../../com/google/gdata/client/calendar/CalendarService.html" title="class in com.google.gdata.client.calendar">CalendarService</A>, <A HREF="../../../../com/google/gdata/client/codesearch/CodeSearchService.html" title="class in com.google.gdata.client.codesearch">CodeSearchService</A>, <A HREF="../../../../com/google/gdata/client/contacts/ContactsService.html" title="class in com.google.gdata.client.contacts">ContactsService</A>, <A HREF="../../../../com/google/gdata/client/finance/FinanceService.html" title="class in com.google.gdata.client.finance">FinanceService</A>, <A HREF="../../../../com/google/gdata/client/health/H9Service.html" title="class in com.google.gdata.client.health">H9Service</A>, <A HREF="../../../../com/google/gdata/client/health/HealthService.html" title="class in com.google.gdata.client.health">HealthService</A>, <A HREF="../../../../com/google/gdata/client/media/MediaService.html" title="class in com.google.gdata.client.media">MediaService</A>, <A HREF="../../../../com/google/gdata/client/projecthosting/ProjectHostingService.html" title="class in com.google.gdata.client.projecthosting">ProjectHostingService</A>, <A HREF="../../../../com/google/gdata/client/sidewiki/SidewikiService.html" title="class in com.google.gdata.client.sidewiki">SidewikiService</A>, <A HREF="../../../../com/google/gdata/client/spreadsheet/SpreadsheetService.html" title="class in com.google.gdata.client.spreadsheet">SpreadsheetService</A>, <A HREF="../../../../com/google/gdata/client/webmastertools/WebmasterToolsService.html" title="class in com.google.gdata.client.webmastertools">WebmasterToolsService</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>GoogleService</B><DT>extends <A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A><DT>implements <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.TokenListener.html" title="interface in com.google.gdata.client">AuthTokenFactory.TokenListener</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
The GoogleService class extends the basic GData <A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client"><CODE>Service</CODE></A>
|
|
abstraction to add support for authentication and cookies.
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
<A NAME="nested_class_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Nested Class Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.AccountDeletedException.html" title="class in com.google.gdata.client">GoogleService.AccountDeletedException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, account has been deleted.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.AccountDisabledException.html" title="class in com.google.gdata.client">GoogleService.AccountDisabledException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, account has been disabled.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.CaptchaRequiredException.html" title="class in com.google.gdata.client">GoogleService.CaptchaRequiredException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, CAPTCHA requires answering.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.InvalidCredentialsException.html" title="class in com.google.gdata.client">GoogleService.InvalidCredentialsException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, invalid credentials presented to server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.NotVerifiedException.html" title="class in com.google.gdata.client">GoogleService.NotVerifiedException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, account has not been verified.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.ServiceUnavailableException.html" title="class in com.google.gdata.client">GoogleService.ServiceUnavailableException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, authentication service not available.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.SessionExpiredException.html" title="class in com.google.gdata.client">GoogleService.SessionExpiredException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, the token's session has expired.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.TermsNotAgreedException.html" title="class in com.google.gdata.client">GoogleService.TermsNotAgreedException</A></B></CODE>
|
|
|
|
<BR>
|
|
Authentication failed, user did not agree to the terms of service.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="nested_classes_inherited_from_class_com.google.gdata.client.Service"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.google.gdata.client.<A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../com/google/gdata/client/Service.ClientInputProperties.html" title="class in com.google.gdata.client">Service.ClientInputProperties</A>, <A HREF="../../../../com/google/gdata/client/Service.ClientOutputProperties.html" title="class in com.google.gdata.client">Service.ClientOutputProperties</A>, <A HREF="../../../../com/google/gdata/client/Service.ClientStreamProperties.html" title="class in com.google.gdata.client">Service.ClientStreamProperties</A>, <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html" title="interface in com.google.gdata.client">Service.GDataRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.GDataRequestFactory.html" title="interface in com.google.gdata.client">Service.GDataRequestFactory</A>, <A HREF="../../../../com/google/gdata/client/Service.Versions.html" title="class in com.google.gdata.client">Service.Versions</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_com.google.gdata.client.Service"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Fields inherited from class com.google.gdata.client.<A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#connectTimeout">connectTimeout</A>, <A HREF="../../../../com/google/gdata/client/Service.html#extProfile">extProfile</A>, <A HREF="../../../../com/google/gdata/client/Service.html#metadataRegistry">metadataRegistry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#requestFactory">requestFactory</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#GoogleService(java.lang.String, com.google.gdata.client.Service.GDataRequestFactory, com.google.gdata.client.AuthTokenFactory)">GoogleService</A></B>(java.lang.String applicationName,
|
|
<A HREF="../../../../com/google/gdata/client/Service.GDataRequestFactory.html" title="interface in com.google.gdata.client">Service.GDataRequestFactory</A> requestFactory,
|
|
<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A> authTokenFactory)</CODE>
|
|
|
|
<BR>
|
|
Constructs a GoogleService instance connecting to the service for an
|
|
application with the name <code>applicationName</code>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#GoogleService(java.lang.String, java.lang.String)">GoogleService</A></B>(java.lang.String serviceName,
|
|
java.lang.String applicationName)</CODE>
|
|
|
|
<BR>
|
|
Constructs a GoogleService instance connecting to the service with name
|
|
<code>serviceName</code> for an application with the name
|
|
<code>applicationName</code>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#GoogleService(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">GoogleService</A></B>(java.lang.String serviceName,
|
|
java.lang.String applicationName,
|
|
java.lang.String protocol,
|
|
java.lang.String domainName)</CODE>
|
|
|
|
<BR>
|
|
Constructs a GoogleService instance connecting to the service with name
|
|
<code>serviceName</code> for an application with the name
|
|
<code>applicationName</code>.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie)">addCookie</A></B>(<A HREF="../../../../com/google/gdata/client/http/GoogleGDataRequest.GoogleCookie.html" title="class in com.google.gdata.client.http">GoogleGDataRequest.GoogleCookie</A> cookie)</CODE>
|
|
|
|
<BR>
|
|
Adds a new GoogleCookie instance to the cache.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>>
|
|
<BR>
|
|
F</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#batch(java.net.URL, F)">batch</A></B>(java.net.URL feedUrl,
|
|
F inputFeed)</CODE>
|
|
|
|
<BR>
|
|
Executes several operations (insert, update or delete) on the entries that
|
|
are part of the input <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data"><CODE>IFeed</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html" title="interface in com.google.gdata.client">Service.GDataRequest</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#createRequest(com.google.gdata.client.Query, com.google.gdata.util.ContentType)">createRequest</A></B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
<A HREF="../../../../com/google/gdata/util/ContentType.html" title="class in com.google.gdata.util">ContentType</A> contentType)</CODE>
|
|
|
|
<BR>
|
|
Creates a new GDataRequest for querying the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html" title="interface in com.google.gdata.client">Service.GDataRequest</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#createRequest(com.google.gdata.client.Service.GDataRequest.RequestType, java.net.URL, com.google.gdata.util.ContentType)">createRequest</A></B>(<A HREF="../../../../com/google/gdata/client/Service.GDataRequest.RequestType.html" title="enum in com.google.gdata.client">Service.GDataRequest.RequestType</A> type,
|
|
java.net.URL requestUrl,
|
|
<A HREF="../../../../com/google/gdata/util/ContentType.html" title="class in com.google.gdata.util">ContentType</A> contentType)</CODE>
|
|
|
|
<BR>
|
|
Creates a new GDataRequest for use by the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#delete(java.net.URL)">delete</A></B>(java.net.URL entryUrl)</CODE>
|
|
|
|
<BR>
|
|
Deletes an existing entry (and associated media content, if any) using the
|
|
specified edit URL.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#delete(java.net.URL, java.lang.String)">delete</A></B>(java.net.URL entryUrl,
|
|
java.lang.String etag)</CODE>
|
|
|
|
<BR>
|
|
Deletes an existing entry (and associated media content, if any) using the
|
|
specified edit URL.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getAuthToken(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">getAuthToken</A></B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer,
|
|
java.lang.String serviceName,
|
|
java.lang.String applicationName)</CODE>
|
|
|
|
<BR>
|
|
Retrieves the authentication token for the provided set of credentials.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getAuthTokenFactory()">getAuthTokenFactory</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A> currently associated with the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client">CookieManager</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getCookieManager()">getCookieManager</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client"><CODE>CookieManager</CODE></A> currently associated with the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.util.Set<<A HREF="../../../../com/google/gdata/client/http/GoogleGDataRequest.GoogleCookie.html" title="class in com.google.gdata.client.http">GoogleGDataRequest.GoogleCookie</A>></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getCookies()">getCookies</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the set of associated cookies returned by previous requests.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>>
|
|
<BR>
|
|
E</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getEntry(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">getEntry</A></B>(java.net.URL entryUrl,
|
|
java.lang.Class<E> entryClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)</CODE>
|
|
|
|
<BR>
|
|
Returns an Atom entry instance, given the URL of the entry and an
|
|
if-modified-since date.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>>
|
|
<BR>
|
|
E</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getEntry(java.net.URL, java.lang.Class, java.lang.String)">getEntry</A></B>(java.net.URL entryUrl,
|
|
java.lang.Class<E> entryClass,
|
|
java.lang.String etag)</CODE>
|
|
|
|
<BR>
|
|
Returns an Atom entry instance given the URL of the entry, if its current
|
|
entity tag is different than the provided value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>>
|
|
<BR>
|
|
F</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getFeed(com.google.gdata.client.Query, java.lang.Class, com.google.gdata.data.DateTime)">getFeed</A></B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
java.lang.Class<F> feedClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)</CODE>
|
|
|
|
<BR>
|
|
Returns the Feed resulting from executing a query, if it's been modified
|
|
since the specified date.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>>
|
|
<BR>
|
|
F</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getFeed(com.google.gdata.client.Query, java.lang.Class, java.lang.String)">getFeed</A></B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
java.lang.Class<F> feedClass,
|
|
java.lang.String etag)</CODE>
|
|
|
|
<BR>
|
|
Returns the Feed resulting from query execution, if if the entity tag
|
|
associated with it has changed.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>>
|
|
<BR>
|
|
F</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getFeed(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">getFeed</A></B>(java.net.URL feedUrl,
|
|
java.lang.Class<F> feedClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)</CODE>
|
|
|
|
<BR>
|
|
Returns the Feed associated with a particular feed URL, if it's been
|
|
modified since the specified date.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>>
|
|
<BR>
|
|
F</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#getFeed(java.net.URL, java.lang.Class, java.lang.String)">getFeed</A></B>(java.net.URL feedUrl,
|
|
java.lang.Class<F> feedClass,
|
|
java.lang.String etag)</CODE>
|
|
|
|
<BR>
|
|
Returns the Feed associated with a particular feed URL if the entity tag
|
|
associated with it has changed.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.net.URL</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#handleRedirectException(com.google.gdata.util.RedirectRequiredException)">handleRedirectException</A></B>(<A HREF="../../../../com/google/gdata/util/RedirectRequiredException.html" title="class in com.google.gdata.util">RedirectRequiredException</A> redirect)</CODE>
|
|
|
|
<BR>
|
|
Handles a redirect exception by generating the new URL to use for the
|
|
redirect.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#handlesCookies()">handlesCookies</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns <code>true</code> if the GoogleService is handling cookies.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#handleSessionExpiredException(com.google.gdata.client.GoogleService.SessionExpiredException)">handleSessionExpiredException</A></B>(<A HREF="../../../../com/google/gdata/client/GoogleService.SessionExpiredException.html" title="class in com.google.gdata.client">GoogleService.SessionExpiredException</A> e)</CODE>
|
|
|
|
<BR>
|
|
Delegates session expired exception to <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>>
|
|
<BR>
|
|
E</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#insert(java.net.URL, E)">insert</A></B>(java.net.URL feedUrl,
|
|
E entry)</CODE>
|
|
|
|
<BR>
|
|
Inserts a new <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data"><CODE>IEntry</CODE></A> into a feed associated
|
|
with the target service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#makePostRequest(java.net.URL, java.util.Map)">makePostRequest</A></B>(java.net.URL url,
|
|
java.util.Map<java.lang.String,java.lang.String> parameters)</CODE>
|
|
|
|
<BR>
|
|
Makes a HTTP POST request to the provided <code>url</code> given the
|
|
provided <code>parameters</code>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setAuthSubToken(java.lang.String)">setAuthSubToken</A></B>(java.lang.String token)</CODE>
|
|
|
|
<BR>
|
|
Sets the AuthSub token to be used to authenticate a user.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setAuthSubToken(java.lang.String, java.security.PrivateKey)">setAuthSubToken</A></B>(java.lang.String token,
|
|
java.security.PrivateKey key)</CODE>
|
|
|
|
<BR>
|
|
Sets the AuthSub token to be used to authenticate a user.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setAuthTokenFactory(com.google.gdata.client.AuthTokenFactory)">setAuthTokenFactory</A></B>(<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A> authTokenFactory)</CODE>
|
|
|
|
<BR>
|
|
Sets the <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A> currently associated with the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setCookieManager(com.google.gdata.client.CookieManager)">setCookieManager</A></B>(<A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client">CookieManager</A> cookieManager)</CODE>
|
|
|
|
<BR>
|
|
Sets the <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client"><CODE>CookieManager</CODE></A> currently associated with the service.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setHandlesCookies(boolean)">setHandlesCookies</A></B>(boolean handlesCookies)</CODE>
|
|
|
|
<BR>
|
|
Enables or disables cookie handling.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setOAuthCredentials(com.google.gdata.client.authn.oauth.OAuthParameters, com.google.gdata.client.authn.oauth.OAuthSigner)">setOAuthCredentials</A></B>(<A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthParameters.html" title="class in com.google.gdata.client.authn.oauth">OAuthParameters</A> parameters,
|
|
<A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthSigner.html" title="interface in com.google.gdata.client.authn.oauth">OAuthSigner</A> signer)</CODE>
|
|
|
|
<BR>
|
|
Sets the OAuth credentials used to generate the authorization header.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setUserCredentials(java.lang.String, java.lang.String)">setUserCredentials</A></B>(java.lang.String username,
|
|
java.lang.String password)</CODE>
|
|
|
|
<BR>
|
|
Sets the credentials of the user to authenticate requests to the server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setUserCredentials(java.lang.String, java.lang.String, com.google.gdata.client.ClientLoginAccountType)">setUserCredentials</A></B>(java.lang.String username,
|
|
java.lang.String password,
|
|
<A HREF="../../../../com/google/gdata/client/ClientLoginAccountType.html" title="enum in com.google.gdata.client">ClientLoginAccountType</A> accountType)</CODE>
|
|
|
|
<BR>
|
|
Sets the credentials of the user to authenticate requests to the server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setUserCredentials(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">setUserCredentials</A></B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer)</CODE>
|
|
|
|
<BR>
|
|
Sets the credentials of the user to authenticate requests to the server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setUserCredentials(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.google.gdata.client.ClientLoginAccountType)">setUserCredentials</A></B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer,
|
|
<A HREF="../../../../com/google/gdata/client/ClientLoginAccountType.html" title="enum in com.google.gdata.client">ClientLoginAccountType</A> accountType)</CODE>
|
|
|
|
<BR>
|
|
Sets the credentials of the user to authenticate requests to the server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#setUserToken(java.lang.String)">setUserToken</A></B>(java.lang.String token)</CODE>
|
|
|
|
<BR>
|
|
Sets the AuthToken that should be used to authenticate requests to the
|
|
server.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#tokenChanged(com.google.gdata.client.AuthTokenFactory.AuthToken)">tokenChanged</A></B>(<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.AuthToken.html" title="interface in com.google.gdata.client">AuthTokenFactory.AuthToken</A> newToken)</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
|
<TR ALIGN="right" VALIGN="">
|
|
<TD NOWRAP><FONT SIZE="-1">
|
|
<CODE><E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>>
|
|
<BR>
|
|
E</CODE></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../com/google/gdata/client/GoogleService.html#update(java.net.URL, E)">update</A></B>(java.net.URL entryUrl,
|
|
E entry)</CODE>
|
|
|
|
<BR>
|
|
Updates an existing <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data"><CODE>IEntry</CODE></A> by writing it to
|
|
the specified entry edit URL.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_com.google.gdata.client.Service"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class com.google.gdata.client.<A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#classOf(T)">classOf</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createBatchRequest(java.net.URL)">createBatchRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createDeleteRequest(java.net.URL)">createDeleteRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createEntryRequest(java.net.URL)">createEntryRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createFeedRequest(com.google.gdata.client.Query)">createFeedRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createFeedRequest(java.net.URL)">createFeedRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createInsertRequest(java.net.URL)">createInsertRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createLinkQueryRequest(com.google.gdata.data.ILink)">createLinkQueryRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createPatchRequest(java.net.URL)">createPatchRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#createUpdateRequest(java.net.URL)">createUpdateRequest</A>, <A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URI)">delete</A>, <A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URI, java.lang.String)">delete</A>, <A HREF="../../../../com/google/gdata/client/Service.html#endVersionScope()">endVersionScope</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getAltRegistry()">getAltRegistry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getContentType()">getContentType</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getDefaultAltRegistry()">getDefaultAltRegistry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getEntry(java.net.URL, java.lang.Class)">getEntry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getExtensionProfile()">getExtensionProfile</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getFeed(com.google.gdata.client.Query, java.lang.Class)">getFeed</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getFeed(java.net.URL, java.lang.Class)">getFeed</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getMetadataRegistry()">getMetadataRegistry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getProtocolVersion()">getProtocolVersion</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getRequestFactory()">getRequestFactory</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getSchema()">getSchema</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getServiceVersion()">getServiceVersion</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getStreamFromLink(com.google.gdata.data.ILink)">getStreamFromLink</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getStrictValidation()">getStrictValidation</A>, <A HREF="../../../../com/google/gdata/client/Service.html#getVersion()">getVersion</A>, <A HREF="../../../../com/google/gdata/client/Service.html#initServiceVersion(java.lang.Class, com.google.gdata.util.Version)">initServiceVersion</A>, <A HREF="../../../../com/google/gdata/client/Service.html#introspect(java.net.URL, java.lang.Class)">introspect</A>, <A HREF="../../../../com/google/gdata/client/Service.html#parseResponseData(com.google.gdata.data.ParseSource, com.google.gdata.util.ContentType, java.lang.Class)">parseResponseData</A>, <A HREF="../../../../com/google/gdata/client/Service.html#parseResponseData(com.google.gdata.client.Service.GDataRequest, java.lang.Class)">parseResponseData</A>, <A HREF="../../../../com/google/gdata/client/Service.html#patch(java.net.URL, java.lang.String, E)">patch</A>, <A HREF="../../../../com/google/gdata/client/Service.html#patch(java.net.URL, java.lang.String, E, java.lang.String)">patch</A>, <A HREF="../../../../com/google/gdata/client/Service.html#query(com.google.gdata.client.Query, java.lang.Class)">query</A>, <A HREF="../../../../com/google/gdata/client/Service.html#query(com.google.gdata.client.Query, java.lang.Class, com.google.gdata.data.DateTime)">query</A>, <A HREF="../../../../com/google/gdata/client/Service.html#query(com.google.gdata.client.Query, java.lang.Class, java.lang.String)">query</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setAcceptLanguage(java.lang.String)">setAcceptLanguage</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setAltRegistry(com.google.gdata.wireformats.AltRegistry)">setAltRegistry</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setConnectTimeout(int)">setConnectTimeout</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setContentType(com.google.gdata.util.ContentType)">setContentType</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setExtensionProfile(com.google.gdata.data.ExtensionProfile)">setExtensionProfile</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setHeader(java.lang.String, java.lang.String)">setHeader</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setOAuthProxyHeaders(java.util.Map)">setOAuthProxyHeaders</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setPrivateHeader(java.lang.String, java.lang.String)">setPrivateHeader</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setProtocolVersion(com.google.gdata.util.Version)">setProtocolVersion</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setReadTimeout(int)">setReadTimeout</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setRequestFactory(com.google.gdata.client.Service.GDataRequestFactory)">setRequestFactory</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setStrictValidation(boolean)">setStrictValidation</A>, <A HREF="../../../../com/google/gdata/client/Service.html#setTimeouts(com.google.gdata.client.Service.GDataRequest)">setTimeouts</A>, <A HREF="../../../../com/google/gdata/client/Service.html#startVersionScope()">startVersionScope</A>, <A HREF="../../../../com/google/gdata/client/Service.html#update(java.net.URL, E, java.lang.String)">update</A>, <A HREF="../../../../com/google/gdata/client/Service.html#useSsl()">useSsl</A>, <A HREF="../../../../com/google/gdata/client/Service.html#writeRequestData(com.google.gdata.client.Service.GDataRequest, java.lang.Object)">writeRequestData</A>, <A HREF="../../../../com/google/gdata/client/Service.html#writeRequestData(com.google.gdata.client.Service.GDataRequest, com.google.gdata.client.Service.ClientOutputProperties, java.lang.Object)">writeRequestData</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="GoogleService(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
GoogleService</H3>
|
|
<PRE>
|
|
public <B>GoogleService</B>(java.lang.String serviceName,
|
|
java.lang.String applicationName)</PRE>
|
|
<DL>
|
|
<DD>Constructs a GoogleService instance connecting to the service with name
|
|
<code>serviceName</code> for an application with the name
|
|
<code>applicationName</code>. The default domain (www.google.com) and the
|
|
default Google authentication methods will be used to authenticate.
|
|
A simple cookie manager is used.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>serviceName</CODE> - the name of the Google service to which we are
|
|
connecting. Sample names of services might include
|
|
"cl" (Calendar), "mail" (GMail), or
|
|
"blogger" (Blogger)<DD><CODE>applicationName</CODE> - the name of the client application accessing the
|
|
service. Application names should preferably have
|
|
the format [company-id]-[app-name]-[app-version].
|
|
The name will be used by the Google servers to
|
|
monitor the source of authentication.</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="GoogleService(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
GoogleService</H3>
|
|
<PRE>
|
|
public <B>GoogleService</B>(java.lang.String serviceName,
|
|
java.lang.String applicationName,
|
|
java.lang.String protocol,
|
|
java.lang.String domainName)</PRE>
|
|
<DL>
|
|
<DD>Constructs a GoogleService instance connecting to the service with name
|
|
<code>serviceName</code> for an application with the name
|
|
<code>applicationName</code>. The service will authenticate at the provided
|
|
<code>domainName</code>. The default Google authentication methods will be
|
|
used to authenticate. A simple cookie manager is used.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>serviceName</CODE> - the name of the Google service to which we are
|
|
connecting. Sample names of services might include
|
|
"cl" (Calendar), "mail" (GMail), or
|
|
"blogger" (Blogger)<DD><CODE>applicationName</CODE> - the name of the client application accessing the
|
|
service. Application names should preferably have
|
|
the format [company-id]-[app-name]-[app-version].
|
|
The name will be used by the Google servers to
|
|
monitor the source of authentication.<DD><CODE>protocol</CODE> - name of protocol to use for authentication
|
|
("http"/"https")<DD><CODE>domainName</CODE> - the name of the domain hosting the login handler</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="GoogleService(java.lang.String, com.google.gdata.client.Service.GDataRequestFactory, com.google.gdata.client.AuthTokenFactory)"><!-- --></A><H3>
|
|
GoogleService</H3>
|
|
<PRE>
|
|
public <B>GoogleService</B>(java.lang.String applicationName,
|
|
<A HREF="../../../../com/google/gdata/client/Service.GDataRequestFactory.html" title="interface in com.google.gdata.client">Service.GDataRequestFactory</A> requestFactory,
|
|
<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A> authTokenFactory)</PRE>
|
|
<DL>
|
|
<DD>Constructs a GoogleService instance connecting to the service for an
|
|
application with the name <code>applicationName</code>. The provided
|
|
<code>GDataRequestFactory</code> will create requests, and the given
|
|
<code>AuthTokenFactory</code> will be used to generate auth tokens.
|
|
A simple cookie manager is used.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>applicationName</CODE> - the name of the client application accessing the
|
|
service. Application names should preferably have
|
|
the format [company-id]-[app-name]-[app-version].
|
|
The name will be used by the Google servers to
|
|
monitor the source of authentication.<DD><CODE>requestFactory</CODE> - the request factory that generates gdata requests<DD><CODE>authTokenFactory</CODE> - the auth token factory that generates auth tokens</DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getAuthTokenFactory()"><!-- --></A><H3>
|
|
getAuthTokenFactory</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A> <B>getAuthTokenFactory</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A> currently associated with the service.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setAuthTokenFactory(com.google.gdata.client.AuthTokenFactory)"><!-- --></A><H3>
|
|
setAuthTokenFactory</H3>
|
|
<PRE>
|
|
public void <B>setAuthTokenFactory</B>(<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client">AuthTokenFactory</A> authTokenFactory)</PRE>
|
|
<DL>
|
|
<DD>Sets the <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A> currently associated with the service.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>authTokenFactory</CODE> - Authentication factory</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getCookieManager()"><!-- --></A><H3>
|
|
getCookieManager</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client">CookieManager</A> <B>getCookieManager</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client"><CODE>CookieManager</CODE></A> currently associated with the service.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setCookieManager(com.google.gdata.client.CookieManager)"><!-- --></A><H3>
|
|
setCookieManager</H3>
|
|
<PRE>
|
|
public void <B>setCookieManager</B>(<A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client">CookieManager</A> cookieManager)</PRE>
|
|
<DL>
|
|
<DD>Sets the <A HREF="../../../../com/google/gdata/client/CookieManager.html" title="interface in com.google.gdata.client"><CODE>CookieManager</CODE></A> currently associated with the service.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>cookieManager</CODE> - Cookie manager</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tokenChanged(com.google.gdata.client.AuthTokenFactory.AuthToken)"><!-- --></A><H3>
|
|
tokenChanged</H3>
|
|
<PRE>
|
|
public void <B>tokenChanged</B>(<A HREF="../../../../com/google/gdata/client/AuthTokenFactory.AuthToken.html" title="interface in com.google.gdata.client">AuthTokenFactory.AuthToken</A> newToken)</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/AuthTokenFactory.TokenListener.html#tokenChanged(com.google.gdata.client.AuthTokenFactory.AuthToken)">tokenChanged</A></CODE> in interface <CODE><A HREF="../../../../com/google/gdata/client/AuthTokenFactory.TokenListener.html" title="interface in com.google.gdata.client">AuthTokenFactory.TokenListener</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUserCredentials(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
setUserCredentials</H3>
|
|
<PRE>
|
|
public void <B>setUserCredentials</B>(java.lang.String username,
|
|
java.lang.String password)
|
|
throws <A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the credentials of the user to authenticate requests to the server.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user (an email address)<DD><CODE>password</CODE> - the password of the user
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></CODE> - if authentication failed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUserCredentials(java.lang.String, java.lang.String, com.google.gdata.client.ClientLoginAccountType)"><!-- --></A><H3>
|
|
setUserCredentials</H3>
|
|
<PRE>
|
|
public void <B>setUserCredentials</B>(java.lang.String username,
|
|
java.lang.String password,
|
|
<A HREF="../../../../com/google/gdata/client/ClientLoginAccountType.html" title="enum in com.google.gdata.client">ClientLoginAccountType</A> accountType)
|
|
throws <A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the credentials of the user to authenticate requests to the server.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user (an email address)<DD><CODE>password</CODE> - the password of the user<DD><CODE>accountType</CODE> - the account type: HOSTED, GOOGLE, or HOSTED_OR_GOOGLE
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></CODE> - if authentication failed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUserCredentials(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
setUserCredentials</H3>
|
|
<PRE>
|
|
public void <B>setUserCredentials</B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer)
|
|
throws <A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the credentials of the user to authenticate requests to the server.
|
|
A CAPTCHA token and a CAPTCHA answer can also be optionally provided
|
|
to authenticate when the authentication server requires that a
|
|
CAPTCHA be answered.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user (an email id)<DD><CODE>password</CODE> - the password of the user<DD><CODE>captchaToken</CODE> - the CAPTCHA token issued by the server<DD><CODE>captchaAnswer</CODE> - the answer to the respective CAPTCHA token
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></CODE> - if authentication failed</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUserCredentials(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.google.gdata.client.ClientLoginAccountType)"><!-- --></A><H3>
|
|
setUserCredentials</H3>
|
|
<PRE>
|
|
public void <B>setUserCredentials</B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer,
|
|
<A HREF="../../../../com/google/gdata/client/ClientLoginAccountType.html" title="enum in com.google.gdata.client">ClientLoginAccountType</A> accountType)
|
|
throws <A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the credentials of the user to authenticate requests to the server.
|
|
A CAPTCHA token and a CAPTCHA answer can also be optionally provided
|
|
to authenticate when the authentication server requires that a
|
|
CAPTCHA be answered.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user (an email id)<DD><CODE>password</CODE> - the password of the user<DD><CODE>captchaToken</CODE> - the CAPTCHA token issued by the server<DD><CODE>captchaAnswer</CODE> - the answer to the respective CAPTCHA token<DD><CODE>accountType</CODE> - the account type: HOSTED, GOOGLE, or HOSTED_OR_GOOGLE
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></CODE> - if authentication failed</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setUserToken(java.lang.String)"><!-- --></A><H3>
|
|
setUserToken</H3>
|
|
<PRE>
|
|
public void <B>setUserToken</B>(java.lang.String token)</PRE>
|
|
<DL>
|
|
<DD>Sets the AuthToken that should be used to authenticate requests to the
|
|
server. This is useful if the caller has some other way of accessing the
|
|
AuthToken, versus calling getAuthToken with credentials to request the
|
|
AuthToken using ClientLogin.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>token</CODE> - the AuthToken in ascii form</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setOAuthCredentials(com.google.gdata.client.authn.oauth.OAuthParameters, com.google.gdata.client.authn.oauth.OAuthSigner)"><!-- --></A><H3>
|
|
setOAuthCredentials</H3>
|
|
<PRE>
|
|
public void <B>setOAuthCredentials</B>(<A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthParameters.html" title="class in com.google.gdata.client.authn.oauth">OAuthParameters</A> parameters,
|
|
<A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthSigner.html" title="interface in com.google.gdata.client.authn.oauth">OAuthSigner</A> signer)
|
|
throws <A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthException.html" title="class in com.google.gdata.client.authn.oauth">OAuthException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the OAuth credentials used to generate the authorization header.
|
|
This header needs to be set per request, as it depends on the request url.
|
|
The following OAuth parameters are required:
|
|
<ul>
|
|
<li>oauth_consumer_key
|
|
<li>oauth_token
|
|
</ul>
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>parameters</CODE> - the OAuth parameters to use to generated the header<DD><CODE>signer</CODE> - the signing method to use for signing the header
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/client/authn/oauth/OAuthException.html" title="class in com.google.gdata.client.authn.oauth">OAuthException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setAuthSubToken(java.lang.String)"><!-- --></A><H3>
|
|
setAuthSubToken</H3>
|
|
<PRE>
|
|
public void <B>setAuthSubToken</B>(java.lang.String token)</PRE>
|
|
<DL>
|
|
<DD>Sets the AuthSub token to be used to authenticate a user.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>token</CODE> - the AuthSub token retrieved from Google</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setAuthSubToken(java.lang.String, java.security.PrivateKey)"><!-- --></A><H3>
|
|
setAuthSubToken</H3>
|
|
<PRE>
|
|
public void <B>setAuthSubToken</B>(java.lang.String token,
|
|
java.security.PrivateKey key)</PRE>
|
|
<DL>
|
|
<DD>Sets the AuthSub token to be used to authenticate a user. The token
|
|
will be used in secure-mode, and the provided private key will be used
|
|
to sign all requests.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>token</CODE> - the AuthSub token retrieved from Google<DD><CODE>key</CODE> - the private key to be used to sign all requests</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAuthToken(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getAuthToken</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getAuthToken</B>(java.lang.String username,
|
|
java.lang.String password,
|
|
java.lang.String captchaToken,
|
|
java.lang.String captchaAnswer,
|
|
java.lang.String serviceName,
|
|
java.lang.String applicationName)
|
|
throws <A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></PRE>
|
|
<DL>
|
|
<DD>Retrieves the authentication token for the provided set of credentials.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>username</CODE> - the name of the user (an email address)<DD><CODE>password</CODE> - the password of the user<DD><CODE>captchaToken</CODE> - the CAPTCHA token if CAPTCHA is required (Optional)<DD><CODE>captchaAnswer</CODE> - the respective answer of the CAPTCHA token (Optional)<DD><CODE>serviceName</CODE> - the name of the service to which a token is required<DD><CODE>applicationName</CODE> - the application requesting the token
|
|
<DT><B>Returns:</B><DD>the token
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/AuthenticationException.html" title="class in com.google.gdata.util">AuthenticationException</A></CODE> - if authentication failed</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="makePostRequest(java.net.URL, java.util.Map)"><!-- --></A><H3>
|
|
makePostRequest</H3>
|
|
<PRE>
|
|
public static java.lang.String <B>makePostRequest</B>(java.net.URL url,
|
|
java.util.Map<java.lang.String,java.lang.String> parameters)
|
|
throws java.io.IOException</PRE>
|
|
<DL>
|
|
<DD>Makes a HTTP POST request to the provided <code>url</code> given the
|
|
provided <code>parameters</code>. It returns the output from the POST
|
|
handler as a String object.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the URL to post the request<DD><CODE>parameters</CODE> - the parameters to post to the handler
|
|
<DT><B>Returns:</B><DD>the output from the handler
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - if an I/O exception occurs while creating, writing,
|
|
or reading the request</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setHandlesCookies(boolean)"><!-- --></A><H3>
|
|
setHandlesCookies</H3>
|
|
<PRE>
|
|
public void <B>setHandlesCookies</B>(boolean handlesCookies)</PRE>
|
|
<DL>
|
|
<DD>Enables or disables cookie handling.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="handlesCookies()"><!-- --></A><H3>
|
|
handlesCookies</H3>
|
|
<PRE>
|
|
public boolean <B>handlesCookies</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns <code>true</code> if the GoogleService is handling cookies.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="addCookie(com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie)"><!-- --></A><H3>
|
|
addCookie</H3>
|
|
<PRE>
|
|
public void <B>addCookie</B>(<A HREF="../../../../com/google/gdata/client/http/GoogleGDataRequest.GoogleCookie.html" title="class in com.google.gdata.client.http">GoogleGDataRequest.GoogleCookie</A> cookie)</PRE>
|
|
<DL>
|
|
<DD>Adds a new GoogleCookie instance to the cache.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getCookies()"><!-- --></A><H3>
|
|
getCookies</H3>
|
|
<PRE>
|
|
public java.util.Set<<A HREF="../../../../com/google/gdata/client/http/GoogleGDataRequest.GoogleCookie.html" title="class in com.google.gdata.client.http">GoogleGDataRequest.GoogleCookie</A>> <B>getCookies</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the set of associated cookies returned by previous requests.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="createRequest(com.google.gdata.client.Service.GDataRequest.RequestType, java.net.URL, com.google.gdata.util.ContentType)"><!-- --></A><H3>
|
|
createRequest</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html" title="interface in com.google.gdata.client">Service.GDataRequest</A> <B>createRequest</B>(<A HREF="../../../../com/google/gdata/client/Service.GDataRequest.RequestType.html" title="enum in com.google.gdata.client">Service.GDataRequest.RequestType</A> type,
|
|
java.net.URL requestUrl,
|
|
<A HREF="../../../../com/google/gdata/util/ContentType.html" title="class in com.google.gdata.util">ContentType</A> contentType)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#createRequest(com.google.gdata.client.Service.GDataRequest.RequestType, java.net.URL, com.google.gdata.util.ContentType)">Service</A></CODE></B></DD>
|
|
<DD>Creates a new GDataRequest for use by the service.
|
|
<p>
|
|
Clients should be sure to call <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html#end()"><CODE>Service.GDataRequest.end()</CODE></A> on the
|
|
returned request once they have finished using it.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#createRequest(com.google.gdata.client.Service.GDataRequest.RequestType, java.net.URL, com.google.gdata.util.ContentType)">createRequest</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="createRequest(com.google.gdata.client.Query, com.google.gdata.util.ContentType)"><!-- --></A><H3>
|
|
createRequest</H3>
|
|
<PRE>
|
|
protected <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html" title="interface in com.google.gdata.client">Service.GDataRequest</A> <B>createRequest</B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
<A HREF="../../../../com/google/gdata/util/ContentType.html" title="class in com.google.gdata.util">ContentType</A> contentType)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#createRequest(com.google.gdata.client.Query, com.google.gdata.util.ContentType)">Service</A></CODE></B></DD>
|
|
<DD>Creates a new GDataRequest for querying the service.
|
|
<p>
|
|
Clients should be sure to call <A HREF="../../../../com/google/gdata/client/Service.GDataRequest.html#end()"><CODE>Service.GDataRequest.end()</CODE></A> on the
|
|
returned request once they have finished using it.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#createRequest(com.google.gdata.client.Query, com.google.gdata.util.ContentType)">createRequest</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getEntry(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)"><!-- --></A><H3>
|
|
getEntry</H3>
|
|
<PRE>
|
|
public <E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>> E <B>getEntry</B>(java.net.URL entryUrl,
|
|
java.lang.Class<E> entryClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getEntry(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">Service</A></CODE></B></DD>
|
|
<DD>Returns an Atom entry instance, given the URL of the entry and an
|
|
if-modified-since date.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getEntry(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">getEntry</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>entryUrl</CODE> - resource URL for the entry.<DD><CODE>entryClass</CODE> - class used to represent service entries,
|
|
not <code>null</code>.<DD><CODE>ifModifiedSince</CODE> - used to set a precondition date that indicates the
|
|
entry should be returned only if it has been modified after the
|
|
specified date. A value of <code>null</code> indicates no precondition.
|
|
<DT><B>Returns:</B><DD>the entry referenced by the URL parameter.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/NotModifiedException.html" title="class in com.google.gdata.util">NotModifiedException</A></CODE> - if the entry resource
|
|
has not been modified after the specified precondition date.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the returned
|
|
entry.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - if the entry URL is
|
|
not valid.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceForbiddenException.html" title="class in com.google.gdata.util">ServiceForbiddenException</A></CODE> - if the GData
|
|
service cannot get the entry resource due to access constraints.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - if a system error occurred when retrieving the
|
|
entry.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getEntry(java.net.URL, java.lang.Class, java.lang.String)"><!-- --></A><H3>
|
|
getEntry</H3>
|
|
<PRE>
|
|
public <E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>> E <B>getEntry</B>(java.net.URL entryUrl,
|
|
java.lang.Class<E> entryClass,
|
|
java.lang.String etag)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getEntry(java.net.URL, java.lang.Class, java.lang.String)">Service</A></CODE></B></DD>
|
|
<DD>Returns an Atom entry instance given the URL of the entry, if its current
|
|
entity tag is different than the provided value.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getEntry(java.net.URL, java.lang.Class, java.lang.String)">getEntry</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>entryUrl</CODE> - resource URL for the entry.<DD><CODE>entryClass</CODE> - class used to represent service entries,
|
|
not <code>null</code>.<DD><CODE>etag</CODE> - used to provide an entity tag that indicates the entry should
|
|
be returned only if the entity tag of the current representation is
|
|
different from the provided value. A value of <code>null</code> indicates
|
|
unconditional return.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/NotModifiedException.html" title="class in com.google.gdata.util">NotModifiedException</A></CODE> - if the entry resource entity tag matches the
|
|
provided value.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the returned
|
|
entry.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - if the entry URL is
|
|
not valid.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceForbiddenException.html" title="class in com.google.gdata.util">ServiceForbiddenException</A></CODE> - if the GData
|
|
service cannot get the entry resource due to access constraints.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - if a system error occurred when retrieving the
|
|
entry.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="update(java.net.URL,com.google.gdata.data.IEntry)"><!-- --></A><A NAME="update(java.net.URL, E)"><!-- --></A><H3>
|
|
update</H3>
|
|
<PRE>
|
|
public <E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>> E <B>update</B>(java.net.URL entryUrl,
|
|
E entry)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#update(java.net.URL, E)">Service</A></CODE></B></DD>
|
|
<DD>Updates an existing <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data"><CODE>IEntry</CODE></A> by writing it to
|
|
the specified entry edit URL. The resulting Entry (after update) will be
|
|
returned.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#update(java.net.URL, E)">update</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>entryUrl</CODE> - the edit URL associated with the entry.<DD><CODE>entry</CODE> - the modified Entry to be written to the server.
|
|
<DT><B>Returns:</B><DD>the updated Entry returned by the service.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the updated
|
|
entry data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - update request failed due to system error.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/gdata/data/IEntry.html#getEditLink()"><CODE>IEntry.getEditLink()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="insert(java.net.URL,com.google.gdata.data.IEntry)"><!-- --></A><A NAME="insert(java.net.URL, E)"><!-- --></A><H3>
|
|
insert</H3>
|
|
<PRE>
|
|
public <E extends <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data">IEntry</A>> E <B>insert</B>(java.net.URL feedUrl,
|
|
E entry)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#insert(java.net.URL, E)">Service</A></CODE></B></DD>
|
|
<DD>Inserts a new <A HREF="../../../../com/google/gdata/data/IEntry.html" title="interface in com.google.gdata.data"><CODE>IEntry</CODE></A> into a feed associated
|
|
with the target service. It will return the inserted entry, including any
|
|
additional attributes or extensions set by the GData server.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#insert(java.net.URL, E)">insert</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>feedUrl</CODE> - the POST URI associated with the target feed.<DD><CODE>entry</CODE> - the new entry to insert into the feed.
|
|
<DT><B>Returns:</B><DD>the newly inserted Entry returned by the service.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the return entry
|
|
data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceForbiddenException.html" title="class in com.google.gdata.util">ServiceForbiddenException</A></CODE> - the inserted Entry
|
|
has associated media content and can only be inserted using a media
|
|
service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - insert request failed due to system error.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/gdata/data/IFeed.html#getEntryPostLink()"><CODE>IFeed.getEntryPostLink()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFeed(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)"><!-- --></A><H3>
|
|
getFeed</H3>
|
|
<PRE>
|
|
public <F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>> F <B>getFeed</B>(java.net.URL feedUrl,
|
|
java.lang.Class<F> feedClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">Service</A></CODE></B></DD>
|
|
<DD>Returns the Feed associated with a particular feed URL, if it's been
|
|
modified since the specified date.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(java.net.URL, java.lang.Class, com.google.gdata.data.DateTime)">getFeed</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>feedUrl</CODE> - the URL associated with a feed. This URL can include GData
|
|
query parameters.<DD><CODE>feedClass</CODE> - the class used to represent a service Feed.<DD><CODE>ifModifiedSince</CODE> - used to set a precondition date that indicates the
|
|
feed should be returned only if it has been modified after the
|
|
specified date. A value of <code>null</code> indicates no precondition.
|
|
<DT><B>Returns:</B><DD>Feed resource referenced by the input URL.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error sending request or reading the feed.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/NotModifiedException.html" title="class in com.google.gdata.util">NotModifiedException</A></CODE> - if the feed resource has
|
|
not been modified since the specified precondition date.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the returned
|
|
feed data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - invalid feed URL.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - system error retrieving feed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFeed(java.net.URL, java.lang.Class, java.lang.String)"><!-- --></A><H3>
|
|
getFeed</H3>
|
|
<PRE>
|
|
public <F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>> F <B>getFeed</B>(java.net.URL feedUrl,
|
|
java.lang.Class<F> feedClass,
|
|
java.lang.String etag)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(java.net.URL, java.lang.Class, java.lang.String)">Service</A></CODE></B></DD>
|
|
<DD>Returns the Feed associated with a particular feed URL if the entity tag
|
|
associated with it has changed.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(java.net.URL, java.lang.Class, java.lang.String)">getFeed</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>feedUrl</CODE> - the URL associated with a feed. This URL can include GData
|
|
query parameters.<DD><CODE>feedClass</CODE> - the class used to represent a service Feed.<DD><CODE>etag</CODE> - used to provide an entity tag that indicates the feed should be
|
|
returned only if the entity tag of the current representation is
|
|
different from the provided value. A value of <code>null</code> indicates
|
|
unconditional return.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error sending request or reading the feed.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/NotModifiedException.html" title="class in com.google.gdata.util">NotModifiedException</A></CODE> - if the feed resource entity tag matches the
|
|
provided value.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the returned
|
|
feed data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - invalid feed URL.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - system error retrieving feed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFeed(com.google.gdata.client.Query, java.lang.Class, com.google.gdata.data.DateTime)"><!-- --></A><H3>
|
|
getFeed</H3>
|
|
<PRE>
|
|
public <F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>> F <B>getFeed</B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
java.lang.Class<F> feedClass,
|
|
<A HREF="../../../../com/google/gdata/data/DateTime.html" title="class in com.google.gdata.data">DateTime</A> ifModifiedSince)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(com.google.gdata.client.Query, java.lang.Class, com.google.gdata.data.DateTime)">Service</A></CODE></B></DD>
|
|
<DD>Returns the Feed resulting from executing a query, if it's been modified
|
|
since the specified date.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(com.google.gdata.client.Query, java.lang.Class, com.google.gdata.data.DateTime)">getFeed</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>query</CODE> - feed query.<DD><CODE>feedClass</CODE> - the class used to represent a service Feed.<DD><CODE>ifModifiedSince</CODE> - used to set a precondition date that indicates the
|
|
feed should be returned only if it has been modified after the
|
|
specified date. A value of <code>null</code> indicates no precondition.
|
|
<DT><B>Returns:</B><DD>Feed resource referenced by the input URL.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error sending request or reading the feed.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - system error retrieving feed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFeed(com.google.gdata.client.Query, java.lang.Class, java.lang.String)"><!-- --></A><H3>
|
|
getFeed</H3>
|
|
<PRE>
|
|
public <F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>> F <B>getFeed</B>(<A HREF="../../../../com/google/gdata/client/Query.html" title="class in com.google.gdata.client">Query</A> query,
|
|
java.lang.Class<F> feedClass,
|
|
java.lang.String etag)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(com.google.gdata.client.Query, java.lang.Class, java.lang.String)">Service</A></CODE></B></DD>
|
|
<DD>Returns the Feed resulting from query execution, if if the entity tag
|
|
associated with it has changed.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#getFeed(com.google.gdata.client.Query, java.lang.Class, java.lang.String)">getFeed</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>query</CODE> - feed query.<DD><CODE>feedClass</CODE> - the class used to represent query results.<DD><CODE>etag</CODE> - used to provide an entity tag that indicates the feed should be
|
|
returned only if the entity tag of the current representation is
|
|
different from the provided value. A value of <code>null</code> indicates
|
|
unconditional return.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error sending request or reading the feed.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/NotModifiedException.html" title="class in com.google.gdata.util">NotModifiedException</A></CODE> - if the feed resource entity tag matches the
|
|
provided value.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the returned feed data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - invalid feed URL.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - system error retrieving feed.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="delete(java.net.URL)"><!-- --></A><H3>
|
|
delete</H3>
|
|
<PRE>
|
|
public void <B>delete</B>(java.net.URL entryUrl)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URL)">Service</A></CODE></B></DD>
|
|
<DD>Deletes an existing entry (and associated media content, if any) using the
|
|
specified edit URL.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URL)">delete</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>entryUrl</CODE> - the edit or medit edit url associated with the resource.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - invalid entry URL.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - delete request failed due to system error.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="delete(java.net.URL, java.lang.String)"><!-- --></A><H3>
|
|
delete</H3>
|
|
<PRE>
|
|
public void <B>delete</B>(java.net.URL entryUrl,
|
|
java.lang.String etag)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URL, java.lang.String)">Service</A></CODE></B></DD>
|
|
<DD>Deletes an existing entry (and associated media content, if any) using the
|
|
specified edit URL. This delete is conditional upon the provided tag
|
|
matching the current entity tag for the entry. If (and only if) they match,
|
|
the deletion will be performed.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#delete(java.net.URL, java.lang.String)">delete</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>entryUrl</CODE> - the edit or medit edit url associated with the resource.<DD><CODE>etag</CODE> - the entity tag value that is the expected value for the target
|
|
resource. A value of <code>null</code> will not set an etag
|
|
precondition and a value of <code>"*"</code> will perform an
|
|
unconditional delete.
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ResourceNotFoundException.html" title="class in com.google.gdata.util">ResourceNotFoundException</A></CODE> - invalid entry URL.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - delete request failed due to system error.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="handleRedirectException(com.google.gdata.util.RedirectRequiredException)"><!-- --></A><H3>
|
|
handleRedirectException</H3>
|
|
<PRE>
|
|
protected java.net.URL <B>handleRedirectException</B>(<A HREF="../../../../com/google/gdata/util/RedirectRequiredException.html" title="class in com.google.gdata.util">RedirectRequiredException</A> redirect)
|
|
throws <A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD>Handles a redirect exception by generating the new URL to use for the
|
|
redirect.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="handleSessionExpiredException(com.google.gdata.client.GoogleService.SessionExpiredException)"><!-- --></A><H3>
|
|
handleSessionExpiredException</H3>
|
|
<PRE>
|
|
protected void <B>handleSessionExpiredException</B>(<A HREF="../../../../com/google/gdata/client/GoogleService.SessionExpiredException.html" title="class in com.google.gdata.client">GoogleService.SessionExpiredException</A> e)
|
|
throws <A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></PRE>
|
|
<DL>
|
|
<DD>Delegates session expired exception to <A HREF="../../../../com/google/gdata/client/AuthTokenFactory.html" title="interface in com.google.gdata.client"><CODE>AuthTokenFactory</CODE></A>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="batch(java.net.URL,com.google.gdata.data.IFeed)"><!-- --></A><A NAME="batch(java.net.URL, F)"><!-- --></A><H3>
|
|
batch</H3>
|
|
<PRE>
|
|
public <F extends <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data">IFeed</A>> F <B>batch</B>(java.net.URL feedUrl,
|
|
F inputFeed)
|
|
throws java.io.IOException,
|
|
<A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A>,
|
|
<A HREF="../../../../com/google/gdata/client/batch/BatchInterruptedException.html" title="class in com.google.gdata.client.batch">BatchInterruptedException</A></PRE>
|
|
<DL>
|
|
<DD>Executes several operations (insert, update or delete) on the entries that
|
|
are part of the input <A HREF="../../../../com/google/gdata/data/IFeed.html" title="interface in com.google.gdata.data"><CODE>IFeed</CODE></A>. It will return another feed that
|
|
describes what was done while executing these operations.
|
|
|
|
It is possible for one batch operation to fail even though other operations
|
|
have worked, so this method won't throw a ServiceException unless something
|
|
really wrong is going on. You need to check the entries in the returned
|
|
feed to know which operations succeeded and which operations failed (see
|
|
<A HREF="../../../../com/google/gdata/data/batch/BatchStatus.html" title="class in com.google.gdata.data.batch"><CODE>BatchStatus</CODE></A> and
|
|
<A HREF="../../../../com/google/gdata/data/batch/BatchInterrupted.html" title="class in com.google.gdata.data.batch"><CODE>BatchInterrupted</CODE></A> extensions.)
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/google/gdata/client/Service.html#batch(java.net.URL, F)">batch</A></CODE> in class <CODE><A HREF="../../../../com/google/gdata/client/Service.html" title="class in com.google.gdata.client">Service</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>feedUrl</CODE> - the POST URI associated with the target feed.<DD><CODE>inputFeed</CODE> - a description of the operations to execute, described
|
|
using tags in the batch: namespace
|
|
<DT><B>Returns:</B><DD>a feed with the result of each operation in a separate entry
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE>java.io.IOException</CODE> - error communicating with the GData service.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ParseException.html" title="class in com.google.gdata.util">ParseException</A></CODE> - error parsing the return entry
|
|
data.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/util/ServiceException.html" title="class in com.google.gdata.util">ServiceException</A></CODE> - insert request failed due to system error.
|
|
<DD><CODE><A HREF="../../../../com/google/gdata/client/batch/BatchInterruptedException.html" title="class in com.google.gdata.client.batch">BatchInterruptedException</A></CODE> - if something really wrong was detected by
|
|
the server while parsing the request, like invalid XML data. Some
|
|
operations might have succeeded when this exception is thrown.
|
|
Check <A HREF="../../../../com/google/gdata/client/batch/BatchInterruptedException.html#getIFeed()"><CODE>BatchInterruptedException.getIFeed()</CODE></A>.<DT><B>See Also:</B><DD><A HREF="../../../../com/google/gdata/data/IFeed.html#getEntryPostLink()"><CODE>IFeed.getEntryPostLink()</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../com/google/gdata/client/GoogleAuthTokenFactory.UserToken.html" title="class in com.google.gdata.client"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../com/google/gdata/client/GoogleService.AccountDeletedException.html" title="class in com.google.gdata.client"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?com/google/gdata/client/GoogleService.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="GoogleService.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_com.google.gdata.client.Service">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<div id="footer"><div id="footerlogo"><img src=http://www.google.com/images/art.gif alt="Google colored balls" /></div><div id="copyright"><p>© 2007 Google - <a href=http://www.google.com/privacy.html>Privacy Policy</a> - <a href=http://www.google.com/terms_of_service.html>Terms and Conditions</a> -<a href=http://www.google.com/about.html>About Google</a></p></div></div><script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> try {var pageTracker = _gat._getTracker("UA-18071-1");pageTracker._setAllowAnchor(true);pageTracker._initData();pageTracker._trackPageView();} catch(e) {}</script>
|
|
</BODY>
|
|
</HTML>
|