Class SpringServer

  • All Implemented Interfaces:
    org.restlet.Uniform

    public class SpringServer
    extends org.restlet.Server
    Server that is easily configurable with Spring. Here is a usage example:
     <bean id="server" class="org.restlet.ext.spring.SpringServer">
          <constructor-arg value="http" />
          <constructor-arg value="8111" />
     </bean>
     
    Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state in member variables.
    Author:
    Jerome Louvel
    See Also:
    Spring home page
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringServer​(java.lang.String protocol)
      Constructor.
      SpringServer​(java.lang.String protocol, int port)
      Constructor.
      SpringServer​(java.lang.String protocol, java.lang.String address, int port)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setParameters​(java.util.Properties parameters)
      Sets parameters on the server.
      • Methods inherited from class org.restlet.Server

        getActualPort, getAddress, getEphemeralPort, getNext, getPort, handle, hasNext, isAvailable, setAddress, setNext, setNext, setPort, start, stop
      • Methods inherited from class org.restlet.Connector

        getProtocols, setProtocols
      • Methods inherited from class org.restlet.Restlet

        createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringServer

        public SpringServer​(java.lang.String protocol)
        Constructor.
        Parameters:
        protocol - The server's protocol such as "HTTP" or "HTTPS".
      • SpringServer

        public SpringServer​(java.lang.String protocol,
                            int port)
        Constructor.
        Parameters:
        protocol - The server's protocol such as "HTTP" or "HTTPS".
        port - The port number.
      • SpringServer

        public SpringServer​(java.lang.String protocol,
                            java.lang.String address,
                            int port)
        Constructor.
        Parameters:
        protocol - The server's protocol such as "HTTP" or "HTTPS".
        address - The IP address.
        port - The port number.
    • Method Detail

      • setParameters

        public void setParameters​(java.util.Properties parameters)
        Sets parameters on the server.
        Parameters:
        parameters - Parameters to set on the server.