Package | Description |
---|---|
ej.rest.web | |
ej.rest.web.mime |
Modifier and Type | Class and Description |
---|---|
class |
ChunkedContent
Represents a chunked, streaming content.
|
class |
Content
Class to encapsulate content being sent as payload of a POST or PUT request.
|
class |
Deletion
Used for deleting contents on a server with the DELETE method.
|
class |
FormContent
Encapsulates form-data sent to web services.
|
class |
FormData
Wrapper for content to be sent as form-data.
|
class |
Replacement
Used in PUT operations.
|
Modifier and Type | Method and Description |
---|---|
static AbstractContent |
Resty.delete()
Tell Resty to delete the URL content on the server, resulting in a
DELETE.
|
static AbstractContent |
Resty.put(Content someContent)
Tell Resty to replace the specified content on the server, resulting in a
PUT operation instead of a POST operation.
|
Modifier and Type | Method and Description |
---|---|
BinaryResource |
Resty.bytes(java.lang.String anUri,
AbstractContent someContent)
POST to the URI and get the resource as binary resource.
|
BinaryResource |
Resty.bytes(java.net.URI anUri,
AbstractContent someContent)
POST to the URI and get the resource as binary resource.
|
static FormData |
Resty.data(java.lang.String name,
AbstractContent content)
Create a form data entry for a multipart form with any kind of content
type.
|
protected <T extends AbstractResource> |
Resty.doPOSTOrPUT(java.net.URI anUri,
AbstractContent requestContent,
T resource) |
JSONResource |
Resty.json(java.lang.String anUri,
AbstractContent content) |
JSONResource |
Resty.json(java.net.URI anUri,
AbstractContent requestContent)
POST to a URI and parse the result as JSON
|
TextResource |
Resty.text(java.lang.String anUri,
AbstractContent content)
Get a plain text resource for the specified URI by POSTing to it.
|
TextResource |
Resty.text(java.net.URI anUri,
AbstractContent content)
Get a plain text resource for the specified URI by POSTing to it.
|
Constructor and Description |
---|
FormData(java.lang.String aControlName,
AbstractContent content) |
FormData(java.lang.String aControlName,
java.lang.String aFileName,
AbstractContent content) |
Modifier and Type | Class and Description |
---|---|
class |
MultipartContent
Content handler for multipart data of any shape (form, mixed, alternative)
|
Constructor and Description |
---|
MultipartContent(java.lang.String aSubtype,
AbstractContent... content) |