单项选择题
A developer is designing a web application that must verify for each request: The originating request is froma trusted network.
The client has a valid session.The client has been authenticated.
Which design pattern provides a solution in this situation?()
A.Transfer Object
B.Session Facade
C.Intercepting Filter
D.Template Method
E.Model-View-Controller
相关考题
-
单项选择题
Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly,the consultant created several dozen JSP pages that directly communicate with the database. The Squeakybusiness team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the newsystem. Which pattern can the developer use to solve this problem?()
A.Transfer Object
B.Service Locator
C.Intercepting Filter
D.Business Delegate -
多项选择题
ClicktheExhibitbutton. TheApplianceclassisaSingletonthatloadsasetofpropertiesintoaMapfromanexternaldatasource.Assume: AninstanceoftheApplianceclassexistsintheapplication-scopedattribute,applTheapplianceobject includesthenamepropertythatmapstothevalueCobiaTherequest-scopedattribute,prop,hasthevaluename. WhichtwoELcodesnippetswilldisplaythestringCobia?()
A.${appl.properties.name}
B.${appl.properties.prop}
C.${appl.properties[prop]}
D.${appl.properties[name]}
E.${appl.getProperties().get(prop)}
F.${appl.getProperties().get(’name’)} -
多项选择题
GivenanELfunctionfoo,innamespacefunc,thatrequiresalongasaparameterandreturnsaMap,which twoarevalidinvocationsoffunctionfoo?()
A.${func(1)}
B.${foo:func(4)}
C.${func:foo(2)}
D.${foo(5):func}
E.${func:foo("easy")}
F.${func:foo("3").name}
