Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.servlet.filter
Class ServletFilter

java.lang.Object
  |
  +--oracle.i18n.servlet.filter.ServletFilter
All Implemented Interfaces:
javax.servlet.Filter

public class ServletFilter
extends Object
implements javax.servlet.Filter

ServletFilter class instantiates the wrappers of HTTP request and response objects for GDK, and pass them to the application.

The application requires to register this class in web.xml.

By incorporating the servlet filter mechanism, the locale and its attributes are automatically registered before application execution.
To determine the current locale, call request.getLocale as usual.
To determine more localized contents, instantiate Localizer by calling ServletHelper.getLocalizerInstance(HttpServletRequest) to detail localized operations, such as Date formatting.

Since:
10.1.1

Method Summary
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Executes the filter operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
destroy, init
 

Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
Executes the filter operation.

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request - the servlet request object
response - the servlet response object
chain - a filter chain object
Throws:
RuntimeException - if IOException or ServletException occurs

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.