- saveAs(String) - Method in class com.jaunt.Element
-
Saves the current element and it's children/descendants as (UTF-8) HTML in the file specified by the relative filepath.
- saveAsXML(String) - Method in class com.jaunt.Element
-
Saves the current element and it's children/descendants as (UTF-8) XML in the file specified by the relative filepath.
- saveCompleteWebPage(File) - Method in class com.jaunt.Document
-
Saves the document in the specified file and creates a folder in the same directory where associated content (eg., images, js, css, nested frames, etc) is saved, so that the document may be viewed offline;
The name of the content folder is "content_for_FILENAME" where FILENAME is the specified file's name.
- saveCookies(File) - Method in class com.jaunt.Cookies
-
Saves cookies to the specified file.
- SearchException - Exception in com.jaunt
-
Represents an error related to a search function.
- SearchException(String) - Constructor for exception com.jaunt.SearchException
-
Creates a new Exception with the specified error message.
- send(HttpRequest) - Method in class com.jaunt.UserAgent
-
Sends the specified HttpRequest (GET, POST, HEAD, DELETE, or PUT)
- sendDELETE(String) - Method in class com.jaunt.UserAgent
-
Sends an HTTP DELETE request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendDELETE(String, String...) - Method in class com.jaunt.UserAgent
-
Sends an HTTP DELETE request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendGET(String) - Method in class com.jaunt.UserAgent
-
Sends an HTTP GET request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendGET(String, String...) - Method in class com.jaunt.UserAgent
-
Sends an HTTP GET request for the specified url; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendHEAD(String, String...) - Method in class com.jaunt.UserAgent
-
Sends an HTTP HEAD request to the specified url; UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information), and is also the return value.
- sendHEAD(String) - Method in class com.jaunt.UserAgent
-
Sends an HTTP HEAD request to the specified url; UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information), and is also the return value.
- sendPOST(String, String) - Method in class com.jaunt.UserAgent
-
Sends an HTTP POST request for the specified url and queryString; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendPOST(String, String, String...) - Method in class com.jaunt.UserAgent
-
Sends an HTTP POST request for the specified url and queryString; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendPUT(String, String) - Method in class com.jaunt.UserAgent
-
Sends an HTTP PUT request for the specified url and content; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- sendPUT(String, String, String...) - Method in class com.jaunt.UserAgent
-
Sends an HTTP PUT request for the specified url and content; UserAgent.doc is created to represent the retrieved HTML/XML/XHTML Document (which is also returned by this method); UserAgent.response is created to represent the HttpResponse (the response headers and other response-related information).
- set(String, String) - Method in class com.jaunt.component.Form
-
Sets the form input with the specified name to the specified value; FileComponents are set to upload the file who's location is specified by the specified value;
Checkboxes are 'checked' if the specified value is the same (case insensitive) as the value attribute of the checkbox (or if the specified value is "on" in cases where the checkbox has no value attribute).
- setAction(String) - Method in class com.jaunt.component.Form
-
Sets the action attribute of the form to the specified url.
- setAttribute(String, String) - Method in class com.jaunt.Element
-
Adds a new attribute name and attribute value or associates an existing attribute name with a new attribute value.
- setCache(Cache) - Method in class com.jaunt.UserAgent
-
Sets the specified cache; the cache must be enabled before being used.
- setCacheEnabled(boolean) - Method in class com.jaunt.UserAgent
-
Turns on/off caching, which causes HTML/XHTML source retrieved by HTTP GET request to be stored in the cache and pulled from that cache for any subsequent GET requests to the same url, as long as caching is enabled; by default, caching is handled by the FileSystemCache, which stores files in a directory called "jaunt_cache", which is in the directory specified by UserAgentSettings.outputPath.
- setCheckBox(String, boolean) - Method in class com.jaunt.component.Form
-
Sets whether the first checkbox with the specified (case-insensitive) name is checked and throws an Exception if the checkbox was not found.
- setCredentials(String, String) - Static method in class com.jaunt.util.ProxyAuthenticator
-
Sets the ProxyAuthenticator with the specified username and password; The System properties http.proxyHost and http.proxyPort should be set before calling this method.
- setDomain(String) - Method in class com.jaunt.Cookie
-
Sets the domain of the cookie to the specified value.
- setEnctype(short) - Method in class com.jaunt.component.Form
-
Sets the enctype of the form to the specified enctype (constant of HttpRequest).
- setEnctype(short) - Method in class com.jaunt.HttpRequest
-
Sets the enctype to the specified enctype constant.
- setExpires(String) - Method in class com.jaunt.Cookie
-
Sets the expires field of the cookie to the specified (GMT String) value, eg Thu, 15-Apr-2010 20:00:00 GMT
- setFile(String, File) - Method in class com.jaunt.component.Form
-
Sets the first FileComponent with the specified (case insensitive) name to upload the specified File and throws an Exception if no FileComponent with specified name was found.
- setFilter(FilterCallback) - Method in class com.jaunt.UserAgent
-
Deprecated.
- setHandler(String, Handler) - Method in class com.jaunt.UserAgent
-
Sets the content handler for the specified contentType; the Handler receives callbacks to process the content rather than having it handled by the parser.
- setHidden(String, String) - Method in class com.jaunt.component.Form
-
Sets the first hidden field with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name exists.
- setHttpOnly(boolean) - Method in class com.jaunt.Cookie
-
Sets whether the cookie has the HttpOnly flag.
- setMethod(short) - Method in class com.jaunt.component.Form
-
Sets the method (GET or POST) to the specified method constant in HttpRequest.
- setName(String) - Method in class com.jaunt.Cookie
-
Sets the name field of the cookie to the specified value.
- setNameValuePair(String, String) - Method in class com.jaunt.HttpRequest
-
Adds the specified name and value, removing any other values associated with the specified name, irrespective of the case of the name; the added values should be url-encoded if creating a request of who's enctype is ENCTYPE_APPLICATION_X_WWW_FORM_URLENCODED.
- setPassword(String, String) - Method in class com.jaunt.component.Form
-
Sets the first password field with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name exists.
- setPath(String) - Method in class com.jaunt.Cookie
-
Sets the path of the cookie to the specified value.
- setProxyHost(String) - Method in class com.jaunt.UserAgent
-
Sets or clears the ip address of the http proxy.
- setProxyPort(int) - Method in class com.jaunt.UserAgent
-
Sets the port number of the http proxy to be used.
- setRadio(String, String) - Method in class com.jaunt.component.Form
-
Sets the radiobutton with the specified (case insensitive) name and
(case insensitive) value to 'checked' and deselects all other radiobuttons
with the same name.
- setRadio(String, int) - Method in class com.jaunt.component.Form
-
Sets the radiobutton at index n and with the specified name to be 'checked' and
deselects all onther radiobuttons with the same name, throwing an exception if no such radiobutton exists.
- setReferer(String) - Method in class com.jaunt.UserAgent
-
Sets the value of the referer header in the next HTTP request.
- setSecure(boolean) - Method in class com.jaunt.Cookie
-
Sets whether the cookie has the secure flag.
- setSelect(String, String) - Method in class com.jaunt.component.Form
-
Sets the first menu option with specified (case insensitive) name and (case insensitive) value to 'selected' and
deselects all other options in the same select tag if the select tag does
not have 'multiple' keyword; throws an Exception if no such menu option exists.
- setSelect(String, int) - Method in class com.jaunt.component.Form
-
Sets the nth menu option with the specified (case insensitive) name to 'selected',
and deselects all other options in the same select tag, throwing an Exception if no such menu option was found.
- setText(String) - Method in class com.jaunt.Comment
-
Sets the text content of the Comment.
- setTextArea(String, String) - Method in class com.jaunt.component.Form
-
Sets the textarea with specified (case insensitive) name to the specified value and throws an Exception if no such button exists.
- setTextField(String, String) - Method in class com.jaunt.component.Form
-
Sets the first textfield with the specified (case insensitive) name to the specified value and throws an Exception if no field with specified name was found.
- settings - Variable in class com.jaunt.UserAgent
-
The UserAgent's settings.
- setValue(String) - Method in class com.jaunt.Cookie
-
Sets the value field of the cookie to the specified value.
- setValue(String) - Method in class com.jaunt.Text
-
Sets the text value.
- showHeaders - Variable in class com.jaunt.UserAgentSettings
-
UserAgent setting indicating whether to print HTTP request headers and response headers to System.out.
- showTravel - Variable in class com.jaunt.UserAgentSettings
-
UserAgent setting indicating whether to print current request/location to System.out (including requests when downloading a complete web page).
- showWarnings - Variable in class com.jaunt.UserAgentSettings
-
UserAgent setting indicating whether to print warning messages to System.out.
- size() - Method in class com.jaunt.Elements
-
Returns the number of child Elements.
- size() - Method in class com.jaunt.JNode
-
If this Node does not represent a JSON object or array, return -1; otherwise returns the number of child nodes in the object/array.
- size() - Method in class com.jaunt.util.MultiMap
-
Returns the number of unique keys.
- sort(K) - Method in class com.jaunt.util.MultiMap
-
Sorts the objects associated with the specified key alphabetically.
- stackTraceToString(Throwable) - Static method in class com.jaunt.util.IOUtil
-
Returns a String representation of the stracktrace generated by the specified Throwable.
- submit() - Method in class com.jaunt.component.Form
-
Submits the the form without pressing any particular submit button; no name-value pair contribution from any submit button is added to the query string.
- submit(int) - Method in class com.jaunt.component.Form
-
Submits the the form by pressing the submit button specified by its index, with indexing starting at 0 for the first submit button, throwing a NotFound Exception if the specified submitButton is not found.
- submit(String) - Method in class com.jaunt.component.Form
-
Submits the the form by pressing the first submit button who's value (ie, text label) matches the specified (case-insensitive) regular expression (using Matcher.matches) and throws an Exception if the specified submitButton does not exist.
- submit() - Method in class com.jaunt.Document
-
Submits the active form by pressing the submit button, throws a MultipleFound exception if more than one submit button exists in the form.
- submit(String) - Method in class com.jaunt.Document
-
Submits the active form using the submit button who's text matches the specified (case insensitive) regular expression, using Matcher.matches.