Package com.buglabs.util.simplerestclient

Interface Summary
IConnectionProvider implement to provide an HttpURLConnection w/ some properties pre-set see BasicAuthenticationConnectionProvider for an example This is passed into HttpRequest on creation to provide it w/ the connection
IFormFile interface to encapsulate a file to be POSTed to a restful web service use in conjunction with HttpRequest.postMultipart();
 

Class Summary
BasicAuthenticationConnectionProvider A connection provider to use HTTP Basic Authentication Create this and pass it into the HTTPRequest construction when creating it to use basic authenticatioin: HettpRequest req = HTTPRequest(new BasicAuthenticationConnectionProvider("foo", "bar"));
DefaultConnectionProvider default connection provider used by HTTPRequest if none is provided
FormFile default implementation of IFormFile
HTTPRequest class for dealing RESTfully with HTTP Requests Example Usage: HttpRequest req = new HttpRequest(myConnectionProvider) HttpResponse resp = req.get("http://some.url") System.out.println(resp.getString());
HTTPResponse Class for wrapping the response connection.
 

Exception Summary
HTTPException A special kind of IOException that contains an HTTP Error Code For a list of codes see HTTPResponse