org.directwebremoting.extend
Class PageScriptSessionFilter

java.lang.Object
  extended by org.directwebremoting.extend.PageScriptSessionFilter
All Implemented Interfaces:
ScriptSessionFilter

public class PageScriptSessionFilter
extends java.lang.Object
implements ScriptSessionFilter

A ScriptSessionFilter that only allows ScriptSessions that match the given page.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
PageScriptSessionFilter(ServerContext serverContext, java.lang.String page)
           
 
Method Summary
 boolean match(ScriptSession session)
          Does this ScriptSession match according to the matching pattern declared by this filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageScriptSessionFilter

public PageScriptSessionFilter(ServerContext serverContext,
                               java.lang.String page)
Method Detail

match

public boolean match(ScriptSession session)
Description copied from interface: ScriptSessionFilter
Does this ScriptSession match according to the matching pattern declared by this filter.

Specified by:
match in interface ScriptSessionFilter
Parameters:
session - The ScriptSession to check for a match
Returns:
true if the session matches, false otherwise

Copyright 2008