Exemplo n.º 1
0
  public Document HTMLGetRelations(String html, String url, AlchemyAPI_RelationParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckHTML(html, url);

    params.setUrl(url);
    params.setHtml(html);

    return POST("HTMLGetRelations", "html", params);
  }
Exemplo n.º 2
0
  public Document TextGetRelations(String text, AlchemyAPI_RelationParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckText(text);

    params.setText(text);

    return POST("TextGetRelations", "text", params);
  }
Exemplo n.º 3
0
  public Document URLGetRelations(String url, AlchemyAPI_RelationParams params)
      throws IOException, SAXException, ParserConfigurationException, XPathExpressionException {
    CheckURL(url);

    params.setUrl(url);

    return GET("URLGetRelations", "url", params);
  }