登入 | 找書

(奇幻、西方奇幻)邪修魔法師 免費線上閱讀 憤怒的影子 第一時間更新 rest

時間:2016-09-18 09:33 /西方奇幻 / 編輯:雲昭
有很多書友最近在追一本叫做邪修魔法師的小說,這本小說是作者憤怒的影子寫的一本奇幻、西方奇幻型別的小說,站為大家提供了這本世間有你深愛無盡小說的線上閱讀地址,感興趣的朋友可以看一下。theexampleusedinthissectionbuildsonthepurchaseorderservicedescribedinthejavaeebl...

邪修魔法師

作品年代: 古代

作品長度:短篇

閱讀指數:10分

《邪修魔法師》線上閱讀

《邪修魔法師》第20部分

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

actionsqlhttp

putreadgetpost

whentouserest

architectsanddevelopersneedtodecidewhenthisparticularstyleisanappropriatechoicefortheirapplications.arestfuldesignmaybeappropriatewhen

(20 / 33)
邪修魔法師

邪修魔法師

作者:憤怒的影子
型別:西方奇幻
完結:
時間:2016-09-18 09:33

相關內容
大家正在讀

本站所有小說為轉載作品,所有章節均由網友上傳,轉載至本站只是為了宣傳本書讓更多讀者欣賞。

蠶豆閣 | 當前時間:

Copyright © 2015-2024 All Rights Reserved.
[繁體版]

站內信箱:mail