com.caucho.hemp.servlet
Class ServerLinkActor

java.lang.Object
  extended by com.caucho.bam.stream.AbstractMessageStream
      extended by com.caucho.bam.actor.SimpleActor
          extended by com.caucho.hemp.servlet.ServerLinkActor
All Implemented Interfaces:
Actor, ActorHolder, ManagedActor, MessageStream

public class ServerLinkActor
extends SimpleActor

ServerLinkActor handles link messages, i.e. to=null, which is primarily authentication.


Constructor Summary
ServerLinkActor(Broker toLinkBroker, ClientStubManager clientManager, ServerAuthManager authManager, java.lang.String ipAddress)
           
 
Method Summary
 void authLogin(long id, java.lang.String to, java.lang.String from, AuthQuery query)
           
 void authLogin(long id, java.lang.String to, java.lang.String from, LoginQuery query)
           
 void getNonce(long id, java.lang.String to, java.lang.String from, NonceQuery query)
           
protected  void notifyValidLogin(java.lang.String address)
           
protected  void onClose()
           
 
Methods inherited from class com.caucho.bam.actor.SimpleActor
getActor, getAddress, getBroker, getMailbox, getSender, setAddress, setBroker, setMailbox
 
Methods inherited from class com.caucho.bam.stream.AbstractMessageStream
isClosed, message, messageError, query, queryError, queryResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
isClosed, message, messageError, query, queryError, queryResult
 

Constructor Detail

ServerLinkActor

public ServerLinkActor(Broker toLinkBroker,
                       ClientStubManager clientManager,
                       ServerAuthManager authManager,
                       java.lang.String ipAddress)
Method Detail

getNonce

@Query
public void getNonce(long id,
                           java.lang.String to,
                           java.lang.String from,
                           NonceQuery query)

authLogin

@Query
public void authLogin(long id,
                            java.lang.String to,
                            java.lang.String from,
                            LoginQuery query)

authLogin

@Query
public void authLogin(long id,
                            java.lang.String to,
                            java.lang.String from,
                            AuthQuery query)

onClose

protected void onClose()

notifyValidLogin

protected void notifyValidLogin(java.lang.String address)