下列说法正确的是()A、Filter接口可以帮助我们在WEB应用中实施过滤技术B、Filter接口拥有Init(FilterConfig filterConfig)方法C、FilterChain是代码的过滤链,通过这个接口把过滤的任务在不同的Filter之间转移D、FilterConfig接口代表了Filter的配置E、FilterChain接口代表了Filter的配置

题目

下列说法正确的是()

  • A、Filter接口可以帮助我们在WEB应用中实施过滤技术
  • B、Filter接口拥有Init(FilterConfig filterConfig)方法
  • C、FilterChain是代码的过滤链,通过这个接口把过滤的任务在不同的Filter之间转移
  • D、FilterConfig接口代表了Filter的配置
  • E、FilterChain接口代表了Filter的配置

相似考题
更多“下列说法正确的是()A、Filter接口可以帮助我们在WEB应用中实施过滤技术B、Filter接口拥有Init(FilterConfig filterConfig)方法C、FilterChain是代码的过滤链,通过这个接口把过滤的任务在不同的Filter之间转移D、FilterConfig接口代表了Filter的配置E、FilterChain接口代表了Filter的配置”相关问题
  • 第1题:

    在JAVA EE中,使用Servlet过滤器时,需要在web.xml通过()元素将过滤器映射到Web资源。

    • A、〈filter〉
    • B、〈filter-mapping〉
    • C、〈servlet〉
    • D、〈servlet-mapping〉

    正确答案:B

  • 第2题:

    下面哪项交换机的功能能实现关闭正在接受BPDU且配置了PortFast接口?()

    • A、 BackboneFast
    • B、 UplinkFast
    • C、 Root Guard
    • D、 BPDU Guard
    • E、 BPDU Filter

    正确答案:D

  • 第3题:

    Which the 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
    • F、 For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container

    正确答案:A,B,C

  • 第4题:

    在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。

    • A、<filter>
    • B、<filter-mapping>
    • C、<filter-name>
    • D、<filter-class>

    正确答案:A

  • 第5题:

    Servlet通过()可以实现请求转发机制。

    • A、HttpServletRequest接口
    • B、RequestDispatcher接口
    • C、HttpServletResponse接口
    • D、ServletConfig接口
    • E、Filter接口

    正确答案:B

  • 第6题:

    在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。

    • A、〈filter〉
    • B、〈filter-mapping〉
    • C、〈filter-name〉
    • D、〈filter-class〉

    正确答案:A

  • 第7题:

    有关过滤器init( )方法错误的是()。

    • A、每次调用过滤器时都会执行init方法
    • B、init方法可以访问FilterConfig对象。FilterConfig对象提供了对servlet环境及web.xml文件中指派的过滤器名的访问
    • C、利用init将FilterConfig对象存放在一个字段中,以便doFilter方法能够访问servlet环境或过滤器名
    • D、FilterConfig对象具有一个getInitParameter方法,它能够访问部署描述符文件(web.xml)中分配的过滤器的初始化参数

    正确答案:A

  • 第8题:

    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.

    正确答案:A,B,C

  • 第9题:

    多选题
    以下配置邮件主题过滤关键字错误的是()。
    A

    firewall smtp-filter subject add*

    B

    firewall smtp-filter subject add*hello*

    C

    firewall smtp-filter subject addhel lo

    D

    firewall smtp-filter subject addhel lo


    正确答案: A,D
    解析: 暂无解析

  • 第10题:

    单选题
    编写一个Filter,需要()。
    A

    继承Filter类

    B

    实现Filter接口

    C

    继承HttpFilter类

    D

    实现HttpFilter接口


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。
    A

    〈filter〉

    B

    〈filter-mapping〉

    C

    〈filter-name〉

    D

    〈filter-class〉


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。
    A

    <filter>

    B

    <filter-mapping>

    C

    <filter-name>

    D

    <filter-class>


    正确答案: B
    解析: 暂无解析

  • 第13题:

    Servlet可以通过以下哪个接口实现请求转发机制?()

    • A、HttpServletRequest接口
    • B、RequestDispatcher接口
    • C、HttpServletResponse接口
    • D、ServletConfig接口
    • E、Filter接口

    正确答案:B

  • 第14题:

    在一个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)

    正确答案:C

  • 第15题:

    关于Servlet Filter,下列说法正确的有() 

    • A、Filter其实就是一个Servlet
    • B、Filter可以产生response
    • C、Filter可以在Servlet被调用之前截获request
    • D、Filter可以哟活过来处理统一认证,过滤不雅字句等

    正确答案:C,D

  • 第16题:

    关于filter-polic过滤器,以下哪些说法不正确?()

    • A、可以在RIP中使用filter-polic对从邻居接受的RIP路由信息进行过滤
    • B、可以在RIP中使用filter-polic对发送给邻居的整个IP路由表进行过滤
    • C、可以在IS-IS中使用filter-polic对从邻居接收的IS-IS路由信息进行过滤
    • D、可以在OSPF中使用filter-polic对LSA计算出来的OSPF路由信息进行过滤

    正确答案:A,B,D

  • 第17题:

    在J2EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括元素。

    • A、<filter>
    • B、<filter-class>
    • C、<filter-name>
    • D、<filter-mapping>

    正确答案:A

  • 第18题:

    在J2EE中,在web.xml中定义过滤器时可以指定初始化参数,以下定义正确的是()。

    • A、<filter-mapping><filter-name>someFilter</filter-name><init-param>
    • B、<filter-mapping><filter-name>someFilter</filter-name>
    • C、<filter><filter-name>someFilter</filter-name>
    • D、<filter><fiter-name>someFilter</filter-name><init-param>

    正确答案:C

  • 第19题:

    以下配置邮件主题过滤关键字错误的是()。

    • A、firewall smtp-filter subject add*
    • B、firewall smtp-filter subject add*hello*
    • C、firewall smtp-filter subject addhel lo
    • D、firewall smtp-filter subject add"hel lo"

    正确答案:B,C

  • 第20题:

    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.

    正确答案:A,D

  • 第21题:

    多选题
    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.


    正确答案: A,B
    解析: 暂无解析

  • 第22题:

    多选题
    Which the 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

    F

    For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container


    正确答案: E,B
    解析: 暂无解析

  • 第23题:

    多选题
    下列说法正确的是()
    A

    Filter接口可以帮助我们在WEB应用中实施过滤技术

    B

    Filter接口拥有Init(FilterConfig filterConfig)方法

    C

    FilterChain是代码的过滤链,通过这个接口把过滤的任务在不同的Filter之间转移

    D

    FilterConfig接口代表了Filter的配置

    E

    FilterChain接口代表了Filter的配置


    正确答案: E,A
    解析: 暂无解析