登录 | 找书

(奇幻、西方奇幻)邪修魔法师 免费在线阅读 愤怒的影子 第一时间更新 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