Back to project page libgdx-chat-example.
The source code is released under:
Apache License
If you think the Android project libgdx-chat-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.stofkat.chat.server; /*from w w w .java 2 s.co m*/ import javax.servlet.http.HttpSession; import org.stofkat.chat.common.actions.Action; import org.stofkat.chat.common.exceptions.DispatchException; import org.stofkat.chat.common.results.Result; /** * Executes actions and returns the results. * * @author David Peterson */ public interface Dispatch { /** * Executes the specified action and returns the appropriate result. * * @param <T> * The {@link Result} type. * @param action * The {@link Action}. * @return The action's result. * @throws DispatchException * if the action execution failed. */ <A extends Action<R>, R extends Result> R execute(A action, HttpSession session) throws DispatchException; }