书架 | 搜小说

邪修魔法师 在线免费阅读 愤怒的影子 第一时间更新 rest

时间:2018-02-22 01:08 /西方奇幻 / 编辑:雨辰
主角是rest的书名叫《邪修魔法师》,这本小说的作者是愤怒的影子最新写的一本西方奇幻、奇幻小说,文中的爱情故事凄美而纯洁,文笔极佳,实力推荐。小说精彩段落试读:thearchitectureneedstohandleasynchronousprocessingandinvocation.insuchcases,thei...

邪修魔法师

推荐指数:10分

阅读指数:10分

作品归属:女频

《邪修魔法师》在线阅读

《邪修魔法师》精彩预览

thearchitectureneedstohandleasynchronousprocessingandinvocation.insuchcases,theinfrastructureprovidedbystandardssuchaswsrmandapissuchasjax-wswiththeirclient-sideasynchronousinvocationsupportcanbeleveragedoutofthebox.

restfulsupportinjax-ws

thejavaapiforxmlwebservices(jax-ws)providesfullsupportforbuildinganddeployingrestfulwebservices.theapiwasdevelopedthroughthejavacommunityprocessprogramasjsr224.itistightlyintegratedwiththejavaarchitectureforxmlbinding(jaxb)forbindingxmltojavatechnologydataandisincludedinboththejavaplatform,standardedition(javase)6andthejavaplatform,enterpriseedition(javaee)5.

buildingrestfulservices

theexampleusedinthissectionbuildsonthepurchaseorderservicedescribedinthejavaeeblueprintscatalogasthe"patternsanddesign"whitepapers(parts1,2,and3).theoriginalendpointcontainedonlyonemethod--acceptpo--thatacceptedapurchaseorderandreturnedapurchaseorderstatus,bothofwhichweredefinedbyindividualschemas.

table2ssomemorecrudoperationstoaddtothisservice.

table2:additionalcrudoperations

descriptionjavatechnologymethodsignature

aneworderpublicpurchaseorderstatusacceptpo(purchaseorderorder)

retrieveanexistingorderpublicpurchaseorderretrievepo(stringorderid)

modifyanexistingorderpublicpurchaseorderpo(purchaseorderorder)

cancelanorderalreadysubmittedpublicvoidcancelpo(stringorderid)

jax-wsenablesbuildingrestfulendpointsthroughajavax.xml.ws.providerinterfaceintheapi.providerisagenericinterfacethatcanbeimplementedbyaclassasadynamicnativetoaserviceendpointinterface(sei),andaserviceimplementingthisinterfacecanbedeployedinajavaeecontainerorpublishedinastand-alonemodethroughthejax-wsendpointapi.theproviderinterfacecontainsasinglemethodwiththefollowingsignature:

tinvoke(trequest)

providerisalow-levelgenericapi,butusingitrequirestheendpointtohaveanintimateknowledgeofthedesiredmessageorpayloadstructurebeingpassedtotheservice.dependingonhowtheproviderisimplemented,thesupportedtypesfortandtheirusesarethefollowing:

☆、第五十四章消除危机

insoftwareengineering,thetermsoftwarearchitecturalstylegenerallyrefersto"asetofdesignrulesthatidentifythekindsofcomponentsandconnectorsthatmaybeusedtocomposeasystemorsubsystem."*somecommonexamplesofarchitecturalstylesincludethepipeandfilter,layered,pushbased,andsoon.inthewebservicesworld,representationalstatetransfer(rest)isakeydesignidiomthatembracesastatelessclient-serverarchitectureinwhichthewebservicesareviewedasresourcesandcanbeidentifiedbytheirurls.webserviceclientsthatwanttousetheseresourcesaccessaparticularrepresentationbytransferringapplicationcontentusingasmallgloballydefinedsetofremotemethodsthatdescribetheactiontobeperformedontheresource.restisananalyticaldescriptionoftheexistingwebarchitecture,andthustheinterplaybetweenthestyleandtheunderlyinghttpprotocolappearsseamless.

thehttpmethodssuchasgetandpostaretheverbsthatthedevelopercanusetodescribethenecessary,read,,and(crud)actionstobeperformed.somemayseeananalogytooperationsinsql,whichalsoreliesonafewcommonverbs,asnintable1.however,thereststyleandhttpprotocolaremutuallyexclusive,andrestdoesnotrequirehttp.

table1:relationshipsbetweensqlandhttpverbs

actionsqlhttp

putreadgetpost

whentouserest

architectsanddevelopersneedtodecidewhenthisparticularstyleisanappropriatechoicefortheirapplications.arestfuldesignmaybeappropriatewhen

thewebservicesarecompletelystateless.agoodtestistoconsiderwhethertheinteractioncansurvivearestartoftheserver.

acachinginfrastructurecanbeleveragedforperformance.ifthedatathatthewebservicereturnsisnotdynamicallygeneratedandcanbecached,thenthecachinginfrastructurethatwebserversandotherintermediariesinherentlyprovidecanbeleveragedtoimproveperformance.however,thedevelopermusttakecarebecausesuchcachesarelimitedtothehttpgetmethodformostservers.

theserviceproducerandserviceconsumerhaveamutualunderstandingofthecontextandcontentbeingpassedalong.becausethereisnoformalwaytodescribethewebservicesinterface,bothpartiesmustagreeoutofbandontheschemasthatdescribethedatabeingexchangedandonwaystoprocessitmeaningfully.intherealworld,mostcommercialapplicationsthatexposeservicesasrestfulimplementationsalsodistributeso-calledvalue-addedtoolkitsthatdescribetheinterfacestodevelopersinpopularprogramminglanguages.

bandwidthisparticularlyimportantandneedstobelimited.restisparticularlyusefulforlimited-profiledevicessuchaspdasandmobilephones,forwhichtheoverheadofheadersandadditionallayersofsoapelementsonthexmlpayloadmustberestricted.

webservicedeliveryoraggregationintoexistingwebsitescanbeenabledeasilywitharestfulstyle.developerscanusetechnologiessuchasasynchronousjavascriptwithxml(ajax)andtoolkitssuchasdirectwebremoting(dwr)toconsumetheservicesintheirwebapplications.ratherthanstartingfromscratch,servicescanbeexposedwithxmlandconsumedbyhtmlpageswithoutsignificantlyrefactoringtheexistingwebsitearchitecture.existingdeveloperswillbemoreproductivebecausetheyareaddingtosomethingtheyarealreadyfamiliarwith,ratherthanhavingtostartfromscratchwithnewtechnology.

asoap-baseddesignmaybeappropriatewhen

aformalcontractmustbeestablishedtodescribetheinterfacethatthewebserviceoffers.thewebservicesdescriptionlanguage(wsdl)describesthedetailssuchasmessages,operations,bindings,andlocationofthewebservice.

thearchitecturemustaddresscomplexnonfunctionalrequirements.manywebservicesspecificationsaddresssuchrequirementsandestablishacommonvocabularyforthem.examplesincludetransactions,security,addressing,trust,coordination,andsoon.mostreal-worldapplicationsgobeyondsimplecrudoperationsandrequirecontextualinformationandconversationalstatetobemaintained.withtherestfulapproach,developersmustbuildthisplumbingintotheapplicationlayerthemselves.

thearchitectureneedstohandleasynchronousprocessingandinvocation.insuchcases,theinfrastructureprovidedbystandardssuchaswsrmandapissuchasjax-wswiththeirclient-sideasynchronousinvocationsupportcanbeleveragedoutofthebox.

restfulsupportinjax-ws

thejavaapiforxmlwebservices(jax-ws)providesfullsupportforbuildinganddeployingrestfulwebservices.theapiwasdevelopedthroughthejavacommunityprocessprogramasjsr224.itistightlyintegratedwiththejavaarchitectureforxmlbinding(jaxb)forbindingxmltojavatechnologydataandisincludedinboththejavaplatform,standardedition(javase)6andthejavaplatform,enterpriseedition(javaee)5.

buildingrestfulservices

theexampleusedinthissectionbuildsonthepurchaseorderservicedescribedinthejavaeeblueprintscatalogasthe"patternsanddesign"whitepapers(parts1,2,and3).theoriginalendpointcontainedonlyonemethod--acceptpo--thatacceptedapurchaseorderandreturnedapurchaseorderstatus,bothofwhichweredefinedbyindividualschemas.

table2ssomemorecrudoperationstoaddtothisservice.

table2:additionalcrudoperations

descriptionjavatechnologymethodsignature

aneworderpublicpurchaseorderstatusacceptpo(purchaseorderorder)

retrieveanexistingorderpublicpurchaseorderretrievepo(stringorderid)

modifyanexistingorderpublicpurchaseorderpo(purchaseorderorder)

cancelanorderalreadysubmittedpublicvoidcancelpo(stringorderid)

jax-wsenablesbuildingrestfulendpointsthroughajavax.xml.ws.providerinterfaceintheapi.providerisagenericinterfacethatcanbeimplementedbyaclassasadynamicnativetoaserviceendpointinterface(sei),andaserviceimplementingthisinterfacecanbedeployedinajavaeecontainerorpublishedinastand-alonemodethroughthejax-wsendpointapi.theproviderinterfacecontainsasinglemethodwiththefollowingsignature:

tinvoke(trequest)

providerisalow-levelgenericapi,butusingitrequirestheendpointtohaveanintimateknowledgeofthedesiredmessageorpayloadstructurebeingpassedtotheservice.dependingonhowtheproviderisimplemented,thesupportedtypesfortandtheirusesarethefollowing:

☆、第五十五章再遇黄金比蒙

insoftwareengineering,thetermsoftwarearchitecturalstylegenerallyrefersto"asetofdesignrulesthatidentifythekindsofcomponentsandconnectorsthatmaybeusedtocomposeasystemorsubsystem."*somecommonexamplesofarchitecturalstylesincludethepipeandfilter,layered,pushbased,andsoon.inthewebservicesworld,representationalstatetransfer(rest)isakeydesignidiomthatembracesastatelessclient-serverarchitectureinwhichthewebservicesareviewedasresourcesandcanbeidentifiedbytheirurls.webserviceclientsthatwanttousetheseresourcesaccessaparticularrepresentationbytransferringapplicationcontentusingasmallgloballydefinedsetofremotemethodsthatdescribetheactiontobeperformedontheresource.restisananalyticaldescriptionoftheexistingwebarchitecture,andthustheinterplaybetweenthestyleandtheunderlyinghttpprotocolappearsseamless.

thehttpmethodssuchasgetandpostaretheverbsthatthedevelopercanusetodescribethenecessary,read,,and(crud)actionstobeperformed.somemayseeananalogytooperationsinsql,whichalsoreliesonafewcommonverbs,asnintable1.however,thereststyleandhttpprotocolaremutuallyexclusive,andrestdoesnotrequirehttp.

table1:relationshipsbetweensqlandhttpverbs

(10 / 33)
邪修魔法师

邪修魔法师

作者:愤怒的影子
类型:西方奇幻
完结:
时间:2018-02-22 01:08

相关内容
大家正在读

本站所有小说为转载作品,所有章节均由网友上传,转载至本站只是为了宣传本书让更多读者欣赏。

Copyright © 2026 麻武读书网 All Rights Reserved.
[台湾版]

联系方式:mail

麻武读书网 |