Jaunt Changelog

What's new in Jaunt 0.9.9.9 Beta

May 1, 2015
  • No changes to the library.

New in Jaunt 0.9.9.7 Beta (Mar 2, 2015)

  • No changes to the library.

New in Jaunt 0.9.9.6 Beta (Feb 3, 2015)

  • Fixed bug where the parser did not correctly convery relative urls in the document to absolute urls (querystring params dropped) in case where relative url was a bookmark (eg '#foo').

New in Jaunt 0.9.9.5 Beta (Jan 3, 2015)

  • Form.submit(String), Form.getRequest(String), and Form.getRequest(Pattern) no longer throw a MultipleFound Exception if the specified text for the button-label matches more than one submit button.
  • Instead, the first matching submit button is used.

New in Jaunt 0.9.9.4 Beta (Dec 18, 2014)

  • Fixed bug where content-type application/xml was not recognized.
  • Changes to the API listed below:
  • added to UserAgent:
  • getVersionInfo()
  • removed from UserAgent
  • setMaxContentSize(int maxBytes) //moved to UserAgentSettings.maxBytes
  • getMaxContentSize() //moved to UserAgentSettings.maxBytes
  • getDocument() //use doc property instead
  • added to UserAgentSettings:
  • connectTimeout
  • readTimeout
  • maxBytes
  • added to Document:
  • nextPageLink(Element)
  • nextPageLink()
  • nextPageLinkExists()
  • nextPageLinkExists(Element)
  • removed from Node:
  • ATTRIBUTE_TYPE
  • added to Element:
  • hasChild(String)
  • has(String)

New in Jaunt 0.9.9.3 Beta (Dec 18, 2014)

  • Changes to the API listed below:
  • removed class NodeNotFound (replace with NotFound)
  • removed class HeaderListener
  • removed from UserAgent:
  • addHeaderListener(HeaderListener)
  • removeHeaderListener(HeaderListener)

New in Jaunt 0.9.9.2 Beta (Oct 9, 2014)

  • CHANGES:
  • added HTML caching default implementation (FileSystemCache), see example #19.
  • fixed bug in all search methods where queries that contained multiple attributes could result in wrong search results.
  • fixed bug where cookieJar size could grow indefinitely.
  • changes to the API listed below:
  • Added to UserAgent: setCacheEnabled(boolean) --> formerly enableCache()/disableCache()
  • Added to package com.jaunt.util: FileSystemCache
  • Removed from Cache clear()
  • Added to MultiMap
  • MultiMap(initialCapacity, upperCapacity)
  • Changed in CacheException now extends JauntException

New in Jaunt 0.9.9 Beta (Sep 18, 2014)

  • New feature: save compete webpage (including css, js, images, framesets, etc)
  • New feature: http proxy authentication, see advanced example #8
  • New feature: https proxy support (SSL tunneling), see advanced example #9
  • Bug fixed where downloading content-type:text/plain caused NullPointerException
  • Bug fixed where downloading GZIP-encoded content did not decompress.
  • Bug fixed where downloading content incorrectly altered referer header.
  • Changes to the API listed below:
  • Added to Document:
  • saveCompleteWebPage(File)
  • getUrl() //formerly getRequestUrl()
  • choose(String, String) //formerly select(String, String)
  • Removed from Document:
  • getUserAgent()
  • getFormByName(String nameRegex) //instead use getForm("");
  • Added to Form:
  • Form(Element, List, Document, UserAgent) //changed constructor arguments
  • choose(String, String) //formerly select(String, String)
  • Added to package varsitech.util:
  • ProxyAuthenticator
  • Added to Meta:
  • Meta(Element) //change in constructor arguments
  • follow(UserAgent, int) //change in arguments
  • Added to IOUtil:
  • deleteFolder(File)

New in Jaunt 0.9.8.1 Beta (Sep 1, 2014)

  • CHANGES:
  • faster parsing
  • simplified UserAgentSettings and FilterCallback
  • fixed bug in class Element that caused innerXML(), outerXML(), innerHTML(), and outerHTML() to print tagnames in lowercase rather than original case.
  • changes to the API listed below:
  • Added to Document:
  • getMetas()
  • getRedirectingMeta()
  • getForms()
  • getForms(int)
  • Removed from Document:
  • forms property
  • metas property
  • buildForms() //now executed implicitly
  • Added to Element:
  • getNameOC() //returns tagname in original case
  • Removed from Element:
  • setAttribute(String, String, int)
  • size() //use getChildElements.size()
  • hasTextAdjacent(String, short)
  • Added to Elements:
  • size()
  • Removed from HttpResponse:
  • HttpResponse(String requestUrlData)
  • Added to FilterCallback: (replacing all previous signatures)
  • childElementAllowed(Element, Element);
  • childCommentAllowed(Element, Comment);
  • childTextAllowed(Element, Text text);
  • Added to UserAgentSettings:
  • genericXmlMode //false by default
  • Removed from UserAgent:
  • parse(String) //instead use UserAgent.openContent(String) or Element(String)
  • Chaanged in UserAgentSettings:
  • defaultRequestHeaders Map now restricted to generic type
  • in defaultRequestHeaders, value for "accept header" changed to "*/*"
  • Removed from UserAgentSettings:
  • ignoreDefaultDTD //replaced with genericXmlMode
  • autoCreateMetas property //now implicitly true
  • autoCreateForms property //now implicitly true
  • autofixforms //now implicity true
  • executeNoScript //now implicity true
  • Added to Node:
  • delete() //moved from Element.delete

New in Jaunt 0.9.8 Beta (Aug 19, 2014)

  • CHANGES:
  • powereful new methods of filling out forms (document.apply, form.apply)
  • method for rebuilding form object after adding/removing fields at the DOM level (form.rebuild).
  • methods for traversing nodes sequentially (node.nextNode, node.previousNode, node.previousSibling)
  • constructor from building Element object directly from String markup.
  • bugfix for faulty exception when filling out forms with adjacent, unlabelled fields.
  • various clarifications made to javadocs.
  • CHANGES:
  • Added to Element:
  • Element(String)
  • outerHTML(int index)
  • Element.innerText(String, Node, Node, boolean, boolean, boolean, boolean){
  • Added to package com.jaunt.util:
  • Filter (moved from com.jaunt)
  • FilterCallback (moved from com.jaunt)
  • HeadListener (moved from com.jaunt)
  • Added to Document:
  • apply(Object ... params)
  • Removed from Document:
  • headersToString() (use getHeaders().toString())
  • Added to Form:
  • isEditable()
  • Added to Label:
  • Label.INNER (replaces Label.INSIDE)
  • Added to Node:
  • nextNode()
  • previousNode()
  • previousSiblingNode()

New in Jaunt 0.9.7.2 Beta (Jul 31, 2014)

  • CHANGES:
  • fixed exception occuring for unrecognized/invalid cookie fields
  • fixed exception occuring in some cases for unrecognized SSL certificates.
  • auotsaving feature now saves to "lastPageVisited.html" rather than "index.html"

New in Jaunt 0.9.7.1 Beta (Jul 11, 2014)

  • This release contains the following enhancements:
  • support for custom content handlers.
  • UserAgent.download(String, File) now supports downloading any content-type.
  • disabled form fields no longer contribute name-value pairs when the form is submitted.

New in Jaunt 0.9.7 Beta (Jun 30, 2014)

  • Contains the following enhancements:
  • support for custom content handlers.
  • UserAgent.download(String, File) now supports downloading any content-type.
  • CHANGES TO THE API:
  • Added to UserAgent:
  • setHandler(String, Handler)
  • getHandler(String)
  • Added to package com.jaunt.util:
  • Handler
  • HandlerForText
  • HandlerForBinary