1 /*
2 * $Id: NullSessionHandler.java 7976 2007-08-21 14:26:13Z dirk.olmes $
3 * --------------------------------------------------------------------------------------
4 * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10
11 package org.mule.impl;
12
13 import org.mule.umo.UMOException;
14 import org.mule.umo.UMOMessage;
15 import org.mule.umo.UMOSession;
16 import org.mule.umo.provider.UMOSessionHandler;
17
18 /**
19 * A session handler that ignores any session information
20 */
21 public class NullSessionHandler implements UMOSessionHandler
22 {
23 public void retrieveSessionInfoFromMessage(UMOMessage message, UMOSession session) throws UMOException
24 {
25 // noop
26 }
27
28 public void storeSessionInfoToMessage(UMOSession session, UMOMessage message) throws UMOException
29 {
30 // noop
31 }
32
33 /**
34 * The property name of the session id to use when creating the Mule session. by
35 * default the property name "ID" will be used. If no property was set on the
36 * session called "ID" a session id will be automatically generated
37 *
38 * @return the property name of the session id that is set on the session
39 */
40 public String getSessionIDKey()
41 {
42 return "ID";
43 }
44 }