public static class GoogleMobileSitemapUrl.Options extends Object
| Constructor and Description |
|---|
Options(String url)
Specifies the url
|
Options(URL url)
Specifies the url
|
| Modifier and Type | Method and Description |
|---|---|
U |
build()
Return an URL based on these settings
|
THIS |
changeFreq(ChangeFreq changeFreq)
How frequently the page is likely to change.
|
THIS |
lastMod(Date lastMod)
The date of last modification of the file.
|
THIS |
lastMod(String lastMod)
The date of last modification of the file.
|
THIS |
priority(Double priority)
The priority of this URL relative to other URLs on your site.
|
public Options(String url) throws MalformedURLException
MalformedURLExceptionpublic Options(URL url)
public THIS lastMod(Date lastMod)
public THIS lastMod(String lastMod) throws ParseException
ParseException - if the string isn't a valid W3C date timeW3CDateFormatpublic THIS changeFreq(ChangeFreq changeFreq)
ChangeFreq.ALWAYS should be used to
describe documents that change each time they are accessed. The value
ChangeFreq.NEVER should be used to describe archived URLs.
Please note that the
value of this tag is considered a hint and not a command. Even though
search engine crawlers may consider this information when making
decisions, they may crawl pages marked ChangeFreq.HOURLY less frequently than
that, and they may crawl pages marked ChangeFreq.YEARLY more frequently than
that. Crawlers may periodically crawl pages marked ChangeFreq.NEVER so that
they can handle unexpected changes to those pages.
public THIS priority(Double priority)
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites-it only lets the search engines know which pages you deem most important for the crawlers.
The default priority of a page is 0.5.
Please note that the priority you assign to a page is not likely to influence the position of your URLs in a search engine's result pages. Search engines may use this information when selecting between URLs on the same site, so you can use this tag to increase the likelihood that your most important pages are present in a search index.
Also, please note that assigning a high priority to all of the URLs on your site is not likely to help you. Since the priority is relative, it is only used to select between URLs on your site.
public U build()
Copyright © 2015. All rights reserved.