Class StatelessServer

  • All Implemented Interfaces:
    UsesPort
    Direct Known Subclasses:
    Server

    public class StatelessServer
    extends Node
    A server node for stateless communication.
    Since:
    1.0.0
    Version:
    $Id: StatelessServer.java 17760 2018-11-14 14:54:11Z colin $
    Author:
    tlerios@marketcetera.com
    • Field Detail

      • contextClassProvider

        private final ContextClassProvider contextClassProvider
        context classes to add to the server context, if any
      • server

        private org.apache.cxf.endpoint.Server server
        published server object
      • factory

        private org.apache.cxf.jaxws.JaxWsServerFactoryBean factory
        factory used to create server objects
    • Constructor Detail

      • StatelessServer

        public StatelessServer​(String inHost,
                               int inPort,
                               ContextClassProvider inContextClassProvider)
        Create a new StatelessServer instance.
        Parameters:
        inHost - a String value
        inPort - an int value
        inContextClassProvider - a ContextClassProvider value
      • StatelessServer

        public StatelessServer​(String inHostname,
                               int inPort)
        Creates a new server node with the given server host name and port.
        Parameters:
        inHostname - a String value
        inPort - an int value
      • StatelessServer

        public StatelessServer()
        Creates a new server node with the default server host name and port.
    • Method Detail

      • publish

        public <T extends StatelessServiceBaseServiceInterface publish​(T impl,
                                                                         Class<T> iface)
        Publishes the given service interface, supported by the given implementation, and returns a handle that can be used to stop the interface.
        Parameters:
        impl - The implementation.
        iface - The interface class.
        Returns:
        The handle.
      • stop

        public void stop()
        Shuts down the receiver.