Package org.directwebremoting

Examples of org.directwebremoting.ScriptSessionFilter


     * @param String email - The email dress of the user who made the call (Used to get the game, and to exclude that user from an "Others" filter.
     * @return ScriptSessionFilter newFilter - the created filter.
     */
    private ScriptSessionFilter createFilter(final String filterType, final String email) {
        final Game game = SessionTracker.getSessionTracker().getGameTracker().getGameWithUserInIt(email);
        ScriptSessionFilter newFilter = null;
        if ("Game".equals(filterType)) {
            newFilter = new GameSessionFilter(game);
        } else if ("Others".equals(filterType)) {
            newFilter = new OtherPlayersInGameSessionFilter(game, email);
        }
View Full Code Here


     * Test of getFilter method, of class ReverseAJAXCall.
     */
    @Test
    public void testGetFilter() {
        System.out.println("getFilter");
        ScriptSessionFilter expResult = null;
        ScriptSessionFilter result = instance.getFilter();
        assertEquals(expResult, result);
    }
View Full Code Here

     */
    @Test
    public void testGetFilter() {
        System.out.println("getFilter");
        ReverseAJAXCall instance = new ReverseAJAXCall();
        ScriptSessionFilter expResult = null;
        ScriptSessionFilter result = instance.getFilter();
        assertEquals(expResult, result);    
    }
View Full Code Here

     */
    public Collection<ScriptSession> getScriptSessionsByPage(String url)
    {
        List<ScriptSession> matching = new ArrayList<ScriptSession>();
        Collection<ScriptSession> allScriptSessions = getScriptSessionManager().getAllScriptSessions();
        ScriptSessionFilter filter = new PageScriptSessionFilter(this, url);

        for (ScriptSession session : allScriptSessions)
        {
            if (filter.match(session))
            {
                matching.add(session);
            }
        }

View Full Code Here

TOP

Related Classes of org.directwebremoting.ScriptSessionFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.