public static class GoogleCodeSitemapUrl.Options extends Object
| Constructor and Description |
|---|
Options(String
Specifies an url and a filetype (both mandatory in Google Code Search)
|
Options(String
Specifies an url and a filetype (both mandatory in Google Code Search)
|
Options(URL
Specifies an url and a filetype (both mandatory in Google Code Search)
|
Options(URL
Specifies an url and a filetype (both mandatory in Google Code Search)
|
| Modifier and Type | Method and Description |
|---|---|
U |
build()
Return an URL based on these settings
|
THIS |
changeFreq(ChangeFreq
How frequently the page is likely to change.
|
GoogleCodeSitemapUrl |
fileName(String
The name of the actual file; this is useful if the URL ends in something like download.php?id=1234 instead of the actual filename.
|
THIS |
lastMod(Date
The date of last modification of the file.
|
THIS |
lastMod(String
The date of last modification of the file.
|
GoogleCodeSitemapUrl |
license(GoogleCodeSitemapUrl
Specifies code license
|
GoogleCodeSitemapUrl |
license(String
Specifies code license; when the value is not one of the recognized licenses, this will cause Google to index the item as "unknown license".
|
GoogleCodeSitemapUrl |
packageMap(String
The name of the packagemap file inside an
GoogleCodeSitemapUrl; just like a Sitemap is a list of files on a web site, a packagemap is a list of files in a package.
|
GoogleCodeSitemapUrl |
packageUrl(String
The URL truncated at the top-level directory for the package; this tells Google which files belong together.
|
GoogleCodeSitemapUrl |
packageUrl(URL
The URL truncated at the top-level directory for the package; this tells Google which files belong together.
|
THIS |
priority(Double
The priority of this URL relative to other URLs on your site.
|
public Options(Stringurl, GoogleCodeSitemapUrl .FileType fileType) throws MalformedURLException
MalformedURLException
public Options(URLurl, GoogleCodeSitemapUrl .FileType fileType)
public Options(Stringurl, String fileType) throws MalformedURLException
MalformedURLException
public GoogleCodeSitemapUrl.Options license(GoogleCodeSitemapUrl .License license)
public GoogleCodeSitemapUrl.Options license(String license)
public GoogleCodeSitemapUrl.Options fileName(String fileName)
GoogleCodeSitemapUrl.FileType.ARCHIVE file, it will be indexed only if it has one of the supported archive suffixes.
public GoogleCodeSitemapUrl.Options packageUrl(URL packageUrl)
GoogleCodeSitemapUrl.FileType.ARCHIVE . For example, the file http://path/Foo/1.23/bar/file.c could have the package URL http://path/Foo/1.23. All files in a package should have the same packageurl.
public GoogleCodeSitemapUrl.Options packageUrl(String packageUrl) throws MalformedURLException
GoogleCodeSitemapUrl.FileType.ARCHIVE . For example, the file http://path/Foo/1.23/bar/file.c could have the package URL http://path/Foo/1.23. All files in a package should have the same packageurl.
MalformedURLException
public GoogleCodeSitemapUrl.Options packageMap(String packageMap)
GoogleCodeSitemapUrl.FileType.ARCHIVE ; just like a Sitemap is a list of files on a web site, a packagemap is a list of files in a package. Case-sensitive. For use only when filetype is
GoogleCodeSitemapUrl.FileType.ARCHIVE .
public THIS lastMod(DatelastMod)
public THIS lastMod(StringlastMod) throws ParseException
ParseException - if the string isn't a valid W3C date time
W3CDateFormat
public THIS changeFreq(ChangeFreqchangeFreq)
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 less frequently than that, and they may crawl pages marked ChangeFreq more frequently than that. Crawlers may periodically crawl pages marked ChangeFreq so that they can handle unexpected changes to those pages.
public THIS priority(Doublepriority)
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()