Jersey API yog dab tsi?
Jersey API yog dab tsi?

Video: Jersey API yog dab tsi?

Video: Jersey API yog dab tsi?
Video: Yog ntuj tsis pab ntshe kuv tuag lawm 8/6/2018 2024, Kaum ib hlis
Anonim

Jersey RESTful Web Services lub moj khaum yog qhib qhov chaw, kev tsim khoom zoo, lub hauv paus rau kev tsim RESTful Web Services hauv Java uas muab kev txhawb nqa rau JAX-RS APIs thiab ua haujlwm raws li JAX-RS (JSR 311 & JSR 339) Kev Siv Ua Haujlwm.

Ib yam li ntawd ib tug yuav nug, dab tsi yog siv lub tsho?

RESTful kev pab cuam txhim kho (on Jersey ) yog ib tug architecture, uas inherently siv servlets. JAX-RS raws li cov cuab yeej zoo li Jersey muab kev yooj yim marshalling-unmarshalling ntawm XML / JSON cov ntaub ntawv, pab cov neeg tsim khoom. REST pab peb siv Tau txais / POST / PUT / DELETE nyob rau hauv ib tug zam uas yog deb npaum li cas servlets.

Tsis tas li ntawd, dab tsi yog lub tsho tus neeg siv khoom? Jersey 1.0 yog qhov qhib-qhov, tsim-npaj siv siv. Kev siv ntawm JAX-RS, Java API rau RESTful. Web Services (JSR-311). Jersey ua kom yooj yim los tsim RESTful web kev pabcuam siv Java technology.

Ib yam li ntawd, koj tuaj yeem nug, Jersey programming yog dab tsi?

Jersey RESTful Web Services, yav tas los Glassfish Jersey , tam sim no dab noj hnub Jersey lub moj khaum yog qhov qhib lub hauv paus rau kev tsim RESTful Web Services hauv Java. Nws muab kev txhawb nqa rau JAX-RS APIs thiab ua haujlwm raws li JAX-RS (JSR 311 & JSR 339 & JSR 370) Kev Siv Ua Haujlwm.

Qhov txawv ntawm Jersey thiab RESTEasy yog dab tsi?

Ob leeg Jersey thiab RESTEasy muab lawv tus kheej siv. Cov txawv yog tias Jersey tseem muab qee yam hu ua Chunked Output. Nws tso cai rau tus neeg rau zaub mov xa rov qab mus rau tus neeg siv khoom teb hauv ntu (chunks).

Pom zoo: