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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
setParameters(java.util.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(java.lang.String protocol)
protocol
- The server's protocol such as "HTTP" or "HTTPS".public SpringServer(java.lang.String protocol, int port)
protocol
- The server's protocol such as "HTTP" or "HTTPS".port
- The port number.public SpringServer(java.lang.String protocol, java.lang.String address, int port)
protocol
- The server's protocol such as "HTTP" or "HTTPS".address
- The IP address.port
- The port number.Copyright © 2005-2020 Restlet.