Font Size: a A A

Research And Application Of Restful Web Service Based On Android Platform

Posted on:2011-12-08Degree:MasterType:Thesis
Country:ChinaCandidate:J C HuangFull Text:PDF
GTID:2178360305461052Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Using handheld devices for mobile network application has become a trend. However,affected by the limit of processing power and network bandwidth, it is diffcult for handheld devices to carry out Large-scale data storage and software application.By calling RESTful services to meet the query and operatation of massive data may be a better way.As a new generation operating system of handheld devices,compared with the traditional handheld device operating systems,features of Android are open-source,easy to use and convenience.Combining with the current research of RESTful Web service and Android platform,this thesis will research on identity authentication,parse of XML document,how to call RESTful web service and how to maintain application state on the Android platform. On this basis,the thesis will also discuss how to design and implement a campus information release system.The discussion of the systems is divided into two parts:the server and the client's design and their implementation.The design of RESTful services is based on the resource-oriented architecture.There are four steps in the process of server design:data set planning,resource division,URI design and representation of resources.CRUD operations on the resources corresponding to HTTP's POST,GET,PUT,DELETE methods.For security consideration,there exsits limitations to operations. Some operations on the resource only be open for specific types of users.The state of resource within a certain time is represented by resource representation. The format of the resource representation is XML which has more advantages in openness and commonality. The client is designed with reference to MVC architecture pattern,view,controller and model layer are separated from each other. According to present the Activity diagram of the system,the system function is implemented by calling RESTful web service reasonably.Implementation of RESTful web service based on Restlet framework,the URI template is set to match the corresponding resource object.The transactional approach is used in the call of database to ensure data consistency. Taking into account users'requests impact on the system performance,Connection Pool technology is used in the underlying database. In the client's implementation, according to the characteristics of Android platform, user manager,school bulletin,release and query of student information,home-visit route planning functions are achieved with dynamic UI.In the aspect of students check-in application, a kind of touch mode is proposed,it make the cost of deploying the system greatly reduced.This thesis make a discussion on how to use RESTful web service on Android platform, the result of the research can provide a reference for the current education campus management.
Keywords/Search Tags:REST, Andorid, mobile application
PDF Full Text Request
Related items