public static class GoogleVideoSitemapUrl.Options extends Object
| Constructor and Description |
|---|
Options(URL
Specifies a landing page URL, together with the URL of the underlying video (e.g.
|
Options(URL
Specifies a landing page URL, together with a "player" (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
U |
build()
Return an URL based on these settings
|
GoogleVideoSitemapUrl |
category(String
The video's category; for example,
cooking.
|
THIS |
changeFreq(ChangeFreq
How frequently the page is likely to change.
|
GoogleVideoSitemapUrl |
contentUrl(URL
Specifies the URL of the underlying video (e.g FLV)
|
GoogleVideoSitemapUrl |
description(String
The description of the video.
|
GoogleVideoSitemapUrl |
durationInSeconds(int durationInSeconds)
The duration of the video in seconds; value must be between 0 and 28800 (8 hours).
|
GoogleVideoSitemapUrl |
familyFriendly(boolean familyFriendly)
Whether the video is suitable for viewing by children
|
THIS |
lastMod(Date
The date of last modification of the file.
|
THIS |
lastMod(String
The date of last modification of the file.
|
GoogleVideoSitemapUrl |
playerUrl(URL
Specifies a player URL (e.g.
|
THIS |
priority(Double
The priority of this URL relative to other URLs on your site.
|
GoogleVideoSitemapUrl |
publicationDate(Date
The date the video was first published, in
W3CDateFormat.
|
GoogleVideoSitemapUrl |
rating(Double
The rating of the video.
|
GoogleVideoSitemapUrl |
tags(ArrayList
Tag associated with the video; tags are generally very short descriptions of key concepts associated with a video or piece of content.
|
GoogleVideoSitemapUrl |
tags(Iterable
Tag associated with the video; tags are generally very short descriptions of key concepts associated with a video or piece of content.
|
GoogleVideoSitemapUrl |
tags(String
Tag associated with the video; tags are generally very short descriptions of key concepts associated with a video or piece of content.
|
GoogleVideoSitemapUrl |
thumbnailUrl(URL
A URL pointing to the URL for the video thumbnail image file.
|
GoogleVideoSitemapUrl |
title(String
The title of the video.
|
GoogleVideoSitemapUrl |
viewCount(int viewCount)
The number of times the video has been viewed
|
public Options(URLurl, URL playerUrl, boolean allowEmbed)
url - the landing page URL
playerUrl - the URL of the "player" (e.g. SWF file)
allowEmbed - when specifying a player, you must specify whether embedding is allowed
public GoogleVideoSitemapUrl.Options playerUrl(URL playerUrl, boolean allowEmbed)
playerUrl - the URL of the "player" (e.g. SWF file)
allowEmbed - when specifying a player, you must specify whether embedding is allowed
public GoogleVideoSitemapUrl.Options contentUrl(URL contentUrl)
public GoogleVideoSitemapUrl.Options thumbnailUrl(URL thumbnailUrl)
contentUrl(URL), Google will attempt to generate a set of representative thumbnail images from your actual video content. However, we strongly recommended that you provide a thumbnail URL to increase the likelihood of your video being included in the video index.
public GoogleVideoSitemapUrl.Options title(String title)
public GoogleVideoSitemapUrl.Options description(String description)
public GoogleVideoSitemapUrl.Options rating(Double rating)
public GoogleVideoSitemapUrl.Options viewCount(int viewCount)
public GoogleVideoSitemapUrl.Options publicationDate(Date publicationDate)
W3CDateFormat.
public GoogleVideoSitemapUrl.Options tags(ArrayList <String > tags)
public GoogleVideoSitemapUrl.Options tags(Iterable <String > tags)
public GoogleVideoSitemapUrl.Options tags(String ... tags)
public GoogleVideoSitemapUrl.Options category(String category)
cooking. The value should be a string no longer than 256 characters. In general, categories are broad groupings of content by subject. Usually a video will belong to a single category. For example, a site about cooking could have categories for Broiling, Baking, and Grilling
public GoogleVideoSitemapUrl.Options familyFriendly(boolean familyFriendly)
public GoogleVideoSitemapUrl.Options durationInSeconds(int durationInSeconds)
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()