Class RobustResty
java.lang.Object
net.jalbum.resty.web.Resty
net.jalbum.resty.web.RobustResty
public class RobustResty
extends net.jalbum.resty.web.Resty
Like Resty, but won't throw IOException on http errors
Check responseCode with http().getResponseCode() on resulting resources
-
Nested Class Summary
Nested classes/interfaces inherited from class net.jalbum.resty.web.Resty
net.jalbum.resty.web.Resty.Option, net.jalbum.resty.web.Resty.Proxy, net.jalbum.resty.web.Resty.Timeout -
Field Summary
Fields inherited from class net.jalbum.resty.web.Resty
DEFAULT_USER_AGENT, MOZILLA, userAgent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.jalbum.resty.web.FormContentCreate form content as application/x-www-form-urlencoded (i.e.Methods inherited from class net.jalbum.resty.web.Resty
addAdditionalHeaders, addStandardHeaders, alwaysSend, authenticate, authenticate, authenticateForRealm, bytes, bytes, bytes, bytes, content, content, createBinaryResource, createTextResource, createXMLResource, data, data, delete, doGET, dontSend, doPOSTOrPUT, enc, fillResourceFromURL, form, form, getAdditionalHeaders, identifyAsMozilla, identifyAsResty, ignoreAllCerts, openConnection, put, setOptions, setProxy, text, text, xml, xml, xpath
-
Constructor Details
-
RobustResty
public RobustResty()
-
-
Method Details
-
text
- Overrides:
textin classnet.jalbum.resty.web.Resty- Throws:
IOException
-
text
public RobustTextResource text(URI anUri, net.jalbum.resty.web.AbstractContent content) throws IOException - Overrides:
textin classnet.jalbum.resty.web.Resty- Throws:
IOException
-
xml
- Overrides:
xmlin classnet.jalbum.resty.web.Resty- Throws:
IOException
-
xml
public RobustXMLResource xml(URI anUri, net.jalbum.resty.web.AbstractContent requestContent) throws IOException - Overrides:
xmlin classnet.jalbum.resty.web.Resty- Throws:
IOException
-
form
Create form content as application/x-www-form-urlencoded (i.e. a=b&c=d&...)- Parameters:
data- , name value pairs of data (Strings)- Returns:
- a content object to be usable for upload
-