1   package org.codehaus.xfire.transport.http;
2   
3   import org.codehaus.xfire.MessageContext;
4   import org.codehaus.xfire.fault.XFireFault;
5   import org.codehaus.xfire.handler.EchoHandler;
6   
7   /***
8    * Stuffs something in the session.
9    * 
10   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
11   */
12  public class MockSessionHandler
13      extends EchoHandler
14  {
15      public static boolean inSession = false;
16  
17      public void invoke( MessageContext context ) 
18          throws XFireFault
19      {
20          super.invoke( context );
21          
22          System.out.println("putting in session");
23          context.getSession().put("key", "hello world");
24          
25          if ( context.getSession().get("key").equals("hello world") )
26              inSession = true;
27  	}
28  	
29  }