public class SpringServer extends Server
<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.
Constructor and Description |
---|
SpringServer(String protocol)
Constructor.
|
SpringServer(String protocol,
int port)
Constructor.
|
SpringServer(String protocol,
String address,
int port)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setParameters(Properties parameters)
Sets parameters on the server.
|
getActualPort, getAddress, getEphemeralPort, getNext, getPort, handle, hasNext, isAvailable, setAddress, setNext, setNext, setPort, start, stop
getProtocols, setProtocols
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner
public SpringServer(String protocol)
protocol
- The server's protocol such as "HTTP" or "HTTPS".public SpringServer(String protocol, int port)
protocol
- The server's protocol such as "HTTP" or "HTTPS".port
- The port number.public void setParameters(Properties parameters)
parameters
- Parameters to set on the server.Copyright © 2005–2013. All rights reserved.