target.apidocs.com.google.api.services.webmasters.Webmasters.Sitemaps.html Maven / Gradle / Ivy
Webmasters.Sitemaps (Search Console API v3-rev20190428-1.30.1)
com.google.api.services.webmasters
Class Webmasters.Sitemaps
- java.lang.Object
-
- com.google.api.services.webmasters.Webmasters.Sitemaps
-
- Enclosing class:
- Webmasters
public class Webmasters.Sitemaps
extends Object
The "sitemaps" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Webmasters.Sitemaps.Delete
class
Webmasters.Sitemaps.Get
class
Webmasters.Sitemaps.List
class
Webmasters.Sitemaps.Submit
-
Constructor Summary
Constructors
Constructor and Description
Sitemaps()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Webmasters.Sitemaps.Delete
delete(String siteUrl,
String feedpath)
Deletes a sitemap from this site.
Webmasters.Sitemaps.Get
get(String siteUrl,
String feedpath)
Retrieves information about a specific sitemap.
Webmasters.Sitemaps.List
list(String siteUrl)
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if
sitemapIndex is specified in the request).
Webmasters.Sitemaps.Submit
submit(String siteUrl,
String feedpath)
Submits a sitemap for a site.
-
-
Method Detail
-
delete
public Webmasters.Sitemaps.Delete delete(String siteUrl,
String feedpath)
throws IOException
Deletes a sitemap from this site.
Create a request for the method "sitemaps.delete".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/
feedpath
- The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
- Returns:
- the request
- Throws:
IOException
-
get
public Webmasters.Sitemaps.Get get(String siteUrl,
String feedpath)
throws IOException
Retrieves information about a specific sitemap.
Create a request for the method "sitemaps.get".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/
feedpath
- The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
- Returns:
- the request
- Throws:
IOException
-
list
public Webmasters.Sitemaps.List list(String siteUrl)
throws IOException
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if
sitemapIndex is specified in the request).
Create a request for the method "sitemaps.list".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/
- Returns:
- the request
- Throws:
IOException
-
submit
public Webmasters.Sitemaps.Submit submit(String siteUrl,
String feedpath)
throws IOException
Submits a sitemap for a site.
Create a request for the method "sitemaps.submit".
This request holds the parameters needed by the webmasters server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/
feedpath
- The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2019 Google. All rights reserved.