org.apache.struts2.showcase.chat
Class ChatInterceptor

java.lang.Object
  extended by org.apache.struts2.showcase.chat.ChatInterceptor
All Implemented Interfaces:
Interceptor, java.io.Serializable

public class ChatInterceptor
extends java.lang.Object
implements Interceptor

Authenticate showcase chat example, make sure everyone have a username.

See Also:
Serialized Form

Field Summary
static java.lang.String CHAT_USER_SESSION_KEY
           
 
Constructor Summary
ChatInterceptor()
           
 
Method Summary
 void destroy()
           
 void init()
           
 java.lang.String intercept(ActionInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAT_USER_SESSION_KEY

public static final java.lang.String CHAT_USER_SESSION_KEY
See Also:
Constant Field Values
Constructor Detail

ChatInterceptor

public ChatInterceptor()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface Interceptor

init

public void init()
Specified by:
init in interface Interceptor

intercept

public java.lang.String intercept(ActionInvocation invocation)
                           throws java.lang.Exception
Specified by:
intercept in interface Interceptor
Throws:
java.lang.Exception


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.