Package com.sodius.oslc.server.services
Class LocalesFilter
- java.lang.Object
-
- com.sodius.oslc.server.services.HttpFilter
-
- com.sodius.oslc.server.services.LocalesFilter
-
- All Implemented Interfaces:
Filter
public class LocalesFilter extends HttpFilter
Makes the incoming request languages available to use from anywhere within the current thread and its children with theLocalesAPI.- Since:
- 3.12.0
-
-
Constructor Summary
Constructors Constructor Description LocalesFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)Processes this filter and either executes or blocks the chain.-
Methods inherited from class com.sodius.oslc.server.services.HttpFilter
destroy, doFilter, handleOslcError, init
-
-
-
-
Method Detail
-
doFilter
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
Description copied from class:HttpFilterProcesses this filter and either executes or blocks the chain.Subclasses may throw a
OslcWebApplicationExceptionto report anOslcError. This filter will automatically serialize such error in the HTTP response.- Specified by:
doFilterin classHttpFilter- Parameters:
request- the request.response- the response.chain- the filter chain to process.- Throws:
IOException- if an I/O error occurs.ServletException- if the filter execution fails.
-
-