BAEL-315 - removing obsolete files
This commit is contained in:
		
							parent
							
								
									0ea29df589
								
							
						
					
					
						commit
						b0cfdb180e
					
				| @ -1,25 +0,0 @@ | |||||||
| package com.baeldung.enterprise.patterns.front.controller.filters; |  | ||||||
| 
 |  | ||||||
| import javax.servlet.FilterChain; |  | ||||||
| import javax.servlet.ServletException; |  | ||||||
| import javax.servlet.ServletRequest; |  | ||||||
| import javax.servlet.ServletResponse; |  | ||||||
| import javax.servlet.http.HttpServletRequest; |  | ||||||
| import javax.servlet.http.HttpSession; |  | ||||||
| import java.io.IOException; |  | ||||||
| 
 |  | ||||||
| public class AuditFilter extends BaseFilter { |  | ||||||
|     @Override |  | ||||||
|     public void doFilter( |  | ||||||
|       ServletRequest request, |  | ||||||
|       ServletResponse response, |  | ||||||
|       FilterChain chain |  | ||||||
|     ) throws IOException, ServletException { |  | ||||||
|         HttpServletRequest httpServletRequest = (HttpServletRequest) request; |  | ||||||
|         HttpSession session = httpServletRequest.getSession(false); |  | ||||||
|         if (session != null && session.getAttribute("username") != null) { |  | ||||||
|             request.setAttribute("username", session.getAttribute("username")); |  | ||||||
|         } |  | ||||||
|         chain.doFilter(request, response); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,23 +0,0 @@ | |||||||
| package com.baeldung.enterprise.patterns.front.controller.filters; |  | ||||||
| 
 |  | ||||||
| import javax.servlet.FilterChain; |  | ||||||
| import javax.servlet.ServletException; |  | ||||||
| import javax.servlet.ServletRequest; |  | ||||||
| import javax.servlet.ServletResponse; |  | ||||||
| import javax.servlet.annotation.WebFilter; |  | ||||||
| import java.io.IOException; |  | ||||||
| 
 |  | ||||||
| @WebFilter(servletNames = "front-controller") |  | ||||||
| public class VisitorCounterFilter extends BaseFilter { |  | ||||||
|     private int counter; |  | ||||||
| 
 |  | ||||||
|     @Override |  | ||||||
|     public void doFilter( |  | ||||||
|       ServletRequest request, |  | ||||||
|       ServletResponse response, |  | ||||||
|       FilterChain chain |  | ||||||
|     ) throws IOException, ServletException { |  | ||||||
|         request.setAttribute("counter", ++counter); |  | ||||||
|         chain.doFilter(request, response); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,35 +0,0 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" |  | ||||||
|          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |  | ||||||
|          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |  | ||||||
|     <modelVersion>4.0.0</modelVersion> |  | ||||||
| 
 |  | ||||||
|     <groupId>com.baeldung.enterprise.patterns</groupId> |  | ||||||
|     <artifactId>enterprise-patterns-parent</artifactId> |  | ||||||
|     <packaging>pom</packaging> |  | ||||||
|     <modules> |  | ||||||
|         <module>spring-dispatcher-servlet</module> |  | ||||||
|     </modules> |  | ||||||
| 
 |  | ||||||
|     <parent> |  | ||||||
|         <groupId>com.baeldung</groupId> |  | ||||||
|         <artifactId>parent-modules</artifactId> |  | ||||||
|         <version>1.0.0-SNAPSHOT</version> |  | ||||||
|     </parent> |  | ||||||
| 
 |  | ||||||
|     <build> |  | ||||||
|         <pluginManagement> |  | ||||||
|             <plugins> |  | ||||||
|                 <plugin> |  | ||||||
|                     <groupId>org.apache.maven.plugins</groupId> |  | ||||||
|                     <artifactId>maven-compiler-plugin</artifactId> |  | ||||||
|                     <version>3.5.1</version> |  | ||||||
|                     <configuration> |  | ||||||
|                         <source>1.8</source> |  | ||||||
|                         <target>1.8</target> |  | ||||||
|                     </configuration> |  | ||||||
|                 </plugin> |  | ||||||
|             </plugins> |  | ||||||
|         </pluginManagement> |  | ||||||
|     </build> |  | ||||||
| </project> |  | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user