End-to-end paths for web services - RESTful services
You can use Java™ API for RESTful Web Services (JAX-RS) to develop services that follow Representational State Transfer (REST) principles. RESTful services are based on manipulating resources. Resources can contain static or dynamically updated data. By identifying the resources in your application, you can make the service more useful and easier to develop.
하위 주제
JAX-RS 웹 애플리케이션 구현
JAX-RS(Java™ API for RESTful Web Services)를 사용하여 REST(Representational State Transfer) 원칙을 준수하는 서비스를 개발할 수 있습니다. JAX-RS를 사용하면 RESTful 서비스 개발이 단순해집니다.JAX-RS 애플리케이션 요청 및 응답에서 XML 컨텐츠 사용
XML은 RESTful 서비스가 이용하고 작성하는 공통 매체 형식입니다. XML을 직렬화 해제하고 직렬화하려면 JAXB(Java Architecture for XML Binding) 어노테이션 지정 오브젝트의 요청 및 응답을 표시할 수 있습니다.JAX-RS 애플리케이션 요청 및 응답에서 JSON 컨텐츠 사용
JSON(JavaScript Object Notation)은 RESTful 서비스가 이용하고 작성하는 공통 매체 형식입니다. JavaScript의 오브젝트 리터럴 표기법에 기반하여 데이터를 교환하는 이 경량 데이터 교환 형식을 사용할 수 있습니다.JAX-RS 애플리케이션 요청 및 응답에서 Atom 컨텐츠 사용
Atom(Atom Syndication Format)을 사용하면 웹 사이트에 대한 사전 관련 정보의 뉴스 및 업데이트를 전달하는 웹 피드를 형식화할 수 있습니다. JAX-RS 애플리케이션의 Atom 컨텐츠를 사용하면 RSS에서 지원하는 새 메타데이터 및 컨텐츠 추가에 대한 동일한 분산 동적 메커니즘을 제공하지만 구현들 간 코어 상호 운용성을 보호하는 방식을 채택하는 웹 컨텐츠 신디케이션을 활용할 수 있습니다.사용자 정의 엔티티 형식 사용
JAX-RS(Java API for RESTful Web Services) 런타임 환경이 Java 유형과의 직렬화 및 직렬화 해제를 처리하는 여러 엔티티 제공자를 포함해도 가능한 모든 미디어 유형을 지원하지 않습니다. 메시지 본문에 Java 유형의 바인드를 처리하기 위해 사용자 정의 엔티티 제공자를 개발할 수 있습니다.JAX-RS 애플리케이션에서 다중 컨텐츠 유형을 지원하도록 컨텐츠 조정 사용
RESTful 애플리케이션의 장점 중 하나는, 자원의 서로 다른 표시를 리턴하는 기능입니다. REST(With Representational State Transfer)에서 클라이언트 및 서버는 동일한 미디어 유형의 자원을 교환하거나 다른 미디어 유형을 사용할 수 있습니다. 컨텐츠 조정을 사용하면 클라이언트 및 서버가 데이터 교환에 사용되는 컨텐츠 형식에 동의할 수 있습니다.Using JAX-RS context objects to obtain more information about requests
Java API for RESTful Web Services (JAX-RS) provides different types of context to resource classes and providers. You can use context objects to access request information such as discovering the HTTP headers that are sent as part of the request. Context objects also provide convenience methods for evaluating a request and building an appropriate response.Implementing RESTful views of EJB applications using JAX-RS
If you have enterprise JavaBeans (EJB) applications, you can expose a RESTful interface to the enterprise bean using Java API for RESTful Web Services (JAX-RS). By implementing JAX-RS annotated enterprise beans, you keep the EJB functionality including transaction support, injection of Java EE components and resources, and other EJB session bean capabilities.Using Java contexts and dependency injection with JAX-RS
Java API for RESTful Web Services (JAX-RS) root resources and providers can be used in a Java Contexts and Dependency Injection (JCDI) enabled web archive (WAR). Simply add a valid WEB-INF/beans.xml file to your WAR file and any JAX-RS root resources and providers that are valid JCDI beans can use JCDI functionality.Using handlers to enhance request and response processing
You can implement handlers on the server-side of a Java API for RESTful Web Services (JAX-RS) application to enhance request and response processing.Using multipart content in JAX-RS application requests and responses
Using multipart messages, servers and clients can transmit multiple messages using a single message. Multipart messages are useful when both the client and server need to send multiple requests but want to save the cost of sending and receiving entire HTTP request and responses for each part.Using multipart/form-data content in JAX-RS application requests and responses
A frequently used content type for submitting files through an HTML form is multipart/form-data. The IBM® implementation of Java API for RESTful Web Services (JAX-RS) greatly simplifies the processing of such data by automatically splitting the parts and automatically decoding them. If such automatic processing is not desired, the resource may instead receive the parts in an object so processing of the parts is under the complete control of the resource method.Implementing secure JAX-RS applications
The IBM runtime environment for Java API for RESTful Web Services (JAX-RS) is driven by a servlet derived from the Apache Wink project. Within the WebSphere® Application Server environment, the lifecycle of servlets is managed in the web container. Therefore, the security services offered by the web container are applicable to REST resources that are deployed in WebSphere Application Server.Using WADL to generate service documentation
Web Application Description Language (WADL) is a description language for HTTP-based applications. It is currently a World Wide Web Consortium (W3C) Member Submission. WADL can be used by programs to give information about the service in a machine-processable method. For instance, you can use an Extensible Stylesheet Transformation (XSLT) document to transform the WADL documentation by using a custom XSLT and a XSLT processor.서버 애플리케이션 내부에서 Apache Wink REST 클라이언트를 사용하여 요청 발행
JAX-RS 애플리케이션에 요청을 전송하기 위해 실행할 수 있는 클라이언트로 Apache Wink REST 클라이언트를 사용할 수 있습니다.독립형 씬 클라이언트로 Apache Wink REST 클라이언트 사용
서버 애플리케이션 내에서 Apache Wink REST 클라이언트를 사용하는 대신 WebSphere Application Server가 제공하는 JAX-RS용 씬 클라이언트를 독립형 씬 클라이언트로 사용하여 RESTful 서비스에 요청을 전송할 수 있습니다. JAX-RS용 씬 클라이언트는 비WebSphere 환경에서 비관리 JAX-RS RESTful 웹 서비스 클라이언트 애플리케이션을 실행하여 애플리케이션 서버가 호스팅하는 JAX-RS RESTful 웹 서비스를 호출할 수 있도록 하는 독립형 Java SE 6 클라이언트 환경입니다.Using JAX-RS 2.0 client as a stand-alone thin client
Instead of using the CXF REST client inside a server application, you can use the Thin Client for JAX-RS that is provided with WebSphere® Application Server as a stand-alone thin client to send requests to your RESTful service. The Thin Client for JAX-RS is a stand-alone Java SE 8 client environment that enables running unmanaged JAX-RS RESTful web services client applications in a non-WebSphere environment to call JAX-RS RESTful web services that are hosted by the application server.
Related information:


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=welc6tech_wbs_rest_thr
파일 이름:welc6tech_wbs_rest_thr.html