Android Open Source - Android-Link-Preview Source Content






From Project

Back to project page Android-Link-Preview.

License

The source code is released under:

Apache License

If you think the Android project Android-Link-Preview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.leocardz.link.preview.library;
/*from   www.  j  a  v a2s. co m*/
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class SourceContent {

  private boolean success = false;
  private String htmlCode = "";
  private String raw = "";
  private String title = "";
  private String description = "";
  private String url = "";
  private String finalUrl = "";
  private String cannonicalUrl = "";
  private HashMap<String, String> metaTags = new HashMap<String, String>();

  private List<String> images = new ArrayList<String>();
  private String[] urlData = new String[2];

  public SourceContent() {
  }

  /**
   * @return the success
   */
  public boolean isSuccess() {
    return success;
  }

  /**
   * @param success
   *            the success to set
   */
  public void setSuccess(boolean success) {
    this.success = success;
  }

  /**
   * @return the htmlCode
   */
  public String getHtmlCode() {
    return htmlCode;
  }

  /**
   * @param htmlCode
   *            the htmlCode to set
   */
  public void setHtmlCode(String htmlCode) {
    this.htmlCode = htmlCode;
  }

  /**
   * @return the raw
   */
  public String getRaw() {
    return raw;
  }

  /**
   * @param raw
   *            the raw to set
   */
  public void setRaw(String raw) {
    this.raw = raw;
  }

  /**
   * @return the title
   */
  public String getTitle() {
    return title;
  }

  /**
   * @param title
   *            the title to set
   */
  public void setTitle(String title) {
    this.title = title;
  }

  /**
   * @return the description
   */
  public String getDescription() {
    return description;
  }

  /**
   * @param description
   *            the description to set
   */
  public void setDescription(String description) {
    this.description = description;
  }

  /**
   * @return the url
   */
  public String getUrl() {
    return url;
  }

  /**
   * @param url
   *            the url to set
   */
  public void setUrl(String url) {
    this.url = url;
  }

  /**
   * @return the finalUrl
   */
  public String getFinalUrl() {
    return finalUrl;
  }

  /**
   * @param finalUrl
   *            the finalUrl to set
   */
  public void setFinalUrl(String finalUrl) {
    this.finalUrl = finalUrl;
  }

  /**
   * @return the cannonicalUrl
   */
  public String getCannonicalUrl() {
    return cannonicalUrl;
  }

  /**
   * @param cannonicalUrl
   *            the cannonicalUrl to set
   */
  public void setCannonicalUrl(String cannonicalUrl) {
    this.cannonicalUrl = cannonicalUrl;
  }

  /**
   * @return the metaTags
   */
  public HashMap<String, String> getMetaTags() {
    return metaTags;
  }

  /**
   * @param metaTags
   *            the metaTags to set
   */
  public void setMetaTags(HashMap<String, String> metaTags) {
    this.metaTags = metaTags;
  }

  /**
   * @return the images
   */
  public List<String> getImages() {
    return images;
  }

  /**
   * @param images
   *            the images to set
   */
  public void setImages(List<String> images) {
    this.images = images;
  }

  /**
   * @return the urlData
   */
  public String[] getUrlData() {
    return urlData;
  }

  /**
   * @param urlData
   *            the urlData to set
   */
  public void setUrlData(String[] urlData) {
    this.urlData = urlData;
  }

}




Java Source Code List

com.leocardz.link.preview.Main.java
com.leocardz.link.preview.library.DowloadImageCallback.java
com.leocardz.link.preview.library.LinkPreviewCallback.java
com.leocardz.link.preview.library.Regex.java
com.leocardz.link.preview.library.SearchUrls.java
com.leocardz.link.preview.library.SourceContent.java
com.leocardz.link.preview.library.TextCrawler.java