Skip to main content

Building RESTful Web Services

  • Chapter
Introducing Java EE 7

Abstract

The Java EE 6 platform introduced the Java API for RESTful Web Services (JAX-RS), enabling developers to easily develop powerful web services. RESTful web services are those that support the Representational State Transfer (REST) architectural style, which is an architecture for producing web services that focus on a system’s resources, specifically on how states are transferred over HTTP. JAX-RS web services are stateless, and they utilize HTTP methods explicitly by mapping methods of web service classes to HTTP protocols (GET, POST, PUT, DELETE) via annotations. A RESTful web service provides custom URIs for access to web service resources, allowing web service methods to be invoked and passing zero or more parameters via a simple URI call from a web service client. RESTful web services can send responses that are in XML, JavaScript Object Notation (JSON), or other formats. The JAX-RS stack provides an annotation-rich architecture for designing web services, which makes it much easier for developers to produce powerful web services without XML configuration.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 29.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Josh Juneau

About this chapter

Cite this chapter

Juneau, J. (2013). Building RESTful Web Services. In: Introducing Java EE 7. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5849-0_8

Download citation

Publish with us

Policies and ethics