Package ej.rest.web
Class BinaryResource
- java.lang.Object
-
- ej.rest.web.Resty
-
- ej.rest.web.AbstractResource
-
- ej.rest.web.BinaryResource
-
public class BinaryResource extends AbstractResource
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 ej.rest.web.Resty
Resty.Option, Resty.Timeout
-
-
Field Summary
-
Fields inherited from class ej.rest.web.AbstractResource
inputStream, urlConnection
-
Fields inherited from class ej.rest.web.Resty
DEFAULT_USER_AGENT, MOZILLA, userAgent
-
-
Constructor Summary
Constructors Constructor Description BinaryResource(Resty.Option... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAcceptedTypes()-
Methods inherited from class ej.rest.web.AbstractResource
getUrlConnection, http, location, printResponseHeaders, status, stream
-
Methods inherited from class ej.rest.web.Resty
addAdditionalHeaders, addStandardHeaders, bytes, bytes, bytes, bytes, chunked, chunked, content, content, content, content, createBinaryResource, createJSONResource, createTextResource, data, data, delete, doGET, dontSend, doPOSTOrPUT, fillResourceFromURL, form, form, getAdditionalHeaders, identifyAsMozilla, identifyAsResty, json, json, json, json, openConnection, path, put, setOptions, text, text, text, text, withHeader
-
-
-
-
Constructor Detail
-
BinaryResource
public BinaryResource(Resty.Option... options)
-
-
Method Detail
-
getAcceptedTypes
public String getAcceptedTypes()
- Specified by:
getAcceptedTypesin classAbstractResource
-
-