img
Table 16-3. Representations for Manipulating Resources
Representation
Description
GET
GET retrieves a representation of a resource.
HEAD
Identical to GET, without response body. Typically used for getting a header.
POST
POST creates a new resource.
PUT
PUT updates a resource.
DELETE
DELETE deletes a resource.
OPTIONS
OPTIONS retrieves allowed HTTP methods.
For a detail description of RESTful web services, we recommend the book Ajax and REST Recipes, A
Problem-Solution Approach (Apress, 2006).
Adding Required Dependencies for Samples
To develop the samples in this section, a number of dependencies are required, as listed in Table 16-4.
Add them into your project.
Table 16-4. Maven Dependencies for RESTful Web Services
Group ID
Artifact ID
Version
Description
org.springframework
spring-oxm
3.1.0.RELEASE Spring object-to-XML mapping
module.
org.codehaus.jackson
jackson-mapper-lgpl
1.9.2
Jackson JSON processor to
support data in JSON format.
org.codehaus.castor
castor-xml
1.3.2
The Castor XML library will be
used for marshaling and
unmarshaling of XML data.
org.springframework.security spring-security-core 3.1.0.RELEASE Spring Security core module.
org.springframework.security spring-security-web
3.1.0.RELEASE Spring Security web module
for securing RESTful-WS.
org.springframework.security
spring-security-config 3.1.0.RELEASE Spring Security configuration
module.
org.apache.httpcomponents
httpclient
4.1.2
Apache HTTP Components
project. The HTTP client
library will be used for
RESTful-WS invocation.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home