com.sun.sgs.example.request.server
Class RequestApp

java.lang.Object
  extended by com.sun.sgs.example.request.server.RequestApp
All Implemented Interfaces:
com.sun.sgs.app.AppListener, Serializable

public class RequestApp
extends Object
implements com.sun.sgs.app.AppListener, Serializable

Defines an AppListener that responds to channel and name binding requests from the client.

Clients can request to join, leave, or send messages on channels, which are identified by name. Clients can also set or get string values associated with name bindings. Getting a name binding results in the value being sent back to the client in a separate message. Multiple arguments in a request should be separated by spaces. Clients can make multiple requests that will be processed within a single task by including the requests in a single message, separated by newlines.

Here are the supported requests:

This class supports the following properties:

This application uses the Logger named com.sun.sgs.example.request.server.RequestApp to log at the following levels:

See Also:
Serialized Form

Constructor Summary
RequestApp()
          Creates an instance of this class.
 
Method Summary
 void initialize(Properties props)
          
 com.sun.sgs.app.ClientSessionListener loggedIn(com.sun.sgs.app.ClientSession session)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestApp

public RequestApp()
Creates an instance of this class.

Method Detail

initialize

public void initialize(Properties props)

Specified by:
initialize in interface com.sun.sgs.app.AppListener

loggedIn

public com.sun.sgs.app.ClientSessionListener loggedIn(com.sun.sgs.app.ClientSession session)

Specified by:
loggedIn in interface com.sun.sgs.app.AppListener


Copyright © 2013. All Rights Reserved.