forked from beders/Resty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for authentication realms if the underlying connection URL is…
… not delivering requestingURL to the Authenticator class (fix for issue beders#7)
- Loading branch information
Showing
4 changed files
with
97 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Changes | ||
------- | ||
|
||
In Development: | ||
|
||
- support for security realms (Resty.authenticateForRealm()) in case the regular authentication is not working because java is not able to determine the URL | ||
|
||
|
||
Since 0.3.0: | ||
|
||
- Option to ignore SSL certificate errors: Resty.ignoreAllCerts (global switch for now) | ||
- New constructor to specify options: new Resty(Option.timeout(3000)); (sets the socket connect timeout) | ||
- Create your own Options (see Resty.Option.Timeout or Resty.Option.Proxy for example) | ||
- Fixed scala naming issue | ||
- enhanced syntax for JSON queries | ||
- bugfixes from my contributors. Thank you! | ||
- Proxy support. Thank you, Gabriel. r.setProxy(...) for object r or new Resty(Option.proxy(...)) to carry proxy settings over when traversing paths | ||
- convenient location header: new Resty().bytes(url, put(someContent)).location(); // gets Location header as URI | ||
|
||
Since 0.2.0: | ||
|
||
- Support for PUT, DELETE, Support for application/multipart-formdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package example; | ||
|
||
import us.monoid.web.Resty; | ||
|
||
|
||
public class BartStations { | ||
|
||
/** | ||
* @param args | ||
* @throws Exception | ||
* @throws | ||
*/ | ||
public static void main(String[] args) throws Exception { | ||
Resty r = new Resty(); | ||
String result = r.xml("https://bart.gov/dev/eta/bart_eta.xml").get("/root/station/eta/estimate[../../name/text()='Powell St.' and ../destination/text()='SF Airport']", String.class); | ||
System.out.println("Next train to SFO from Powell St.:" + result); | ||
} | ||
|
||
} |