Lines Matching refs:url
192 * @param url the url
195 public static Token tokenForUrl(String url, String text) {
196 if(url == null) {
201 Video video = Video.matchURL(url, text);
207 YouTubeVideo ytVideo = YouTubeVideo.matchURL(url, text);
213 Photo photo = Photo.matchURL(url, text);
219 FlickrPhoto flickrPhoto = FlickrPhoto.matchURL(url, text);
225 return new Link(url, text);
358 String url = "";
436 url = "http://";
451 url += urlText;
454 addURLToken(url, urlText);
464 private void addURLToken(String url, String text) {
465 addToken(tokenForUrl(url, text));
790 private String url;
792 public Link(String url, String text) {
794 this.url = url;
797 public String getURL() { return url; }
828 /** Returns a Video object if the given url is to a video. */
829 public static Video matchURL(String url, String text) {
830 Matcher m = URL_PATTERN.matcher(url);
887 /** Returns a Video object if the given url is to a video. */
888 public static YouTubeVideo matchURL(String url, String text) {
889 Matcher m = URL_PATTERN.matcher(url);
978 /** Returns a Photo object if the given url is to a photo or album. */
979 public static Photo matchURL(String url, String text) {
980 Matcher m = URL_PATTERN.matcher(url);
1063 * Returns a FlickrPhoto object if the given url is to a photo or Flickr
1066 public static FlickrPhoto matchURL(String url, String text) {
1067 Matcher m = GROUPING_PATTERN.matcher(url);
1072 m = URL_PATTERN.matcher(url);