public class

SitesEntry

extends BaseEntry<E extends BaseEntry>
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.BaseEntry<E extends com.google.gdata.data.BaseEntry>
         ↳ com.google.gdata.data.webmastertools.SitesEntry

Class Overview

This represents a single web site entry. It conveys information about a given site that is identified by site URL. It specifies whether site is indexed by Google, verified, last time the web site has been crawled, etc. The entry list all the available verification methods that can be used by this web site for verification with one of the methods marked to be in-use at the time. See VerificationMethod for more information. Example (common Atom nodes are omitted):

   
     http://www.websiteurl.com/
     true
     US
     normal
     preferwww
     true
     
     
     


Summary

Nested Classes
class SitesEntry.Crawled This class is deprecated. This class is not used any more.  
class SitesEntry.CrawlingRate Crawl Rate construct to represent field. 
class SitesEntry.EnhancedImageSearch Boolean value construct to represent field. 
class SitesEntry.Geolocation Region code value construct to represent field. 
class SitesEntry.Indexed This class is deprecated. This class is not used any more.  
class SitesEntry.PreferredDomain Domain Preference construct to represent field. 
class SitesEntry.Verified Boolean value construct to represent field. 
Constants
String CRAWLED
String CRAWL_RATE
String ENHANCED_IMAGE_SEARCH
String GEOLOCATION
String INDEXED These define XML node names defined inside of this entry.
String PREFERRED_DOMAIN
String VERIFIED
Fields
private static final Category CATEGORY Kind category used to label entry.
[Expand]
Inherited Fields
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
SitesEntry()
Constructs a new SitesEntry instance
Public Methods
void addVerificationMethod(VerificationMethod method)
Add available verification method for the site.
void declareExtensions(ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected by a SitesEntry.
CrawlRate getCrawlRate()
Returns site crawl rate.
DateTime getCrawled()
This method is deprecated. This field is not used any more.
boolean getEnhancedImageSearch()
Returns the Enhanced Image Search setting.
List<EntryLink> getEntryLinks()
Returns a List of EntryLink for the links of this class, which are the child feeds.
String getGeolocation()
Returns site geographic location.
boolean getIndexed()
This method is deprecated. This field is not used any more.
DomainPreference getPreferredDomain()
Returns the domain preference for the site.
List<VerificationMethod> getVerificationMethods()
Returns List of the verification methods for the site.
boolean getVerified()
Returns site verification status.
void setCrawlRate(CrawlRate rate)
Changes the crawl rate.
void setCrawled(DateTime crawlTime)
This method is deprecated. This field is not used any more.
void setEnhancedImageSearch(boolean enabled)
Changes the Enhanced Image Search setting.
void setGeolocation(String regionCode)
Changes site geographic location.
void setIndexed(boolean isIndexed)
This method is deprecated. This field is not used any more.
void setPreferredDomain(DomainPreference preference)
Changes the domain preference.
void setVerified(boolean isVerified)
Changes site verification status.
Protected Methods
void validate()
Validates that the list of verification methods contains no duplicate method types and in-use flag is only set once.
[Expand]
Inherited Methods
From class com.google.gdata.data.BaseEntry
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension
From interface com.google.gdata.data.IAtom
From interface com.google.gdata.data.IEntry
From interface com.google.gdata.data.Kind.Adaptable
From interface com.google.gdata.data.Kind.Adaptor

Constants

private static final String CRAWLED

Constant Value: "crawled"

private static final String CRAWL_RATE

Constant Value: "crawl-rate"

private static final String ENHANCED_IMAGE_SEARCH

Constant Value: "enhanced-image-search"

private static final String GEOLOCATION

Constant Value: "geolocation"

private static final String INDEXED

These define XML node names defined inside of this entry.

Constant Value: "indexed"

private static final String PREFERRED_DOMAIN

Constant Value: "preferred-domain"

private static final String VERIFIED

Constant Value: "verified"

Fields

private static final Category CATEGORY

Kind category used to label entry.

Public Constructors

public SitesEntry ()

Constructs a new SitesEntry instance

Public Methods

public void addVerificationMethod (VerificationMethod method)

Add available verification method for the site.

Parameters
method

public void declareExtensions (ExtensionProfile extProfile)

Initializes an ExtensionProfile based upon the extensions expected by a SitesEntry. Extension profile specifies which nodes are expected to be in the entry.

Parameters
extProfile The ExtensionProfile to initialize.

public CrawlRate getCrawlRate ()

Returns site crawl rate.

Returns
  • A CrawlRate enum representing the crawl rate.

public DateTime getCrawled ()

This method is deprecated.
This field is not used any more.

Returns site last crawl time.

Returns
  • last crawl time or null if time is not set.

public boolean getEnhancedImageSearch ()

Returns the Enhanced Image Search setting.

Returns
  • true if Enhanced Image Search is enabled, false if it is disabled.

public List<EntryLink> getEntryLinks ()

Returns a List of EntryLink for the links of this class, which are the child feeds.

public String getGeolocation ()

Returns site geographic location. See http://www.unicode.org/cldr/data/diff/supplemental/territory_containment_un_m_49.html.

Returns
  • A two-letter code representing a country.

public boolean getIndexed ()

This method is deprecated.
This field is not used any more.

Returns site indexing status.

Returns
  • true if site is indexed or false otherwise.

public DomainPreference getPreferredDomain ()

Returns the domain preference for the site.

Returns
  • A DomainPreference value that indicates which one of the domain preferences for the site is preferred.

public List<VerificationMethod> getVerificationMethods ()

Returns List of the verification methods for the site.

public boolean getVerified ()

Returns site verification status.

Returns
  • true if site is indexed or false otherwise.

public void setCrawlRate (CrawlRate rate)

Changes the crawl rate.

Parameters
rate Is an integer representing the desired crawl rate.

public void setCrawled (DateTime crawlTime)

This method is deprecated.
This field is not used any more.

Changes the latest crawl time.

Parameters
crawlTime Specifies site last crawl time.

public void setEnhancedImageSearch (boolean enabled)

Changes the Enhanced Image Search setting.

Parameters
enabled Specifies whether enhanced image should be enabled.

public void setGeolocation (String regionCode)

Changes site geographic location. See http://www.unicode.org/cldr/data/diff/supplemental/territory_containment_un_m_49.html.

Parameters
regionCode Is a two-letter code representing a country.

public void setIndexed (boolean isIndexed)

This method is deprecated.
This field is not used any more.

Changes site indexing status.

Parameters
isIndexed Specifies if site is indexed or not.

public void setPreferredDomain (DomainPreference preference)

Changes the domain preference.

Parameters
preference Is a DomainPreference that indicates which one of the possibilities is preferred, using domain, www.domain, or no association at all.

public void setVerified (boolean isVerified)

Changes site verification status.

Parameters
isVerified Specifies if site is verified or not.

Protected Methods

protected void validate ()

Validates that the list of verification methods contains no duplicate method types and in-use flag is only set once.

Throws
IllegalStateException