The REST BC supports a subset of HTTP methods to manipulate the requests and responses processed by GlassFish ESB. Certain HTTP methods, such as GET and HEAD, do not make any changes to the resource or to the message and are thus considered to be “safe”. Other method are idempotent, which means that the results of multiple identical request are the same as for a single request. All supported methods except POST fall under this category.
The following subset of HTTP methods are supported for the REST BC:
GET
The GET method retrieves specific information from the server as identified by the request URI.
PUT
The PUT method requests that the message body sent with the request be stored under the location provided in the HTTP message.
DELETE
The DELETE method deletes the specified resources.
POST
The POST method modifies data on the server from which a request was sent.
HEAD
The HEAD method is similar to the GET method except the message body is not returned in the response. The response only includes metainformation, such as a response code or corresponding headers.