All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.server.http2.servlet.session.HttpSessionManager Maven / Gradle / Ivy

There is a newer version: 4.0.3.2
Show newest version
package com.firefly.server.http2.servlet.session;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public interface HttpSessionManager {

	public boolean containsKey(String id);

	public HttpSession remove(String id);

	public HttpSession get(String id);

	public HttpSession create();

	public int size();
	
	public int getMaxSessionInactiveInterval();
	
	public void setMaxSessionInactiveInterval(int maxSessionInactiveInterval);
	
	public HttpSessionAttributeListener getHttpSessionAttributeListener();
	
	public void setHttpSessionAttributeListener(HttpSessionAttributeListener httpSessionAttributeListener);
	
	public HttpSessionListener getHttpSessionListener();
	
	public void setHttpSessionListener(HttpSessionListener httpSessionListener);
	
	
	public static class HttpSessionAttributeListenerAdapter implements HttpSessionAttributeListener {

		@Override
		public void attributeAdded(HttpSessionBindingEvent event) {
		}

		@Override
		public void attributeRemoved(HttpSessionBindingEvent event) {
		}

		@Override
		public void attributeReplaced(HttpSessionBindingEvent event) {
		}
		
	}
	
	public static class HttpSessionListenerAdapter implements HttpSessionListener {

		@Override
		public void sessionCreated(HttpSessionEvent se) {
		}

		@Override
		public void sessionDestroyed(HttpSessionEvent se) {
		}
		
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy