org.restlet.ext.spring
Class SpringServer

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.Connector
          extended by org.restlet.Server
              extended by org.restlet.ext.spring.SpringServer
All Implemented Interfaces:
Uniform

public class SpringServer
extends 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
SpringServer(String protocol)
          Constructor.
SpringServer(String protocol, int port)
          Constructor.
SpringServer(String protocol, String address, int port)
          Constructor.
 
Method Summary
 void setParameters(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(String protocol)
Constructor.

Parameters:
protocol - The server's protocol such as "HTTP" or "HTTPS".

SpringServer

public SpringServer(String protocol,
                    int port)
Constructor.

Parameters:
protocol - The server's protocol such as "HTTP" or "HTTPS".
port - The port number.

SpringServer

public SpringServer(String protocol,
                    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(Properties parameters)
Sets parameters on the server.

Parameters:
parameters - Parameters to set on the server.


Copyright © 2005-2013 Restlet.