ibm software group ® process sequence to call processadminservice from browser thomas

9
IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

Upload: blaise-price

Post on 13-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group

®

Process Sequence to call ProcessAdminService from browser

Thomas

Page 2: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

2

Service types provided by Jazz

ITeamRestService(AbstractTeamServerServlet#doRestService) RAW_HTTP

AbstractService RPC

ITeamModelledRestService(AbstractTeamServerServlet#doModelledRestService) Modelled_REST

Plain Servlet to process requests

Page 3: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

3

Call sequence to request process/project-areas

Page 4: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

4

TeamServerServlet Process all the requests filed from browser

alias="/“

e.g, https://localhost:9443/jazz/...

extend <org.eclipse.equinox.http.registry.servlets> plugin-point in the com.ibm.team.repository.servlet plugin

Dispatch the request to the corresponding REST service based on the URI extend <com.ibm.team.process.common.components> extension point in

com.ibm.team.process.common plugin(process component)

Page 5: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

5

Mapping between URI and REST Service

ProcessAdminService uriAlias

• defind in com.ibm.team.process.common plugin

• used in <com.ibm.team.repository.service.serviceProvider>extention point to map to the real REST service(extend in <com.ibm.team.process.service>plugin)

Page 6: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

6

Resource Object

REST Service forward request to the correponding Resource Object based on the URI

Resource Object construct the Representation Object,and then serialize this object into XML format,write xml data into HTTP Response object(through OutputStream),and the user get the requested data

Page 7: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

7

Resource Object VS ResourceRepresentation Object

Resource object doesn’t hold the resource data itself.Instead,it contains the methods to CRUD the resource with http request,e.g,get,post,delete,head,put.So,Resource object is more like a Resource handler.

ResourceRepresentation Object represents an resource object,it contains the resource data, with the Annotation grammar(Represenation,Namespace,ElementList,Element,Attribute,Text)

Page 8: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

8

Serialize ResourceRepresentation to XML

Resource writeXmlResponse

ResourceRepresentation serializeDocument

toXmlString

toXmlDocument

toXmlElement

Page 9: IBM Software Group ® Process Sequence to call ProcessAdminService from browser Thomas

IBM Software Group | Rational software

9

© Copyright IBM Corporation 2009. All rights reserved. The information contained in these materials is provided for informational purposes only, and is provided AS IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software. References in these materials to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in these materials may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. IBM, the IBM logo, Rational, the Rational logo, Telelogic, the Telelogic logo, and other IBM products and services are trademarks of the International Business Machines Corporation, in the United States, other countries or both. Other company, product, or service names may be trademarks or service marks of others.