SE6125Web-enHancedInformationManagement(WHIM)*Today’sTopic:SE6125*WhatDoWeMeanByArchitecture?Asoftwarearchitectureinvestigatesanddeterminesmethodsforhowbesttopartitionasystem,municatewitheachother,municated,howelementsofasystemcanevolveindependently,SE6125*monpatternacrosssystemarchitecturesAnamed,coordinatedsetofarchitecturalconstraints(analogousto“designpatterns”)Examplearchitecturalstyles:client-server,N-tier,peer-to-peer,pipes,posedofmultiplestylesSomestylesarehybridsofotherstylesREST(REpresentationalStateTransfer)SE6125*Why“RepresentationalStateTransfer”?Intendedtoevokeanimageofhowawell-designedWebapplicationbehaves:anetworkofwebpages(avirtualstate-machine),wheretheuserprogressesthroughtheapplicationbyselectinglinks(statetransitions),resultinginthenextpage(representingthenextstateoftheapplication)beingtransferredtotheuseragent,SE6125*municationtoobtain/modifyrepresentationsWeb“page”asaninstanceofanapplication’sstateEnginestomovefromonestatetothenext(browser,spider,anymediatypehandler)SE6125*WhatisaResource?Aresourcecanbeanythingthathasidentityadocumentorimageaservice,.,informing“today’sweatherinSeattle”workedobjects(.,people)Theresourceistheconceptualmappingtoanentityorsetofentities,SE6125*RepresentationsofaResourceTheWebisdesignedtomanipulateandtransferrepresentationsofaresource(nottheactualresource)Asingleresourcemaybeassociatedwithmultiplerepresentations(contentnegotiation)Arepresentationisintheformofamediatypethatprovidesmeta-datainformationforthisresourceHypermedia-awaremediatypesprovidepotentialstatetransitionsMostrepresentationsarecacheableAResourceisDefinedbyaURIe/of/resource?limit=10&offset=0#municatewiththeresourcehosteronwhichresourceislocatedpath/name/of/resourceDeterminespreciseresourceonserverquerylimit=10&offset=0InstructsserverhowtoapplyadditionaloperationstotheresourcefragmentbookmarkNottransmittedtoserver,onlyappliedclient-side*SE6125*ResourceOperationsOncetheresourcehasbeenreached,itneedstobeacteduponFoursimpleverbs:GET,PUT,
7 February 2012 来自淘豆网m.daumloan.com转载请标明出处.