Esri Geoportal Server
1.0

com.esri.gpt.control.filter
Class EncodingFilter

java.lang.Object
  extended by com.esri.gpt.control.filter.EncodingFilter
All Implemented Interfaces:
Filter

public class EncodingFilter
extends Object
implements Filter

Filter to set the character encoding for a servlet request, and check for session timeouts.


Constructor Summary
EncodingFilter()
          Default constructor.
 
Method Summary
 void destroy()
          Destroy event for the filter.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Executes the filter.
 void init(FilterConfig filterConfig)
          Initialization event for the filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingFilter

public EncodingFilter()
Default constructor.

Method Detail

destroy

public void destroy()
Destroy event for the filter.

Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Executes the filter.

The character encoding for the servlet request is set to UTF-8 if not already specified.

Specified by:
doFilter in interface Filter
Parameters:
request - the servlet request
response - the servlet response
chain - the filter chain
Throws:
IOException - if an io exception occurs
ServletException - is a servlet exception occurs

init

public void init(FilterConfig filterConfig)
          throws ServletException
Initialization event for the filter

Specified by:
init in interface Filter
Parameters:
filterConfig - filter configuration
Throws:
ServletException - if an exception occure

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.