网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
关于FilterChain的描述,哪一个正确()。
- A、如果不呼叫FilterChain的doFilter()方法,则请求略过接下来的过滤器而直接交给Servlet
- B、如果有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给下一个过滤器
- C、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给Servlet
- D、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法没有作用
参考答案
更多 “关于FilterChain的描述,哪一个正确()。A、如果不呼叫FilterChain的doFilter()方法,则请求略过接下来的过滤器而直接交给ServletB、如果有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给下一个过滤器C、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法,会将请求交给ServletD、如果没有下一个过滤器,呼叫FilterChain的doFilter()方法没有作用” 相关考题
考题
在一个Filter中,处理filter的业务的是()方法
A.dealFilter(ServletRequestreg,ServletResponseres,FilterChainchain)B.dealFilter(ServletRequestreg,ServletResponseres)C.doFilter(ServletRequestreg,ServletResponseres,FilterChainchain)D.doFilter(ServletRequestreg,ServletResponseres)
考题
SIP用户代理分为UAC和UAS两部分,以下正确的描述是()。
A、UAC负责发起SIP呼叫请求B、UAS负责对呼叫请求作出响应C、UAS负责发起SIP呼叫请求D、UAC负责对呼叫请求作出响应
考题
使用分发列表对路由器更新进行过滤,通用流程包括哪些步骤?()A、如果接口不存在相关联的过滤器,则丢弃分组B、如果接口有相关联的过滤器,则根据分发列表查找匹配条目C、如果存在匹配条目,则允许该路由D、如果没有匹配条目,则允许该路由
考题
关于用户来电接通后,马上断线的操作正确的是?()A、接通后如果没有弹出用户信息,则直接置就绪,接下一个电话B、接通后如果已弹出用户信息,直接置就绪,接下一个电话C、接通后如果已弹出用户信息,则确认用户,按断线规范做记录D、无论是否弹出信息,直接就绪,接下一个电话
考题
关于过滤器的描述,以下哪一个正确()。A、Filter接口定义了init()、service()与destroy()方法B、会传入ServletRequest与ServletResponse至FilterC、要执行下一个过滤器,必须执行FilterChaing的next()方法D、如果要取得初始参数,要使用FilterConfig对象内容
考题
下列说法正确的是()A、Filter接口可以帮助我们在WEB应用中实施过滤技术B、Filter接口拥有Init(FilterConfig filterConfig)方法C、FilterChain是代码的过滤链,通过这个接口把过滤的任务在不同的Filter之间转移D、FilterConfig接口代表了Filter的配置E、FilterChain接口代表了Filter的配置
考题
在一个Filter中,处理filter的业务的是()方法 A、dealFilter(ServletRequest reg,ServletResponse res,FilterChain chain)B、dealFilter(ServletRequest reg,ServletResponse res)C、doFilter(ServletRequest reg,ServletResponse res,FilterChain chain)D、doFilter(ServletRequest reg,ServletResponse res)
考题
Which the three are true about servlet filters?()A、 A filter must implement the destroy methodB、 A filter must implement the doFilter methodC、 A servlet may have multiple filters associated with itD、 A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interfaceE、 A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward methodF、 For each element in the web application deployment descriptor, multiple instances of a filter may be created by the web container
考题
在一个Filter中,处理filter业务的是()方法。A、dealFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain)B、dealFilter(ServletRequestrequest,ServletResponseresponse)C、doFilter(ServletRequestrequest,ServletResponseresponse,FilterChainchain)D、doFilter(ServletRequestrequest,ServletResponseresponse)
考题
过滤器使用()才能继续传递到下一个过滤器。A、request.getRequestDispatcher().forward(request,response)B、doFilter()C、doPut()D、doChain()
考题
有关过滤器init( )方法错误的是()。A、每次调用过滤器时都会执行init方法B、init方法可以访问FilterConfig对象。FilterConfig对象提供了对servlet环境及web.xml文件中指派的过滤器名的访问C、利用init将FilterConfig对象存放在一个字段中,以便doFilter方法能够访问servlet环境或过滤器名D、FilterConfig对象具有一个getInitParameter方法,它能够访问部署描述符文件(web.xml)中分配的过滤器的初始化参数
考题
Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()A、chain.forward(request, response);B、chain.doFilter(request, response);C、request.forward(request, response);D、request.doFilter(request, response);
考题
Which three are true about servlet filters?()A、A filter must implement the destroy method.B、A filter must implement the doFilter method.C、A servlet may have multiple filters associated with it.D、A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.E、A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.
考题
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()A、Your filter class must implement an init method and a destroy method.B、Your filter class must also implement javax.servlet.FilterChain.C、When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.D、The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.E、Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
考题
单选题在一个Filter中,处理filter的业务的是()方法A
dealFilter(ServletRequest reg,ServletResponse res,FilterChain chain)B
dealFilter(ServletRequest reg,ServletResponse res)C
doFilter(ServletRequest reg,ServletResponse res,FilterChain chain)D
doFilter(ServletRequest reg,ServletResponse res)
考题
多选题You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()AYour filter class must implement an init method and a destroy method.BYour filter class must also implement javax.servlet.FilterChain.CWhen your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.DThe method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.EYour filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.
考题
单选题过滤器使用()才能继续传递到下一个过滤器。A
request.getRequestDispatcher().forward(request,response)B
doFilter()C
doPut()D
doChain()
考题
多选题关于过滤器的描述,以下哪一个正确()。AFilter接口定义了init()、service()与destroy()方法B会传入ServletRequest与ServletResponse至FilterC要执行下一个过滤器,必须执行FilterChaing的next()方法D如果要取得初始参数,要使用FilterConfig对象内容
考题
多选题Which the three are true about servlet filters?()AA filter must implement the destroy methodBA filter must implement the doFilter methodCA servlet may have multiple filters associated with itDA servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interfaceEA filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward methodFFor each element in the web application deployment descriptor, multiple instances of a filter may be created by the web container
考题
单选题Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here 26.} Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()A
chain.forward(request, response);B
chain.doFilter(request, response);C
request.forward(request, response);D
request.doFilter(request, response);
热门标签
最新试卷