|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectus.monoid.web.Resty
us.monoid.web.RobustResty
public class RobustResty
Like Resty, but won't throw IOException on http errors Check responseCode with http().getResponseCode() on resulting resources
| Field Summary |
|---|
| Fields inherited from class us.monoid.web.Resty |
|---|
DEFAULT_USER_AGENT, MOZILLA, userAgent |
| Constructor Summary | |
|---|---|
RobustResty()
|
|
| Method Summary | |
|---|---|
static us.monoid.web.FormContent |
form(java.util.Map data)
Create form content as application/x-www-form-urlencoded (i.e. |
RobustTextResource |
text(java.net.URI anUri)
|
RobustTextResource |
text(java.net.URI anUri,
us.monoid.web.AbstractContent content)
|
RobustXMLResource |
xml(java.net.URI anUri)
|
RobustXMLResource |
xml(java.net.URI anUri,
us.monoid.web.AbstractContent requestContent)
|
| Methods inherited from class us.monoid.web.Resty |
|---|
addStandardHeaders, authenticate, authenticate, bytes, bytes, bytes, bytes, content, content, content, data, data, delete, doGET, doPOSTOrPUT, enc, fillResourceFromURL, form, form, identifyAsMozilla, identifyAsResty, json, json, json, json, openConnection, path, put, text, text, xml, xml, xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobustResty()
| Method Detail |
|---|
public RobustTextResource text(java.net.URI anUri)
throws java.io.IOException
text in class us.monoid.web.Restyjava.io.IOException
public RobustTextResource text(java.net.URI anUri,
us.monoid.web.AbstractContent content)
throws java.io.IOException
text in class us.monoid.web.Restyjava.io.IOException
public RobustXMLResource xml(java.net.URI anUri)
throws java.io.IOException
xml in class us.monoid.web.Restyjava.io.IOException
public RobustXMLResource xml(java.net.URI anUri,
us.monoid.web.AbstractContent requestContent)
throws java.io.IOException
xml in class us.monoid.web.Restyjava.io.IOExceptionpublic static us.monoid.web.FormContent form(java.util.Map data)
data, - name value pairs of data (Strings)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||