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

org.coweb.DefaultSessionModerator Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
/**
 * 
 */
package org.coweb;

import java.util.Map;

import org.cometd.bayeux.Message;
import org.cometd.bayeux.server.ServerSession;

/**
 * @author bburns
 * 
 */
public class DefaultSessionModerator extends SessionModerator {

	public DefaultSessionModerator() {
		super();
	}

	/**
	 * @param sessionHandler
	 */
	public DefaultSessionModerator(SessionHandler sessionHandler) {
		super(sessionHandler);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#onSync(org.cometd.bayeux.server.ServerSession,
	 * org.cometd.bayeux.Message)
	 */
	@Override
	public boolean onSync(Map data) {
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.coweb.SessionModerator#getLateJoinState()
	 */
	@Override
	public Object[] getLateJoinState() {
		return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#canClientJoinSession(org.cometd.bayeux.server
	 * .ServerSession)
	 */
	@Override
	public boolean canClientJoinSession(ServerSession client) {
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#onClientJoinSession(org.cometd.bayeux.server
	 * .ServerSession)
	 */
	@Override
	public void onClientJoinSession(ServerSession client) {
		return;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#onClientLeaveSession(org.cometd.bayeux.server
	 * .ServerSession)
	 */
	@Override
	public void onClientLeaveSession(ServerSession client) {
		return;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#canClientSubscribeService(org.cometd.bayeux
	 * .server.ServerSession)
	 */
	@Override
	public boolean canClientSubscribeService(ServerSession client) {
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#canClientMakeServiceRequest(org.cometd.bayeux
	 * .server.ServerSession, org.cometd.bayeux.Message)
	 */
	@Override
	public boolean canClientMakeServiceRequest(ServerSession client,
			Message botMessage) {
		return true;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.coweb.SessionModerator#onServiceResponse(org.cometd.bayeux.Message)
	 */
	@Override
	public void onServiceResponse(Message botResponse) {
		return;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.coweb.SessionModerator#onSessionEnd()
	 */
	@Override
	public void onSessionEnd() {
		return;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy