|
||||||||||
| 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.AbstractResource
us.monoid.web.BinaryResource
public class BinaryResource
All-purpose resource which is used to access application/octet-stream content or any content in that respect. I.e. it will match all types, so you can also download raw JSON or images or whatever media type you envision.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class us.monoid.web.Resty |
|---|
Resty.Option, Resty.Proxy, Resty.Timeout |
| Constructor Summary | |
|---|---|
BinaryResource(Resty.Option... options)
|
|
| Method Summary | |
|---|---|
File |
save(File aFileName)
Save the contents of the resource to a file. |
| Methods inherited from class us.monoid.web.AbstractResource |
|---|
getUrlConnection, http, location, status, stream |
| Methods inherited from class us.monoid.web.Resty |
|---|
alwaysSend, authenticate, authenticate, authenticateForRealm, bytes, bytes, bytes, bytes, content, content, content, data, data, delete, dontSend, enc, form, form, identifyAsMozilla, identifyAsResty, ignoreAllCerts, json, json, json, json, path, put, setOptions, setProxy, text, text, text, text, withHeader, xml, xml, xml, xml, xpath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryResource(Resty.Option... options)
| Method Detail |
|---|
public File save(File aFileName)
throws IOException
aFileName - file to save the data in
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||