org.apache.struts2.showcase.chat
Class ChatInterceptor

java.lang.Object
  extended by org.apache.struts2.showcase.chat.ChatInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class ChatInterceptor
extends Object
implements com.opensymphony.xwork2.interceptor.Interceptor

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

See Also:
Serialized Form

Field Summary
static String CHAT_USER_SESSION_KEY
           
 
Constructor Summary
ChatInterceptor()
           
 
Method Summary
 void destroy()
           
 void init()
           
 String intercept(com.opensymphony.xwork2.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 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 com.opensymphony.xwork2.interceptor.Interceptor

init

public void init()
Specified by:
init in interface com.opensymphony.xwork2.interceptor.Interceptor

intercept

public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
                 throws Exception
Specified by:
intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
Throws:
Exception


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