Advertisement
ssmusoke

Aijar Content Filter

Jan 20th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. package org.openmrs.module.aijar.web.filter;
  2.  
  3. import org.apache.commons.logging.Log;
  4. import org.apache.commons.logging.LogFactory;
  5.  
  6. import javax.servlet.*;
  7. import javax.servlet.http.HttpServletRequest;
  8. import java.io.IOException;
  9.  
  10. /**
  11. * Created by ssmusoke on 20/01/2016.
  12. */
  13. public class AijarContentFilter implements Filter {
  14.  
  15. protected Log log = LogFactory.getLog(getClass());
  16.  
  17. public void init(FilterConfig filterConfig) throws ServletException {
  18.  
  19. }
  20.  
  21. public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
  22. HttpServletRequest req = (HttpServletRequest) servletRequest;
  23. req.getRequestDispatcher("aijarlogin.htm").forward(servletRequest, servletResponse);
  24. }
  25.  
  26. public void destroy() {
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement