com.threerings.presents.server
Class Rejector

java.lang.Object
  extended by com.threerings.presents.server.PresentsServer
      extended by com.threerings.presents.server.Rejector

public class Rejector
extends PresentsServer

A simple server that does nothing more than spit out a canned error response to everyone who logs in.


Nested Class Summary
protected  class Rejector.RejectingAuthenticator
          An authenticator implementation that refuses all authentication requests.
static class Rejector.RejectorModule
          Configures dependencies needed by the Rejector.
 
Nested classes/interfaces inherited from class com.threerings.presents.server.PresentsServer
PresentsServer.PresentsModule, PresentsServer.PresentsServerModule
 
Field Summary
protected static String _errmsg
           
protected static int[] _ports
           
 
Fields inherited from class com.threerings.presents.server.PresentsServer
_authInvoker, _clmgr, _conmgr, _datagramReader, _invmgr, _invoker, _lifecycle, _omgr, _socketAcceptor, invmgr, omgr
 
Constructor Summary
Rejector()
           
 
Method Summary
protected  int[] getListenPorts()
          Returns the port on which the connection manager will listen for client connections or an empty array to skip binding and have an external entity transfer accepted sockets into the connection manager.
static void main(String[] args)
           
 
Methods inherited from class com.threerings.presents.server.PresentsServer
createDefaultObjectAccessController, createSocketAcceptor, getBindHostname, getDatagramHostname, getDatagramPorts, init, invokerDidShutdown, openToThePublic, queueShutdown, registerSignalHandlers, run, runServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_errmsg

protected static String _errmsg

_ports

protected static int[] _ports
Constructor Detail

Rejector

public Rejector()
Method Detail

getListenPorts

protected int[] getListenPorts()
Description copied from class: PresentsServer
Returns the port on which the connection manager will listen for client connections or an empty array to skip binding and have an external entity transfer accepted sockets into the connection manager.

Overrides:
getListenPorts in class PresentsServer

main

public static void main(String[] args)