HTTPHandler concept working with HTML pages.
This concept is able to get HTML page content.
URL format is :
http://<hostName>:<port>/<path>
Possible options :
-
requests
- use this option to specify how many times will
go the search in sublinks from the current HTML page.
-
depth
- use this option to specify how deep will go the search
in sublink from the current HTML page.
-
filter
- use this option to specify filter for your results.
Connect to google page and get content of this page
$x from "http://www.google.com"
print $x/content
Connect to google page and get page links recursively 5 times in 3 depth.
$pages from "http://www.google.com" options "requests"=5 ,"depth"=3
each $page in $pages do [
print $page@url
]
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML |
|
Methods inherited from: URIHandler
|
Parameters: |
$url : | The url with which this HttpHandler will be created. |
|
Creates a new HttpHandler concept with the given $url.
Parameters: |
$uri : |
The uri which will be tested if it is acceptable by this handler.
|
|
Returns true if the given $uri is acceptable by this handler, false
otherwise.
Returns true and close this connection.
Returns the content of this handler.
Parameters: |
$options : |
Contains a filter with which the returned content will be filtered.
|
|
Returns true.
Returns true and open a new connection.
Parameters: |
$value : | The value to be set. |
|
Return false.