|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Restlet
org.restlet.Connector
org.restlet.Server
org.restlet.ext.spring.SpringServer
public class SpringServer
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.
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 |
---|
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 SpringServer(String protocol, String address, int port)
protocol
- The server's protocol such as "HTTP" or "HTTPS".address
- The IP address.port
- The port number.Method Detail |
---|
public void setParameters(Properties parameters)
parameters
- Parameters to set on the server.
|
Restlet Framework 2.2.2 Java Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |