站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.1 API 英文版文档

CharacterEncodingFilter (JBoss Seam API Documentation) - JBoss Seam 1.2.1 API 英文版文档


org.jboss.seam.web
Class CharacterEncodingFilter

java.lang.Object
  extended by org.jboss.seam.web.AbstractFilter
      extended by org.jboss.seam.web.CharacterEncodingFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
SeamCharacterEncodingFilter

@Startup
@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.servlet.characterEncodingFilter")
@Install(value=false,
         precedence=0)
@Intercept(value=NEVER)
public class CharacterEncodingFilter
extends AbstractFilter

A servlet filter that lets you set the character encoding of submitted data. There are two init parameters: "encoding" and "overrideClient".

Author:
Gavin King

Constructor Summary
CharacterEncodingFilter()
           
 
Method Summary
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain)
           
 String getEncoding()
           
 boolean getOverrideClient()
           
 void setEncoding(String encoding)
           
 void setOverrideClient(boolean overrideClient)
           
 
Methods inherited from class org.jboss.seam.web.AbstractFilter
destroy, getServletContext, getUrlPattern, init, setUrlPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterEncodingFilter

public CharacterEncodingFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain filterChain)
              throws javax.servlet.ServletException,
                     IOException
Throws:
javax.servlet.ServletException
IOException

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getOverrideClient

public boolean getOverrideClient()

setOverrideClient

public void setOverrideClient(boolean overrideClient)