单选题A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal netwo

题目
单选题
A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request frommanagement to create several more of these data warehousing servlets. The developer is about to copyand paste the compression code into each new servlet. Which design pattern can consolidate thiscompression code to be used by all of the data warehousing servlets?()
A

Facade

B

View Helper

C

Transfer Object

D

Intercepting Filter

E

Composite Facade

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

A customer is experiencing a performance bottleneck in a disk subsystem.  The server is performing sequential I/O with a small number of users requesting large files.  Which of the following would most likely resolve the bottleneck?()

  • A、Increase seek translation
  • B、Increase data transfer rate
  • C、Decrease rotational latency
  • D、Increase rotational latency

正确答案:B

第2题:

Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()

  • A、 session.get Resource (“/WEB-INF/myconfig.xml”)
  • B、 request.get Resource (“/WEB-INF/myconfig.xml”)
  • C、 context.get Resource (“/WEB-INF/myconfig.xml”)
  • D、 get Class ().get Resource (“/WEB-INF/myconfig.xml”)

正确答案:C

第3题:

You work as an application developer at Certkiller .com. You are currently in the process of creating a new application for Certkiller .com. You are required to read compressed data files that has been sent by Certkiller .com‘s sales offices.These data files are less than 4 GB in size, but was compressed without cyclic redundancy. You want to write a method that receives the compressed files and return the uncompressed data as a byte array.What should you do?()

A.

B.

C.

D.


参考答案:A

第4题:

Which two classes or interfaces provide a getSession method?()

  • A、javax.servlet.http.HttpServletRequest
  • B、javax.servlet.http.HttpSessionContext
  • C、javax.servlet.http.HttpServletResponse
  • D、javax.servlet.http.HttpSessionBindingEvent
  • E、javax.servlet.http.HttpSessionAttributeEvent

正确答案:A,D

第5题:

Which interface must a class implement to be informed of a session creation event?()

  • A、 javax.servlet.http.HttpSessionListener
  • B、 javax.servlet.http.HttpSessionBindingListener
  • C、 javax.servlet.http.HttpSessionCreationListener
  • D、 javax.servlet.http.HttpSessionActivationListener

正确答案:A

第6题:

A developer has created a web application that includes a servlet for each use case in the application.These servlets have become rather difficult to maintain because the request processing methods havebecome very large. There is also common processing code in many servlets because these use cases arevery similar. Which two design patterns can be used together to refactor and simplify this web application?()

  • A、Proxy
  • B、View Helper
  • C、Front Controller
  • D、Session Facade
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:C,F

第7题:

Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()

  • A、Store the data in a public instance variable in the servlet.
  • B、Add an attribute to the request object before using the request dispatcher.
  • C、Add an attribute to the context object before using the request dispatcher.
  • D、This CANNOT be done as the tag handler has no means to extract this data.

正确答案:B

第8题:

当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。

  • A、Servlet Context
  • B、Http Session
  • C、Servlet Application
  • D、Http Servlet Request

正确答案:A

第9题:

Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()

  • A、javax.servlet.http.HttpSessionListener
  • B、javax.servlet.http.HttpSessionBindingListener
  • C、javax.servlet.http.HttpSessionAttributeListener
  • D、javax.servlet.http.HttpSessionActivationListener

正确答案:D

第10题:

A developer has created a special servlet that is responsible for generating XML content that is sent to adata warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request frommanagement to create several more of these data warehousing servlets. The developer is about to copyand paste the compression code into each new servlet. Which design pattern can consolidate thiscompression code to be used by all of the data warehousing servlets?()

  • A、Facade
  • B、View Helper
  • C、Transfer Object
  • D、Intercepting Filter
  • E、Composite Facade

正确答案:D

更多相关问题