|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.WrapperList<Server>
org.restlet.util.ServerList
public final class ServerList
Modifiable list of server connectors.
Constructor Summary | |
---|---|
ServerList(Context context,
Restlet target)
Constructor. |
Method Summary | |
---|---|
Server |
add(Protocol protocol)
Adds a new server connector in the map supporting the given protocol. |
Server |
add(Protocol protocol,
int port)
Adds a new server connector in the map supporting the given protocol on the specified port. |
Server |
add(Protocol protocol,
java.lang.String address,
int port)
Adds a new server connector in the map supporting the given protocol on the specified IP address and port. |
boolean |
add(Server server)
Adds a server at the end of the list. |
Context |
getContext()
Returns the context. |
Restlet |
getTarget()
Returns the target Restlet. |
void |
setContext(Context context)
Sets the context. |
void |
setTarget(Restlet target)
Sets the target Restlet. |
Methods inherited from class org.restlet.util.WrapperList |
---|
add, addAll, addAll, clear, contains, containsAll, equals, get, getDelegate, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServerList(Context context, Restlet target)
context
- The context.target
- The target Restlet of added servers.Method Detail |
---|
public Server add(Protocol protocol)
protocol
- The connector protocol.
public Server add(Protocol protocol, int port)
protocol
- The connector protocol.port
- The listening port.
public Server add(Protocol protocol, java.lang.String address, int port)
protocol
- The connector protocol.address
- The optional listening IP address (useful if multiple IP
addresses available).port
- The listening port.
public boolean add(Server server)
add
in interface java.util.Collection<Server>
add
in interface java.util.List<Server>
add
in class WrapperList<Server>
public Context getContext()
public Restlet getTarget()
public void setContext(Context context)
context
- The context.public void setTarget(Restlet target)
target
- The target Restlet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |