邪修魔法师全本TXT下载 愤怒的影子 rest 全文免费下载

时间:2017-01-29 10:39 /科幻小说 / 编辑:优优
火爆新书邪修魔法师是愤怒的影子最新写的一本奇幻、西方奇幻的小说,这本小说的主角是rest,文中的爱情故事凄美而纯洁,文笔极佳,实力推荐。小说精彩段落试读:bandwidthisparticularlyimportantandneedstobelimited.restisparticularlyusefulforl...

邪修魔法师

推荐指数:10分

主角配角:rest

作品篇幅:短篇

《邪修魔法师》在线阅读

《邪修魔法师》第13部分

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

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)

(13 / 33)
邪修魔法师

邪修魔法师

作者:愤怒的影子 类型:科幻小说 完结: 否

★★★★★
作品打分作品详情
推荐专题大家正在读