Class Server

java.lang.Object
com.verisign.epp.serverstub.Server

public class Server extends Object
The Server class is responsible for reading the config file, instantiating an implementation of a ServerSocket (Plain or SSL), and specifying the ServerEventHandler class that will be instantiated with each new client connection.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default port to Listen on
  • Constructor Summary

    Constructors
    Constructor
    Description
    Server(String configFileName)
    Construct a Server instance
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes Server's dispatcher to handle the commands defined by the supported EPP mappings.
    void
    Initialize the poll handler based on the EPP.PollHandlers,
    static void
    main(String[] args)
    Runs the EPP Stub Server Server with the usage:
    java Server [-help|<config-file>]

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Server

      public Server(String configFileName)
      Construct a Server instance
      Parameters:
      configFileName - The name of the config file where EPP properites are located
  • Method Details

    • initializePollQueue

      public void initializePollQueue()
      Initialize the poll handler based on the EPP.PollHandlers,
    • initializeDispatcher

      public void initializeDispatcher()
      Initializes Server's dispatcher to handle the commands defined by the supported EPP mappings. At this point we also get the list of Command Response extensions class names from the epp.config file and add the CommandResponseextension classes to the EPPExtFaactory
    • main

      public static void main(String[] args)
      Runs the EPP Stub Server Server with the usage:
      java Server [-help|<config-file>]
          -help Gets the help
          <config-file> EPP configuration file, with default of "epp.config"
       
      Parameters:
      args - Command line arguments